# HG changeset patch # User Elliott Sales de Andrade # Date 1266306057 0 # Node ID d9368e77b2e494c3c8a58204e02f35d8468297ff # Parent bf81971d3aaa3a1cec86895e47201b8229ec3263 Fix some new uses of GtkTooltips for GTK+ > 2.12. diff -r bf81971d3aaa -r d9368e77b2e4 pidgin/gtkrequest.c --- a/pidgin/gtkrequest.c Tue Feb 16 06:54:06 2010 +0000 +++ b/pidgin/gtkrequest.c Tue Feb 16 07:40:57 2010 +0000 @@ -85,7 +85,9 @@ { GtkWidget *image; GdkPixbuf *pixbuf; +#if !GTK_CHECK_VERSION(2,12,0) GtkTooltips *tips; +#endif if (!account) return; @@ -94,8 +96,12 @@ 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);