]> git.sesse.net Git - vlc/blobdiff - modules/gui/gtk/gnome.c
* now 0.6.0-cvs
[vlc] / modules / gui / gtk / gnome.c
index d701a9994974d06ced2eaeebbe462efe32096073..8fa9fa0c7834c77c1d0cc9bb073e38e90148e19b 100644 (file)
@@ -2,7 +2,7 @@
  * 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>
  *
@@ -52,13 +52,13 @@ static void Manage       ( intf_thread_t * );
 /*****************************************************************************
  * 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.")
@@ -77,7 +77,7 @@ vlc_module_begin();
     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" );
@@ -98,7 +98,7 @@ static int Open( vlc_object_t *p_this )
         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 );
@@ -451,9 +451,9 @@ static void Manage( intf_thread_t *p_intf )
                  * 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;