* gnome.c : Gnome plugin for vlc
*****************************************************************************
* Copyright (C) 2000 VideoLAN
- * $Id: gnome.c,v 1.12 2003/03/07 00:53:09 gbazin Exp $
+ * $Id: gnome.c,v 1.16 2003/05/15 22:27:37 massiot Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
/*****************************************************************************
* Module descriptor
*****************************************************************************/
-#define TOOLTIPS_TEXT N_("show tooltips")
+#define TOOLTIPS_TEXT N_("Show tooltips")
#define TOOLTIPS_LONGTEXT N_("Show tooltips for configuration options.")
-#define TOOLBAR_TEXT N_("show text on toolbar buttons")
+#define TOOLBAR_TEXT N_("Show text on toolbar buttons")
#define TOOLBAR_LONGTEXT N_("Show the text below icons on the toolbar.")
-#define PREFS_MAXH_TEXT N_("maximum height for the configuration windows")
+#define PREFS_MAXH_TEXT N_("Maximum height for the configuration windows")
#define PREFS_MAXH_LONGTEXT N_( \
"You can set the maximum height that the configuration windows in the " \
"preferences menu will occupy.")
add_integer( "gnome-prefs-maxh", 480, NULL,
PREFS_MAXH_TEXT, PREFS_MAXH_LONGTEXT, VLC_TRUE );
- set_description( _("GNOME interface module") );
+ set_description( _("GNOME interface") );
set_capability( "interface", i );
set_callbacks( Open, Close );
set_program( "gnome-vlc" );
return VLC_ENOMEM;
}
- p_intf->p_sys->p_gtk_main = module_Need( p_this, "gtk_main", "gnome" );
+ p_intf->p_sys->p_gtk_main = module_Need( p_this, "gui-helper", "gnome" );
if( p_intf->p_sys->p_gtk_main == NULL )
{
free( p_intf->p_sys );
* finished dragging the slider.
* Beware, the hack below is needed by the dvdplay plugin! */
else if( p_intf->p_sys->b_slider_free
- /* hack -> */ && (p_intf->p_sys->f_adj_oldvalue <= 100.) )
+ /* hack -> */ && (p_intf->p_sys->f_adj_oldvalue < 100.) )
{
- if( newvalue > 0. && newvalue < 100. )
+ if( newvalue >= 0. && newvalue < 100. )
{
off_t i_seek = ( newvalue * p_area->i_size ) / 100;