cpw.qulogic.gtk3: ac2ae8ae: Fix some additional tooltip calls.

qulogic at pidgin.im qulogic at pidgin.im
Mon Jul 26 02:00:25 EDT 2010


----------------------------------------------------------------------
Revision: ac2ae8ae99940b6e6f8511a6a2ffa5e27f2ef8a7
Parent:   efc68ab9763f6883dbfc28aaae3fb6cf2a00c8b5
Author:   qulogic at pidgin.im
Date:     07/25/10 19:38:18
Branch:   im.pidgin.cpw.qulogic.gtk3
URL: http://d.pidgin.im/viewmtn/revision/info/ac2ae8ae99940b6e6f8511a6a2ffa5e27f2ef8a7

Changelog: 

Fix some additional tooltip calls.

Changes against parent efc68ab9763f6883dbfc28aaae3fb6cf2a00c8b5

  patched  pidgin/gtkconv.c
  patched  pidgin/gtkimhtmltoolbar.c

-------------- next part --------------
============================================================
--- pidgin/gtkconv.c	1738e82e63844546c03814aa8c6ba075cc82eb61
+++ pidgin/gtkconv.c	2c098abea191bcb928b41bf4d2095371665fbf63
@@ -5287,8 +5287,12 @@ pidgin_conv_setup_quickfind(PidginConver
 
 	close = pidgin_create_small_button(gtk_label_new("x"));
 	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);
============================================================
--- pidgin/gtkimhtmltoolbar.c	892e72c7f8985edc24d461954315d10f56a2dfd4
+++ pidgin/gtkimhtmltoolbar.c	bb9aa677a4167b690db5298abaefc89f2443c5fa
@@ -1282,7 +1282,11 @@ static void gtk_imhtmltoolbar_create_old
 	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);


More information about the Commits mailing list