Commit 40693f98 authored by Jean-Paul Saman's avatar Jean-Paul Saman

Removing GPE specific stuff.

parent a7794253
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* pda.c : PDA Gtk2 plugin for vlc * pda.c : PDA Gtk2 plugin for vlc
***************************************************************************** *****************************************************************************
* Copyright (C) 2002 VideoLAN * Copyright (C) 2002 VideoLAN
* $Id: pda.c,v 1.5 2003/10/27 22:42:02 jpsaman Exp $ * $Id: pda.c,v 1.6 2003/11/07 07:59:00 jpsaman Exp $
* *
* Authors: Jean-Paul Saman <jpsaman@wxs.nl> * Authors: Jean-Paul Saman <jpsaman@wxs.nl>
* Marc Ariberti <marcari@videolan.org> * Marc Ariberti <marcari@videolan.org>
...@@ -35,10 +35,6 @@ ...@@ -35,10 +35,6 @@
#include <gtk/gtk.h> #include <gtk/gtk.h>
#ifdef HAVE_GPE_INIT_H
#include <gpe/init.h>
#endif
#include "pda_callbacks.h" #include "pda_callbacks.h"
#include "pda_interface.h" #include "pda_interface.h"
#include "pda_support.h" #include "pda_support.h"
...@@ -152,21 +148,14 @@ static void Run( intf_thread_t *p_intf ) ...@@ -152,21 +148,14 @@ static void Run( intf_thread_t *p_intf )
GtkCellRenderer *renderer = NULL; GtkCellRenderer *renderer = NULL;
GtkTreeViewColumn *column = NULL; GtkTreeViewColumn *column = NULL;
#ifdef HAVE_GPE_INIT_H
/* Initialize GPE interface */
msg_Dbg( p_intf, "Starting pda GPE interface" );
if (gpe_application_init(&i_args, &pp_args) == FALSE)
exit (1);
#else
gtk_set_locale (); gtk_set_locale ();
# ifndef NEED_GTK2_MAIN #ifndef NEED_GTK2_MAIN
msg_Dbg( p_intf, "Starting pda GTK2+ interface" ); msg_Dbg( p_intf, "Starting pda GTK2+ interface" );
gtk_init( &i_args, &pp_args ); gtk_init( &i_args, &pp_args );
# else #else
/* Initialize Gtk+ */ /* Initialize Gtk+ */
msg_Dbg( p_intf, "Starting pda GTK+ interface thread" ); msg_Dbg( p_intf, "Starting pda GTK+ interface thread" );
gdk_threads_enter(); gdk_threads_enter();
# endif
#endif #endif
/* Create some useful widgets that will certainly be used */ /* Create some useful widgets that will certainly be used */
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* pda_callbacks.c : Callbacks for the pda Linux Gtk+ plugin. * pda_callbacks.c : Callbacks for the pda Linux Gtk+ plugin.
***************************************************************************** *****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN * Copyright (C) 2000, 2001 VideoLAN
* $Id: pda_callbacks.c,v 1.2 2003/10/27 22:42:02 jpsaman Exp $ * $Id: pda_callbacks.c,v 1.3 2003/11/07 07:59:00 jpsaman Exp $
* *
* Authors: Jean-Paul Saman <jpsaman@wxs.nl> * Authors: Jean-Paul Saman <jpsaman@wxs.nl>
* *
...@@ -547,7 +547,6 @@ gboolean addSelectedToPlaylist(GtkTreeModel *model, ...@@ -547,7 +547,6 @@ gboolean addSelectedToPlaylist(GtkTreeModel *model,
gtk_tree_model_get(model, iter, 0, &filename, -1); gtk_tree_model_get(model, iter, 0, &filename, -1);
g_print("selected %s\n", filename); g_print("selected %s\n", filename);
#if 1
tvplaylist = (GtkTreeView *) lookup_widget( GTK_WIDGET(userdata), "tvPlaylist"); tvplaylist = (GtkTreeView *) lookup_widget( GTK_WIDGET(userdata), "tvPlaylist");
if (NULL != tvplaylist) if (NULL != tvplaylist)
{ {
...@@ -563,7 +562,6 @@ gboolean addSelectedToPlaylist(GtkTreeModel *model, ...@@ -563,7 +562,6 @@ gboolean addSelectedToPlaylist(GtkTreeModel *model,
else else
// msg_Err(p_intf, "Error obtaining pointer to Play List"); // msg_Err(p_intf, "Error obtaining pointer to Play List");
g_print("Error obtaining pointer to Play List"); g_print("Error obtaining pointer to Play List");
#endif
} }
void void
...@@ -720,7 +718,34 @@ void ...@@ -720,7 +718,34 @@ void
onAddNetworkPlaylist (GtkButton *button, onAddNetworkPlaylist (GtkButton *button,
gpointer user_data) gpointer user_data)
{ {
#if 0
GtkEntry *p_mrl;
p_mrl = (GtkEntry*) lookup_widget(GTK_WIDGET(button),"" );
if (NULL != p_mrl)
{
GtkTreeView *tvplaylist = NULL;
GtkTreeModel *play_model;
GtkTreeIter play_iter;
gchar *name;
tvplaylist = (GtkTreeView *) lookup_widget( GTK_WIDGET(button), "tvPlaylist");
if (NULL != tvplaylist)
{
play_model = gtk_tree_view_get_model(tvplaylist);
/* Add a new row to the playlist treeview model */
gtk_list_store_append (play_model, &play_iter);
gtk_list_store_set (play_model, &play_iter,
0, name, /* Add path to it !!! */
1, "00:00:00",
-1 );
/* do we need to unref ?? */
}
else
// msg_Err(p_intf, "Error obtaining pointer to Play List");
g_print("Error obtaining pointer to Play List");
}
#endif
} }
......
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