summaryrefslogtreecommitdiff
path: root/gtk/gtkprintunixdialog.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2007-07-24 15:18:42 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2007-07-24 15:18:42 +0000
commit57c44b18e79e2d292b7d30349d7f2d4f3465c22f (patch)
tree2af53f8b0ade45a90890fa2148027039ac78b11e /gtk/gtkprintunixdialog.c
parent441f0484260b58147345fccda758948702fd884c (diff)
downloadgtk+-57c44b18e79e2d292b7d30349d7f2d4f3465c22f.tar.gz
Port to use new tooltips API. (#451397, Jan Arne Petersen)
2007-07-24 Matthias Clasen <mclasen@redhat.com> * gtkcolorsel.c: * gtkfilechooserdefault.c: * gtkpagesetupunixdialog.c: * gtkprintunixdialog.c: Port to use new tooltips API. (#451397, Jan Arne Petersen) svn path=/trunk/; revision=18539
Diffstat (limited to 'gtk/gtkprintunixdialog.c')
-rw-r--r--gtk/gtkprintunixdialog.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/gtk/gtkprintunixdialog.c b/gtk/gtkprintunixdialog.c
index 114c6cf419..66b65c8bdb 100644
--- a/gtk/gtkprintunixdialog.c
+++ b/gtk/gtkprintunixdialog.c
@@ -46,7 +46,6 @@
#include "gtkframe.h"
#include "gtkalignment.h"
#include "gtklabel.h"
-#include "gtktooltips.h"
#include "gtkeventbox.h"
#include "gtkprintbackend.h"
@@ -124,7 +123,6 @@ struct GtkPrintUnixDialogPrivate
GtkPageSetup *page_setup;
- GtkTooltips *tooltips;
GtkWidget *all_pages_radio;
GtkWidget *current_page_radio;
GtkWidget *page_range_radio;
@@ -272,9 +270,6 @@ gtk_print_unix_dialog_init (GtkPrintUnixDialog *dialog)
priv->print_backends = NULL;
priv->current_page = -1;
- priv->tooltips = gtk_tooltips_new ();
- g_object_ref_sink (priv->tooltips);
-
priv->page_setup = gtk_page_setup_new ();
g_signal_connect (dialog,
@@ -316,12 +311,6 @@ gtk_print_unix_dialog_finalize (GObject *object)
unschedule_idle_mark_conflicts (dialog);
- if (priv->tooltips)
- {
- g_object_unref (priv->tooltips);
- priv->tooltips = NULL;
- }
-
if (priv->request_details_tag)
{
g_source_remove (priv->request_details_tag);
@@ -1542,7 +1531,7 @@ create_main_page (GtkPrintUnixDialog *dialog)
0, 0);
radio = gtk_radio_button_new_with_mnemonic (gtk_radio_button_get_group (GTK_RADIO_BUTTON (radio)), _("Ra_nge"));
- gtk_tooltips_set_tip (priv->tooltips, radio, _("Specify one or more page ranges,\n e.g. 1-3,7,11"), NULL);
+ gtk_widget_set_tooltip_text (radio, _("Specify one or more page ranges,\n e.g. 1-3,7,11"));
priv->page_range_radio = radio;
gtk_widget_show (radio);