cpw.qulogic.gtk3: 7f3cdd61: Fix some new uses of GtkTooltips for GTK...
qulogic at pidgin.im
qulogic at pidgin.im
Tue Feb 16 04:06:36 EST 2010
-----------------------------------------------------------------
Revision: 7f3cdd61a34080056b8024a0297d01ed559bef25
Ancestor: ec14814cea1423aa7fd899c42487ad1128c628d5
Author: qulogic at pidgin.im
Date: 2010-02-16T07:40:57
Branch: im.pidgin.cpw.qulogic.gtk3
URL: http://d.pidgin.im/viewmtn/revision/info/7f3cdd61a34080056b8024a0297d01ed559bef25
Modified files:
pidgin/gtkrequest.c
ChangeLog:
Fix some new uses of GtkTooltips for GTK+ > 2.12.
-------------- next part --------------
============================================================
--- pidgin/gtkrequest.c 41136d917dde1fdea55dbbee405236891639f371
+++ pidgin/gtkrequest.c adb95f3adbda13cdc8b1ffa78f886b2a7ba37250
@@ -85,7 +85,9 @@ pidgin_widget_decorate_account(GtkWidget
{
GtkWidget *image;
GdkPixbuf *pixbuf;
+#if !GTK_CHECK_VERSION(2,12,0)
GtkTooltips *tips;
+#endif
if (!account)
return;
@@ -94,8 +96,12 @@ pidgin_widget_decorate_account(GtkWidget
image = gtk_image_new_from_pixbuf(pixbuf);
g_object_unref(G_OBJECT(pixbuf));
+#if GTK_CHECK_VERSION(2,12,0)
+ gtk_widget_set_tooltip_text(image, purple_account_get_username(account));
+#else
tips = gtk_tooltips_new();
gtk_tooltips_set_tip(tips, image, purple_account_get_username(account), NULL);
+#endif
if (GTK_IS_DIALOG(cont)) {
gtk_box_pack_start(GTK_BOX(GTK_DIALOG(cont)->action_area), image, FALSE, TRUE, 0);
More information about the Commits
mailing list