summaryrefslogtreecommitdiff
path: root/x11/gtk2-chtheme/patches/patch-ac
diff options
context:
space:
mode:
Diffstat (limited to 'x11/gtk2-chtheme/patches/patch-ac')
-rw-r--r--x11/gtk2-chtheme/patches/patch-ac26
1 files changed, 26 insertions, 0 deletions
diff --git a/x11/gtk2-chtheme/patches/patch-ac b/x11/gtk2-chtheme/patches/patch-ac
new file mode 100644
index 00000000000..53c15ea9ce9
--- /dev/null
+++ b/x11/gtk2-chtheme/patches/patch-ac
@@ -0,0 +1,26 @@
+$NetBSD: patch-ac,v 1.1 2005/01/21 20:17:58 kristerw Exp $
+
+--- font_sel.c.orig Fri Jan 21 21:00:43 2005
++++ font_sel.c Fri Jan 21 21:01:41 2005
+@@ -27,17 +27,19 @@
+
+ static void font_browse_clicked(GtkWidget *widget, gpointer u)
+ {
++ gboolean is_confirmed;
++ const gchar *curfont;
+ GtkFontSelectionDialog *font_dlg =
+ GTK_FONT_SELECTION_DIALOG(gtk_font_selection_dialog_new("Select Font"));
+
+ gtk_font_selection_dialog_set_preview_text(font_dlg, PROJNAME);
+
+- const gchar *curfont = gtk_entry_get_text(GTK_ENTRY(font_entry));
++ curfont = gtk_entry_get_text(GTK_ENTRY(font_entry));
+
+ if (g_utf8_strlen(curfont, -1))
+ gtk_font_selection_dialog_set_font_name(font_dlg, curfont);
+
+- gboolean is_confirmed = FALSE;
++ is_confirmed = FALSE;
+
+ g_signal_connect(G_OBJECT(font_dlg->ok_button), "clicked",
+ G_CALLBACK(font_dlg_ok_clicked), &is_confirmed);