changeset 32617:3f9678300238

Fix some additional tooltip calls.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sun, 25 Jul 2010 23:38:18 +0000
parents 0e123a0b7694
children 065b157e2b3c
files pidgin/gtkconv.c pidgin/gtkimhtmltoolbar.c
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkconv.c	Sun Jul 25 22:37:17 2010 +0000
+++ b/pidgin/gtkconv.c	Sun Jul 25 23:38:18 2010 +0000
@@ -5287,8 +5287,12 @@
 
 	close = pidgin_create_small_button(gtk_label_new("×"));
 	gtk_box_pack_start(GTK_BOX(widget), close, FALSE, FALSE, 0);
+#if GTK_CHECK_VERSION(2,12,0)
+	gtk_widget_set_tooltip_text(close, _("Close Find bar"));
+#else
 	gtk_tooltips_set_tip(gtkconv->tooltips, close,
 	                     _("Close Find bar"), NULL);
+#endif
 
 	label = gtk_label_new(_("Find:"));
 	gtk_box_pack_start(GTK_BOX(widget), label, FALSE, FALSE, 10);
--- a/pidgin/gtkimhtmltoolbar.c	Sun Jul 25 22:37:17 2010 +0000
+++ b/pidgin/gtkimhtmltoolbar.c	Sun Jul 25 23:38:18 2010 +0000
@@ -1282,7 +1282,11 @@
 	g_signal_connect(G_OBJECT(button), "clicked",
 		G_CALLBACK(send_attention_cb), toolbar);
 	g_object_set_data(G_OBJECT(toolbar), "attention", button);
+#if GTK_CHECK_VERSION(2,12,0)
+	gtk_widget_set_tooltip_text(button, _("Send Attention"));
+#else
 	gtk_tooltips_set_tip(toolbar->tooltips, button, _("Send Attention"), NULL);
+#endif
 	gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE, 0);
 
 	gtk_box_pack_start(GTK_BOX(toolbar), hbox, FALSE, FALSE, 0);