Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 745503 Details for
Bug 818709
x11-libs/gtk+-2 ca't find its display under Xwayland anymore
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
hello-world GTK2 test
hello.c (text/x-csrc), 709 bytes, created by
brankob
on 2021-10-17 16:08:47 UTC
(
hide
)
Description:
hello-world GTK2 test
Filename:
MIME Type:
Creator:
brankob
Created:
2021-10-17 16:08:47 UTC
Size:
709 bytes
patch
obsolete
>#include <gtk/gtk.h> > >static void button_callback(GtkButton *button, gpointer user_data) >{ > g_print(user_data); >} > > >int main(int argc, char **argv) >{ > GtkWidget *window; > GtkWidget *button; > > gtk_init(&argc, &argv); > window = gtk_window_new(GTK_WINDOW_TOPLEVEL); > button = gtk_button_new_with_label("Hello world"); > g_signal_connect(button, "clicked", G_CALLBACK(button_callback), "Hello world!!!\n"); > g_signal_connect(window, "destroy", G_CALLBACK(gtk_main_quit), NULL); > gtk_container_add(GTK_CONTAINER(window), button); > gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER); > gtk_window_set_title(GTK_WINDOW(window), "Hello gtk world"); > gtk_widget_show_all(window); > gtk_main(); > return 0; >} >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 818709
:
745500
| 745503