]> git.sesse.net Git - vlc/commitdiff
plugins/gtk/gnome.c, plugins/gtk/gtk.c:
authorLoïc Minier <lool@videolan.org>
Wed, 27 Mar 2002 18:43:30 +0000 (18:43 +0000)
committerLoïc Minier <lool@videolan.org>
Wed, 27 Mar 2002 18:43:30 +0000 (18:43 +0000)
    new options "gtk_hide_toltips" or "gnome_hide_tooltips"

 Tooltips are enabled by default. This option is only considered on
module initialization.

plugins/gtk/gnome.c
plugins/gtk/gtk.c

index 7e04531b4c502b92c833da0794252dec779841b3..e6ee7311d0c1e3f6758072bd9e7e42e7186e0b38 100644 (file)
@@ -2,7 +2,7 @@
  * gnome.c : Gnome plugin for vlc
  *****************************************************************************
  * Copyright (C) 2000 VideoLAN
- * $Id: gnome.c,v 1.14 2002/03/25 20:37:00 lool Exp $
+ * $Id: gnome.c,v 1.15 2002/03/27 18:43:30 lool Exp $
  *
  * Authors: Samuel Hocevar <sam@zoy.org>
  *      
@@ -62,6 +62,9 @@ static gint GnomeManage      ( gpointer p_data );
  * Building configuration tree
  *****************************************************************************/
 MODULE_CONFIG_START
+    ADD_CATEGORY_HINT( "Misc Options", NULL )
+    ADD_BOOL ( "gnome_hide_tooltips", NULL, "hide tooltips", "Do not show" \
+               " tooltips for configuration options" )
 MODULE_CONFIG_STOP
 
 MODULE_INIT_START
@@ -252,6 +255,10 @@ static void intf_Run( intf_thread_t *p_intf )
     p_intf->p_sys->p_jump = NULL;
     p_intf->p_sys->p_tooltips = gtk_tooltips_new();
 
+    /* Hide tooltips if the option is set */
+    if( config_GetIntVariable( "gnome_hide_tooltips" ) )
+        gtk_tooltips_disable( p_intf->p_sys->p_tooltips );
+
     /* Store p_intf to keep an eye on it */
     gtk_object_set_data( GTK_OBJECT(p_intf->p_sys->p_window),
                          "p_intf", p_intf );
index 438bf3b839e395fc205c13a1986e0b80f20475cd..e487dd4991732f81461fefc96e6ce3eefbbf1ef8 100644 (file)
@@ -2,7 +2,7 @@
  * gtk.c : Gtk+ plugin for vlc
  *****************************************************************************
  * Copyright (C) 2000-2001 VideoLAN
- * $Id: gtk.c,v 1.16 2002/03/25 20:37:00 lool Exp $
+ * $Id: gtk.c,v 1.17 2002/03/27 18:43:30 lool Exp $
  *
  * Authors: Samuel Hocevar <sam@zoy.org>
  *
@@ -63,6 +63,9 @@ static gint GtkManage         ( gpointer p_data );
  * Building configuration tree
  *****************************************************************************/
 MODULE_CONFIG_START
+    ADD_CATEGORY_HINT( "Misc Options", NULL )
+    ADD_BOOL ( "gtk_hide_tooltips", NULL, "hide tooltips", "Do not show" \
+               " tooltips for configuration options" )
 MODULE_CONFIG_STOP
 
 MODULE_INIT_START
@@ -255,6 +258,10 @@ static void intf_Run( intf_thread_t *p_intf )
     p_intf->p_sys->p_network = NULL;
     p_intf->p_sys->p_jump = NULL;
 
+    /* Hide tooltips if the option is set */
+    if( config_GetIntVariable( "gtk_hide_tooltips" ) )
+        gtk_tooltips_disable( p_intf->p_sys->p_tooltips );
+
     /* Store p_intf to keep an eye on it */
     gtk_object_set_data( GTK_OBJECT(p_intf->p_sys->p_window),
                          "p_intf", p_intf );