]> git.sesse.net Git - vlc/commitdiff
Directory content is now read at startup.
authorJean-Paul Saman <jpsaman@videolan.org>
Sun, 25 Aug 2002 20:44:40 +0000 (20:44 +0000)
committerJean-Paul Saman <jpsaman@videolan.org>
Sun, 25 Aug 2002 20:44:40 +0000 (20:44 +0000)
modules/gui/familiar/callbacks.c
modules/gui/familiar/familiar.c

index 1231eff5c04827640d23e603045e575e483d20d5..769ba20d0fd41c28bea944d8b34d9a2c08b2a8a3 100644 (file)
@@ -2,7 +2,7 @@
  * callbacks.c : Callbacks for the Familiar Linux Gtk+ plugin.
  *****************************************************************************
  * Copyright (C) 2000, 2001 VideoLAN
- * $Id: callbacks.c,v 1.7 2002/08/21 19:30:03 jpsaman Exp $
+ * $Id: callbacks.c,v 1.8 2002/08/25 20:44:40 jpsaman Exp $
  *
  * Authors: Jean-Paul Saman <jpsaman@wxs.nl>
  *
@@ -242,17 +242,19 @@ on_toolbar_open_clicked                (GtkButton       *button,
                                         gpointer         user_data)
 {
     intf_thread_t *p_intf = GtkGetIntf( button );
-    GtkCList *clistmedia = NULL;
 
     if (p_intf)
     {
         /* Testing routine */
+/*
+        GtkCList *clistmedia = NULL;
         clistmedia = GTK_CLIST( lookup_widget( p_intf->p_sys->p_window,
                                    "clistmedia") );
         if (GTK_CLIST(clistmedia))
         {
             ReadDirectory(clistmedia, ".");
         }
+*/
         gtk_widget_show( GTK_WIDGET(p_intf->p_sys->p_notebook) );
         gdk_window_raise( p_intf->p_sys->p_window->window );
     }
index 3b1e2b1143347ccadb082efb385ab30d7174bfcf..2b5c31e0b7aece60152f789d1330e213d86fcb23 100644 (file)
@@ -2,7 +2,7 @@
  * familiar.c : familiar plugin for vlc
  *****************************************************************************
  * Copyright (C) 2002 VideoLAN
- * $Id: familiar.c,v 1.7 2002/08/21 19:30:03 jpsaman Exp $
+ * $Id: familiar.c,v 1.8 2002/08/25 20:44:40 jpsaman Exp $
  *
  * Authors: Jean-Paul Saman <jpsaman@wxs.nl>
  *
@@ -145,6 +145,7 @@ static void Run( intf_thread_t *p_intf )
                          "p_intf", p_intf );
     /* Show the control window */
     gtk_widget_show( p_intf->p_sys->p_window );
+    ReadDirectory(p_intf->p_sys->p_clist, ".");
 
     /* Sleep to avoid using all CPU - since some interfaces need to
      * access keyboard events, a 100ms delay is a good compromise */