1
mirror of https://code.videolan.org/videolan/vlc synced 2024-09-12 13:44:56 +02:00

Removing GPE specific stuff.

This commit is contained in:
Jean-Paul Saman 2003-11-07 07:59:00 +00:00
parent a7794253d8
commit 40693f9830
2 changed files with 31 additions and 17 deletions

View File

@ -2,7 +2,7 @@
* pda.c : PDA Gtk2 plugin for vlc
*****************************************************************************
* 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>
* Marc Ariberti <marcari@videolan.org>
@ -35,10 +35,6 @@
#include <gtk/gtk.h>
#ifdef HAVE_GPE_INIT_H
#include <gpe/init.h>
#endif
#include "pda_callbacks.h"
#include "pda_interface.h"
#include "pda_support.h"
@ -152,21 +148,14 @@ static void Run( intf_thread_t *p_intf )
GtkCellRenderer *renderer = 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 ();
# ifndef NEED_GTK2_MAIN
#ifndef NEED_GTK2_MAIN
msg_Dbg( p_intf, "Starting pda GTK2+ interface" );
gtk_init( &i_args, &pp_args );
# else
#else
/* Initialize Gtk+ */
msg_Dbg( p_intf, "Starting pda GTK+ interface thread" );
gdk_threads_enter();
# endif
#endif
/* Create some useful widgets that will certainly be used */

View File

@ -2,7 +2,7 @@
* pda_callbacks.c : Callbacks for the pda Linux Gtk+ plugin.
*****************************************************************************
* 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>
*
@ -547,7 +547,6 @@ gboolean addSelectedToPlaylist(GtkTreeModel *model,
gtk_tree_model_get(model, iter, 0, &filename, -1);
g_print("selected %s\n", filename);
#if 1
tvplaylist = (GtkTreeView *) lookup_widget( GTK_WIDGET(userdata), "tvPlaylist");
if (NULL != tvplaylist)
{
@ -563,7 +562,6 @@ gboolean addSelectedToPlaylist(GtkTreeModel *model,
else
// msg_Err(p_intf, "Error obtaining pointer to Play List");
g_print("Error obtaining pointer to Play List");
#endif
}
void
@ -720,7 +718,34 @@ void
onAddNetworkPlaylist (GtkButton *button,
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
}