pkgsrc/x11/gtk2-chtheme/patches/patch-ab

33 lines
1.3 KiB
Text

$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));