openbsd-ports/comms/xdx/patches/patch-src_gui_c
jasper c4d937c4db - unbreak after gtk2 update
- add devel/gettext to MODULES while here
2007-10-24 22:42:26 +00:00

66 lines
3.7 KiB
Plaintext

$OpenBSD: patch-src_gui_c,v 1.1 2007/10/24 22:42:26 jasper Exp $
--- src/gui.c.orig Tue Oct 16 12:50:12 2007
+++ src/gui.c Tue Oct 16 12:52:58 2007
@@ -172,7 +172,7 @@ create_mainwindow (void)
servertype *cluster;
PangoFontDescription *font_description;
gint pango_size;
- GtkTooltips *tooltips;
+ GtkTooltip *tooltip;
GtkAccelGroup *key_toggle, *grab_focus;
gchar *str;
@@ -378,34 +378,34 @@ create_mainwindow (void)
gtk_paned_add1 (GTK_PANED (vpaned), clistscrolledwindow);
gtk_paned_add2 (GTK_PANED (vpaned), chathbox);
gtk_box_pack_start (GTK_BOX (mainvbox), vpaned, TRUE, TRUE, 0);
- tooltips = gtk_tooltips_new ();
+ tooltip = gtk_tooltips_new ();
- gtk_tooltips_set_tip(tooltips, highentry1, _("Enter a word to highlight"), NULL);
- gtk_tooltips_set_tip(tooltips, highentry2, _("Enter a word to highlight"), NULL);
- gtk_tooltips_set_tip(tooltips, highentry3, _("Enter a word to highlight"), NULL);
- gtk_tooltips_set_tip(tooltips, highentry4, _("Enter a word to highlight"), NULL);
- gtk_tooltips_set_tip(tooltips, highentry5, _("Enter a word to highlight"), NULL);
- gtk_tooltips_set_tip(tooltips, highentry6, _("Enter a word to highlight"), NULL);
- gtk_tooltips_set_tip(tooltips, highentry7, _("Enter a word to highlight"), NULL);
- gtk_tooltips_set_tip(tooltips, highentry8, _("Enter a word to highlight"), NULL);
+ gtk_tooltips_set_tip(tooltip, highentry1, _("Enter a word to highlight"), NULL);
+ gtk_tooltips_set_tip(tooltip, highentry2, _("Enter a word to highlight"), NULL);
+ gtk_tooltips_set_tip(tooltip, highentry3, _("Enter a word to highlight"), NULL);
+ gtk_tooltips_set_tip(tooltip, highentry4, _("Enter a word to highlight"), NULL);
+ gtk_tooltips_set_tip(tooltip, highentry5, _("Enter a word to highlight"), NULL);
+ gtk_tooltips_set_tip(tooltip, highentry6, _("Enter a word to highlight"), NULL);
+ gtk_tooltips_set_tip(tooltip, highentry7, _("Enter a word to highlight"), NULL);
+ gtk_tooltips_set_tip(tooltip, highentry8, _("Enter a word to highlight"), NULL);
str = g_strdup_printf (_("Include prompt [Ctrl+%d]"), 1);
- gtk_tooltips_set_tip(tooltips, highcheck1, str, NULL);
+ gtk_tooltips_set_tip(tooltip, highcheck1, str, NULL);
str = g_strdup_printf (_("Include prompt [Ctrl+%d]"), 2);
- gtk_tooltips_set_tip(tooltips, highcheck2, str, NULL);
+ gtk_tooltips_set_tip(tooltip, highcheck2, str, NULL);
str = g_strdup_printf (_("Include prompt [Ctrl+%d]"), 3);
- gtk_tooltips_set_tip(tooltips, highcheck3, str, NULL);
+ gtk_tooltips_set_tip(tooltip, highcheck3, str, NULL);
str = g_strdup_printf (_("Include prompt [Ctrl+%d]"), 4);
- gtk_tooltips_set_tip(tooltips, highcheck4, str, NULL);
+ gtk_tooltips_set_tip(tooltip, highcheck4, str, NULL);
str = g_strdup_printf (_("Include prompt [Ctrl+%d]"), 5);
- gtk_tooltips_set_tip(tooltips, highcheck5, str, NULL);
+ gtk_tooltips_set_tip(tooltip, highcheck5, str, NULL);
str = g_strdup_printf (_("Include prompt [Ctrl+%d]"), 6);
- gtk_tooltips_set_tip(tooltips, highcheck6, str, NULL);
+ gtk_tooltips_set_tip(tooltip, highcheck6, str, NULL);
str = g_strdup_printf (_("Include prompt [Ctrl+%d]"), 7);
- gtk_tooltips_set_tip(tooltips, highcheck7, str, NULL);
+ gtk_tooltips_set_tip(tooltip, highcheck7, str, NULL);
str = g_strdup_printf (_("Include prompt [Ctrl+%d]"), 8);
- gtk_tooltips_set_tip(tooltips, highcheck8, str, NULL);
+ gtk_tooltips_set_tip(tooltip, highcheck8, str, NULL);
str = g_strdup_printf (_("Enable/disable sound [Ctrl+%d]"), 0);
- gtk_tooltips_set_tip(tooltips, soundcheck, str, NULL);
+ gtk_tooltips_set_tip(tooltip, soundcheck, str, NULL);
mainentry = gtk_text_view_new ();
gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW(mainentry), GTK_WRAP_WORD);