diff options
Diffstat (limited to 'x11/gtk2-chtheme/patches/patch-ae')
-rw-r--r-- | x11/gtk2-chtheme/patches/patch-ae | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/x11/gtk2-chtheme/patches/patch-ae b/x11/gtk2-chtheme/patches/patch-ae new file mode 100644 index 00000000000..a66d8695680 --- /dev/null +++ b/x11/gtk2-chtheme/patches/patch-ae @@ -0,0 +1,41 @@ +$NetBSD: patch-ae,v 1.1 2005/01/21 20:17:58 kristerw Exp $ + +--- mainwin.c.orig Fri Jan 21 21:05:36 2005 ++++ mainwin.c Fri Jan 21 21:06:56 2005 +@@ -41,6 +41,10 @@ + + GtkWidget* create_mainwin(void) + { ++ GtkWidget* about_button; ++ GtkWidget* apply_button; ++ GtkWidget* ok_button; ++ GtkWidget *cancel_button; + GtkWidget *mainwin = gtk_dialog_new(); + gtk_widget_realize(mainwin); + gtk_window_set_title(GTK_WINDOW(mainwin), PROJNAME); +@@ -54,21 +58,21 @@ + gtk_box_pack_start(GTK_BOX(GTK_DIALOG(mainwin)->vbox), gtk_hseparator_new(), FALSE, FALSE, 0); + gtk_box_pack_start(GTK_BOX(GTK_DIALOG(mainwin)->vbox), create_font_sel(), FALSE, FALSE, 0); + +- GtkWidget* about_button = gtk_button_new_from_stock(GTK_STOCK_ABOUT); ++ about_button = gtk_button_new_from_stock(GTK_STOCK_ABOUT); + g_signal_connect(G_OBJECT(about_button), "clicked", G_CALLBACK(about_clicked), NULL); + gtk_box_pack_end(GTK_BOX(GTK_DIALOG(mainwin)->action_area), about_button, TRUE, TRUE, 0); + +- GtkWidget* apply_button = gtk_button_new_from_stock(GTK_STOCK_APPLY); ++ apply_button = gtk_button_new_from_stock(GTK_STOCK_APPLY); + g_signal_connect(G_OBJECT(apply_button), "clicked", G_CALLBACK(apply_clicked), NULL); + gtk_box_pack_start(GTK_BOX(GTK_DIALOG(mainwin)->action_area), apply_button, TRUE, TRUE, 0); + await_activation(apply_button); + +- GtkWidget* ok_button = gtk_button_new_from_stock(GTK_STOCK_OK); ++ ok_button = gtk_button_new_from_stock(GTK_STOCK_OK); + g_signal_connect(G_OBJECT(ok_button), "clicked", G_CALLBACK(ok_clicked), NULL); + gtk_box_pack_start(GTK_BOX(GTK_DIALOG(mainwin)->action_area), ok_button, TRUE, TRUE, 0); + await_activation(ok_button); + +- GtkWidget *cancel_button = gtk_button_new_from_stock(GTK_STOCK_CANCEL); ++ cancel_button = gtk_button_new_from_stock(GTK_STOCK_CANCEL); + g_signal_connect(G_OBJECT(cancel_button), "clicked", G_CALLBACK(gtk_main_quit), NULL); + gtk_box_pack_start(GTK_BOX(GTK_DIALOG(mainwin)->action_area), cancel_button, TRUE, TRUE, 0); + |