]> Pileus Git - ~andy/gtk/commitdiff
Show the tooltip on the range entry itself, too.
authorMatthias Clasen <mclasen@redhat.com>
Mon, 6 Oct 2008 18:26:27 +0000 (18:26 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Mon, 6 Oct 2008 18:26:27 +0000 (18:26 +0000)
2008-10-06  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkprintunixdialog.c (create_main_page): Show the tooltip
        on the range entry itself, too.

svn path=/trunk/; revision=21591

ChangeLog
gtk/gtkprintunixdialog.c

index a6bca9b38aa52987d31a646f9cb6d71830e76c8c..a0952eb481d1e3b06cbdf3492441200e912e5da1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-10-06  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkprintunixdialog.c (create_main_page): Show the tooltip
+       on the range entry itself, too.
+
 2008-10-04  Tor Lillqvist  <tml@novell.com>
 
        Bug 132501 - Make utility window translate to tool window in win32
index 8751bfe975e145dd4b33271d0c4db7f4e1bedd3a..9ac5b19f337ae6ba33eeae40a39a39b56a421b57 100644 (file)
@@ -1709,6 +1709,7 @@ create_main_page (GtkPrintUnixDialog *dialog)
   GtkTreeViewColumn *column;
   GtkTreeSelection *selection;
   GtkWidget *custom_input;
+  const gchar *range_tooltip;
 
   main_vbox = gtk_vbox_new (FALSE, 18);
   gtk_container_set_border_width (GTK_CONTAINER (main_vbox), 12);
@@ -1811,7 +1812,8 @@ create_main_page (GtkPrintUnixDialog *dialog)
                    0, 0);
  
   radio = gtk_radio_button_new_with_mnemonic (gtk_radio_button_get_group (GTK_RADIO_BUTTON (radio)), _("Pag_es:"));
-  gtk_widget_set_tooltip_text (radio, _("Specify one or more page ranges,\n e.g. 1-3,7,11"));
+  range_tooltip = _("Specify one or more page ranges,\n e.g. 1-3,7,11");
+  gtk_widget_set_tooltip_text (radio, range_tooltip);
  
   priv->page_range_radio = radio;
   gtk_widget_show (radio);
@@ -1819,6 +1821,7 @@ create_main_page (GtkPrintUnixDialog *dialog)
                    0, 1, 2, 3,  GTK_FILL, 0,
                    0, 0);
   entry = gtk_entry_new ();
+  gtk_widget_set_tooltip_text (entry, range_tooltip);
   priv->page_range_entry = entry;
   gtk_widget_show (entry);
   gtk_table_attach (GTK_TABLE (table), entry,