[gnome-control-center/gnome-2-28] [appearance] fix tooltip in the background chooser



commit ff0c03cbf4e1da7be30079392371254cbb30f292
Author: Thomas Wood <thos gnome org>
Date:   Sat Nov 21 14:49:08 2009 +0000

    [appearance] fix tooltip in the background chooser
    
    Set the has-tooltip property to enable tooltips on items in the background
    chooser.
    
    Also remove the custom tooltip timeout value so that it is now consistent
    with the rest of the desktop.
    
    Patch from: Matthias Clasen <mclasen redhat com>
    
    Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=596369

 capplets/appearance/appearance-desktop.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/capplets/appearance/appearance-desktop.c b/capplets/appearance/appearance-desktop.c
index b0043dc..5979654 100644
--- a/capplets/appearance/appearance-desktop.c
+++ b/capplets/appearance/appearance-desktop.c
@@ -1148,8 +1148,6 @@ desktop_init (AppearanceData *data,
   GtkCellRenderer *cr;
   char *url;
 
-  g_object_set (gtk_settings_get_default (), "gtk-tooltip-timeout", 500, NULL);
-
   data->wp_update_gconf = TRUE;
 
   data->wp_uris = NULL;
@@ -1289,6 +1287,7 @@ desktop_init (AppearanceData *data,
                     (GCallback) wp_props_wp_selected, data);
   g_signal_connect (data->wp_view, "query-tooltip",
                     (GCallback) wp_view_tooltip_cb, data);
+  gtk_widget_set_has_tooltip (data->wp_view, TRUE);
 
   wp_set_sensitivities (data);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]