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



commit 9ebd7c4721c37278e671d2e9f8850c6281525aef
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]