diff options
Diffstat (limited to 'x11/gtk2-chtheme/patches/patch-ab')
-rw-r--r-- | x11/gtk2-chtheme/patches/patch-ab | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/x11/gtk2-chtheme/patches/patch-ab b/x11/gtk2-chtheme/patches/patch-ab new file mode 100644 index 00000000000..adbea0fd2c6 --- /dev/null +++ b/x11/gtk2-chtheme/patches/patch-ab @@ -0,0 +1,33 @@ +$NetBSD: patch-ab,v 1.1 2005/01/21 20:17:58 kristerw Exp $ + +--- about_dialog.c.orig Fri Jan 21 21:04:21 2005 ++++ about_dialog.c Fri Jan 21 21:05:21 2005 +@@ -36,22 +36,25 @@ + "</span>" + + void show_about_dialog(void) { ++ GtkWidget* about; ++ GtkWidget* box; ++ GtkWidget* ok_button; + GtkWidget* about_dlg = gtk_dialog_new(); + gtk_window_set_title(GTK_WINDOW(about_dlg), "About"); + gtk_window_set_resizable(GTK_WINDOW(about_dlg), FALSE); + gtk_dialog_set_has_separator(GTK_DIALOG(about_dlg), FALSE); + gtk_container_set_border_width(GTK_CONTAINER(GTK_DIALOG(about_dlg)->vbox), 20); + +- GtkWidget* about = GTK_WIDGET(gtk_label_new_from_pango_markup((ABOUT), GTK_JUSTIFY_CENTER)); ++ about = GTK_WIDGET(gtk_label_new_from_pango_markup((ABOUT), GTK_JUSTIFY_CENTER)); + +- GtkWidget* box = gtk_hbox_new(FALSE, 0); ++ box = gtk_hbox_new(FALSE, 0); + gtk_container_set_border_width(GTK_CONTAINER(box), 20); + gtk_box_pack_start(GTK_BOX(box), about, FALSE, FALSE, 10); + gtk_widget_show_all(box); + + gtk_box_pack_start(GTK_BOX(GTK_DIALOG(about_dlg)->vbox), box, FALSE, FALSE, 10); + +- GtkWidget* ok_button = gtk_dialog_add_button(GTK_DIALOG(about_dlg), GTK_STOCK_OK, 0); ++ ok_button = gtk_dialog_add_button(GTK_DIALOG(about_dlg), GTK_STOCK_OK, 0); + gtk_button_set_use_stock(GTK_BUTTON(ok_button), TRUE); + + gtk_dialog_run(GTK_DIALOG(about_dlg)); |