aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-search-bar.c
diff options
context:
space:
mode:
authorPaolo Borelli <pborelli@katamail.com>2008-07-14 19:38:30 +0800
committerPaolo Borelli <pborelli@src.gnome.org>2008-07-14 19:38:30 +0800
commitc049cedd6969d77649db15b71f4ba112d4a2c065 (patch)
treeab42a98360f79974bcefa46a83cd3610aec1c6bf /widgets/misc/e-search-bar.c
parent5dcc53160bfb1202e53fece360838f39646a6d09 (diff)
downloadgsoc2013-evolution-c049cedd6969d77649db15b71f4ba112d4a2c065.tar.gz
gsoc2013-evolution-c049cedd6969d77649db15b71f4ba112d4a2c065.tar.zst
gsoc2013-evolution-c049cedd6969d77649db15b71f4ba112d4a2c065.zip
** Fix for bug #542889
2008-17-14 Paolo Borelli <pborelli@katamail.com> ** Fix for bug #542889 Port to the new gtk tooltip api. svn path=/trunk/; revision=35744
Diffstat (limited to 'widgets/misc/e-search-bar.c')
-rw-r--r--widgets/misc/e-search-bar.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/widgets/misc/e-search-bar.c b/widgets/misc/e-search-bar.c
index 2c18e3ce0d..ffef719f17 100644
--- a/widgets/misc/e-search-bar.c
+++ b/widgets/misc/e-search-bar.c
@@ -339,8 +339,9 @@ paint_search_text (GtkWidget *widget, ESearchBar *esb)
}
t = g_strdup_printf ("%s: %s\n%s", _("Search"), text, _("Click here to change the search type"));
- gtk_tooltips_set_tip (esb->tooltips, esb->option_button, t, "Search type");
+ gtk_widget_set_tooltip_text (esb->option_button, t);
g_free (t);
+
gtk_widget_set_sensitive (esb->clear_button, FALSE);
}
@@ -474,7 +475,7 @@ option_activated_cb (GtkWidget *widget,
else
t = g_strdup_printf ("%s: %s", _("Search"), _("Click here to change the search type"));
- gtk_tooltips_set_tip (esb->tooltips, esb->option_button, t, "Search type");
+ gtk_widget_set_tooltip_text (esb->option_button, t);
g_free (t);
}
@@ -934,7 +935,6 @@ init (ESearchBar *esb)
esb->scopeoption = NULL;
esb->scopeoption_box = NULL;
- esb->tooltips = NULL;
esb->pending_activate = 0;
esb->item_id = 0;
@@ -970,8 +970,6 @@ e_search_bar_construct (ESearchBar *search_bar,
gtk_box_set_homogeneous (GTK_BOX (search_bar), FALSE);
- search_bar->tooltips = gtk_tooltips_new ();
-
bighbox = gtk_hbox_new (FALSE, 0);
search_bar->entry_box = gtk_hbox_new (0, FALSE);
search_bar->icon_entry = e_icon_entry_new ();