Commit cdfa13b5 authored by Loïc Minier's avatar Loïc Minier

plugins/gtk/gnome.c, plugins/gtk/gtk.c:

    new options "gtk_hide_toltips" or "gnome_hide_tooltips"

 Tooltips are enabled by default. This option is only considered on
module initialization.
parent 9e82d79b
......@@ -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 );
......
......@@ -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 );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment