Those hardly build and do not work anymore since a long time. Noone seems to care...
Farewell!
* showintf
* transrate
* x11, xvideo, xvid
+ * gtk_main, gtk_main2, gnome_main, gnome_main2 and pda interface
Changes between 1.0.0 and 1.0.1:
then
AC_CHECK_LIB(mingwex,opendir,
AC_CHECK_LIB(mingw32,opendir,,
- [VLC_ADD_LIBS([libvlccore gtk],[-lmingwex])])
+ [VLC_ADD_LIBS([libvlccore],[-lmingwex])])
)
fi
;;
esac
-dnl Build the gtk_main plugins?
-NEED_GTK_MAIN=no
-NEED_GNOME_MAIN=no
-NEED_GTK2_MAIN=no
-NEED_GNOME2_MAIN=no
-
dnl build the qte plugin ?
NEED_QTE_MAIN=no
(test "${SYS}" != "darwin" && test "${SYS}" != "beos" &&
test "${SYS}" != "mingwce" && test "${enable_skins2}" != "no")])
-dnl
-dnl PDA Gtk+2 module
-dnl
-AC_ARG_ENABLE(pda,
- [ --enable-pda PDA interface needs Gtk2 support (default disabled)])
-if test "${enable_pda}" = "yes"
-then
- PKG_CHECK_MODULES(GTK2, [gtk+-2.0 >= 2.0.0, gthread-2.0])
- VLC_ADD_CFLAGS([gtk2],[${GTK2_CFLAGS}])
- VLC_ADD_LIBS([gtk2],[${GTK2_LIBS}])
- VLC_ADD_CFLAGS([pda],[${GTK2_CFLAGS} ${CFLAGS_pda}])
- VLC_ADD_LIBS([pda],[${LDFLAGS_pda}])
- VLC_ADD_LIBS([pda],[${GTK2_LIBS}])
- VLC_ADD_PLUGIN([pda])
- if test "${SYS}" != "mingw32"; then
- NEED_GTK2_MAIN=yes
- VLC_ADD_CFLAGS([gtk2_main],[$GTK2_CFLAGS])
- VLC_ADD_LIBS([gtk2_main],[$GTK2_LIBS])
- fi
-fi
-AM_CONDITIONAL(BUILD_PDA, [test "${enable_pda}" = "yes"])
-
dnl
dnl Maemo
dnl
VLC_ADD_PLUGIN([test4])
fi
-dnl
-dnl gtk_main plugin
-dnl
-if test "${NEED_GTK_MAIN}" != "no"
-then
- VLC_ADD_PLUGIN([gtk_main])
- VLC_ADD_CFLAGS([gtk_main],[${CFLAGS_gtk}])
- VLC_ADD_LDFLAGS([gtk_main],[${LDFLAGS_gtk}])
-fi
-
-if test "${NEED_GNOME_MAIN}" != "no"
-then
- VLC_ADD_PLUGIN([gnome_main])
- VLC_ADD_CFLAGS([gnome_main],[${CFLAGS_gtk} ${CFLAGS_gnome}])
- VLC_ADD_LDFLAGS([gnome_main],[${LDFLAGS_gtk} ${LDFLAGS_gnome}])
-fi
-
-if test "${NEED_GTK2_MAIN}" != "no"
-then
- VLC_ADD_PLUGIN([gtk2_main])
- VLC_ADD_CFLAGS([gtk2],[-DNEED_GTK2_MAIN])
- VLC_ADD_CFLAGS([pda],[-DNEED_GTK2_MAIN])
- VLC_ADD_CFLAGS([gtk2_main],[${CFLAGS_gtk2} ${CFLAGS_pda}])
- VLC_ADD_LDFLAGS([gtk2_main],[${LDFLAGS_gtk2} ${LDFLAGS_pda}])
-fi
-
-if test "${NEED_GNOME2_MAIN}" != "no"
-then
- VLC_ADD_PLUGIN([gnome2_main])
- VLC_ADD_CFLAGS([gnome2_main],[${CFLAGS_gtk2} ${CFLAGS_gnome2}])
- VLC_ADD_LDFLAGS([gnome2_main],[${LDFLAGS_gtk2} ${LDFLAGS_gnome2}])
-fi
-
dnl
dnl qte_main plugin
dnl
modules/demux/playlist/Makefile
modules/gui/Makefile
modules/gui/beos/Makefile
- modules/gui/pda/Makefile
modules/gui/macosx/Makefile
modules/gui/maemo/Makefile
modules/gui/minimal_macosx/Makefile
* glwin32: a opengl provider using DirectX OpenGL
* glx: a opengl provider using X11 OpenGL
* gme: game music files demuxer
- * gnome2_main: Gtk+ wrapper for gtk_main
- * gnome_main: Gtk+ wrapper for gtk_main
* gnutls: GNU TLS encryption/decryption module
* goom: visualisation plugin based on goom
* gradient: Gradient and edge detection video effects filter
* grey_yuv: grayscale to others conversion module
* growl: announce currently playing stream to growl
* growl_udp: growl UDP notification plugin
- * gtk2_main: Gtk+ wrapper for gtk_main
- * gtk_main: Gtk+ wrapper for gtk_main
* h264: H264 decoder
* hal: Linux HAL services discovery module
* hd1000a: audio output module for the Roku HD1000 Set-Top-Box
* packetizer_vc1: VC-1 video packetizer
* panoramix: image wall panoramic video with edge blending filter
* param_eq: parametric equalizer
- * pda: interface for iPaq using the Gtk2+ widget set
* playlist: playlist import module
* png: PNG images decoder
* podcast: podcast feed parser
if BUILD_MAEMO
SUBDIRS += maemo
endif
-if BUILD_PDA
-SUBDIRS += pda
-endif
SUBDIRS += qnx
if ENABLE_QT4
SUBDIRS += qt4
+++ /dev/null
-SOURCES_pda = \
- pda.c \
- pda.h \
- pda_interface.c \
- pda_interface.h \
- pda_support.c \
- pda_support.h \
- pda_callbacks.c \
- pda_callbacks.h \
- $(NULL)
-
-EXTRA_DIST += pda.glade \
- pda.gladep \
- $(NULL)
+++ /dev/null
-/*****************************************************************************
- * pda.c : PDA Gtk2 plugin for vlc
- *****************************************************************************
- * Copyright (C) 2002 the VideoLAN team
- * $Id$
- *
- * Authors: Jean-Paul Saman <jpsaman _at_ videolan _dot_ org>
- * Marc Ariberti <marcari@videolan.org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
- *****************************************************************************/
-
-/*****************************************************************************
- * Preamble
- *****************************************************************************/
-#include <errno.h> /* ENOMEM */
-
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
-#include <vlc_common.h>
-#include <vlc_plugin.h>
-#include <vlc_input.h>
-#include <vlc_interface.h>
-#include <vlc_playlist.h>
-
-#include <gtk/gtk.h>
-
-#include "pda_callbacks.h"
-#include "pda_interface.h"
-#include "pda_support.h"
-#include "pda.h"
-
-/*****************************************************************************
- * Local prototypes.
- *****************************************************************************/
-static int Open ( vlc_object_t * );
-static void Close ( vlc_object_t * );
-static void Run ( intf_thread_t * );
-
-static int Manage ( intf_thread_t *p_intf );
-void GtkDisplayDate ( GtkAdjustment *p_adj, gpointer userdata );
-gint GtkModeManage ( intf_thread_t * p_intf );
-
-/*****************************************************************************
- * Module descriptor
- *****************************************************************************/
-#define AUTOPLAYFILE_TEXT N_("Autoplay selected file")
-#define AUTOPLAYFILE_LONGTEXT N_("Automatically play a file when selected in the "\
- "file selection list")
-
-/*****************************************************************************
- * Module descriptor
- *****************************************************************************/
-vlc_module_begin ()
- set_description( N_("PDA Linux Gtk2+ interface") )
- set_category( CAT_INTERFACE )
- set_subcategory( SUBCAT_INTERFACE_MAIN )
- set_capability( "interface", 0 )
- set_callbacks( Open, Close )
- add_shortcut( "pda" )
-vlc_module_end ()
-
-/*****************************************************************************
- * Open: initialize and create window
- *****************************************************************************/
-static int Open( vlc_object_t *p_this )
-{
- intf_thread_t *p_intf = (intf_thread_t *)p_this;
-
- /* Allocate instance and initialize some members */
- p_intf->p_sys = malloc( sizeof( intf_sys_t ) );
- if( p_intf->p_sys == NULL )
- return VLC_ENOMEM;
-
-#ifdef NEED_GTK2_MAIN
- msg_Dbg( p_intf, "Using gui-helper" );
- p_intf->p_sys->p_gtk_main =
- module_need( p_this, "gui-helper", "gtk2", true );
- if( p_intf->p_sys->p_gtk_main == NULL )
- {
- free( p_intf->p_sys );
- return VLC_ENOMOD;
- }
-#endif
-
- /* Initialize Gtk+ thread */
- p_intf->p_sys->p_input = NULL;
-
- p_intf->p_sys->b_autoplayfile = 1;
- p_intf->p_sys->b_playing = 0;
- p_intf->p_sys->b_slider_free = 1;
-
- p_intf->pf_run = Run;
-
- return VLC_SUCCESS;
-}
-
-/*****************************************************************************
- * Close: destroy interface window
- *****************************************************************************/
-static void Close( vlc_object_t *p_this )
-{
- intf_thread_t *p_intf = (intf_thread_t *)p_this;
-
- if( p_intf->p_sys->p_input )
- {
- vlc_object_release( p_intf->p_sys->p_input );
- }
-
-#ifdef NEED_GTK2_MAIN
- msg_Dbg( p_intf, "Releasing gui-helper" );
- module_unneed( p_intf, p_intf->p_sys->p_gtk_main );
-#endif
-
- /* Destroy structure */
- free( p_intf->p_sys );
-}
-
-/*****************************************************************************
- * Run: Gtk+ thread
- *****************************************************************************
- * this part of the interface is in a separate thread so that we can call
- * gtk_main() from within it without annoying the rest of the program.
- *****************************************************************************/
-static void Run( intf_thread_t *p_intf )
-{
-#ifndef NEED_GTK2_MAIN
- /* gtk_init needs to know the command line. We don't care, so we
- * give it an empty one */
- char *p_args[] = { "", NULL };
- char **pp_args = p_args;
- int i_args = 1;
- int i_dummy;
-#endif
- playlist_t *p_playlist;
- GtkCellRenderer *p_renderer = NULL;
- GtkTreeViewColumn *p_column = NULL;
- GtkListStore *p_filelist = NULL;
- GtkListStore *p_playlist_store = NULL;
- int canc = vlc_savecancel();
-
-#ifndef NEED_GTK2_MAIN
- gtk_set_locale ();
- msg_Dbg( p_intf, "Starting pda GTK2+ interface" );
- gtk_init( &i_args, &pp_args );
-#else
- /* Initialize Gtk+ */
- msg_Dbg( p_intf, "Starting pda GTK2+ interface thread" );
- gdk_threads_enter();
-#endif
-
- /* Create some useful widgets that will certainly be used */
- add_pixmap_directory(config_GetDataDir());
-
- p_intf->p_sys->p_window = create_pda();
- if (p_intf->p_sys->p_window == NULL)
- {
- msg_Err( p_intf, "unable to create pda interface" );
- }
-
- /* Store p_intf to keep an eye on it */
- gtk_object_set_data( GTK_OBJECT(p_intf->p_sys->p_window),
- "p_intf", p_intf );
-
- /* Set the title of the main window */
- gtk_window_set_title( GTK_WINDOW(p_intf->p_sys->p_window),
- VOUT_TITLE " (PDA Linux interface)");
-
- /* Get the notebook object */
- p_intf->p_sys->p_notebook = GTK_NOTEBOOK( gtk_object_get_data(
- GTK_OBJECT( p_intf->p_sys->p_window ), "notebook" ) );
-
- /* Get the slider object */
- p_intf->p_sys->p_slider = (GtkHScale*) lookup_widget( p_intf->p_sys->p_window, "timeSlider" );
- p_intf->p_sys->p_slider_label = (GtkLabel*) lookup_widget( p_intf->p_sys->p_window, "timeLabel" );
- if (p_intf->p_sys->p_slider == NULL)
- msg_Err( p_intf, "Time slider widget not found." );
- if (p_intf->p_sys->p_slider_label == NULL)
- msg_Err( p_intf, "Time label widget not found." );
-
- /* Connect the date display to the slider */
- p_intf->p_sys->p_adj = gtk_range_get_adjustment( GTK_RANGE(p_intf->p_sys->p_slider) );
- if (p_intf->p_sys->p_adj == NULL)
- msg_Err( p_intf, "Adjustment range not found." );
- g_signal_connect( GTK_OBJECT( p_intf->p_sys->p_adj ), "value_changed",
- G_CALLBACK( GtkDisplayDate ), p_intf );
- p_intf->p_sys->f_adj_oldvalue = 0;
- p_intf->p_sys->i_adj_oldvalue = 0;
-
- /* BEGIN OF FILEVIEW GTK_TREE_VIEW */
- p_intf->p_sys->p_tvfile = NULL;
- p_intf->p_sys->p_tvfile = (GtkTreeView *) lookup_widget( p_intf->p_sys->p_window,
- "tvFileList");
- if (NULL == p_intf->p_sys->p_tvfile)
- msg_Err(p_intf, "Error obtaining pointer to File List");
-
- /* Insert columns 0 */
- p_renderer = gtk_cell_renderer_text_new ();
- gtk_tree_view_insert_column_with_attributes(p_intf->p_sys->p_tvfile, 0, (gchar *) N_("Filename"), p_renderer, NULL);
- p_column = gtk_tree_view_get_column(p_intf->p_sys->p_tvfile, 0 );
- gtk_tree_view_column_add_attribute(p_column, p_renderer, "text", 0 );
- gtk_tree_view_column_set_sort_column_id(p_column, 0);
- /* Insert columns 1 */
- p_renderer = gtk_cell_renderer_text_new ();
- gtk_tree_view_insert_column_with_attributes(p_intf->p_sys->p_tvfile, 1, (gchar *) N_("Permissions"), p_renderer, NULL);
- p_column = gtk_tree_view_get_column(p_intf->p_sys->p_tvfile, 1 );
- gtk_tree_view_column_add_attribute(p_column, p_renderer, "text", 1 );
- gtk_tree_view_column_set_sort_column_id(p_column, 1);
- /* Insert columns 2 */
- p_renderer = gtk_cell_renderer_text_new ();
- gtk_tree_view_insert_column_with_attributes(p_intf->p_sys->p_tvfile, 2, (gchar *) N_("Size"), p_renderer, NULL);
- p_column = gtk_tree_view_get_column(p_intf->p_sys->p_tvfile, 2 );
- gtk_tree_view_column_add_attribute(p_column, p_renderer, "text", 2 );
- gtk_tree_view_column_set_sort_column_id(p_column, 2);
- /* Insert columns 3 */
- p_renderer = gtk_cell_renderer_text_new ();
- gtk_tree_view_insert_column_with_attributes(p_intf->p_sys->p_tvfile, 3, (gchar *) N_("Owner"), p_renderer, NULL);
- p_column = gtk_tree_view_get_column(p_intf->p_sys->p_tvfile, 3 );
- gtk_tree_view_column_add_attribute(p_column, p_renderer, "text", 3 );
- gtk_tree_view_column_set_sort_column_id(p_column, 3);
- /* Insert columns 4 */
- p_renderer = gtk_cell_renderer_text_new ();
- gtk_tree_view_insert_column_with_attributes(p_intf->p_sys->p_tvfile, 4, (gchar *) N_("Group"), p_renderer, NULL);
- p_column = gtk_tree_view_get_column(p_intf->p_sys->p_tvfile, 4 );
- gtk_tree_view_column_add_attribute(p_column, p_renderer, "text", 4 );
- gtk_tree_view_column_set_sort_column_id(p_column, 4);
-
- /* Get new directory listing */
- p_filelist = gtk_list_store_new (5,
- G_TYPE_STRING, /* Filename */
- G_TYPE_STRING, /* permissions */
- G_TYPE_UINT64, /* File size */
- G_TYPE_STRING, /* Owner */
- G_TYPE_STRING);/* Group */
- ReadDirectory(p_intf, p_filelist, (char*)".");
- gtk_tree_view_set_model(GTK_TREE_VIEW(p_intf->p_sys->p_tvfile), GTK_TREE_MODEL(p_filelist));
- g_object_unref(p_filelist); /* Model will be released by GtkTreeView */
- gtk_tree_selection_set_mode(gtk_tree_view_get_selection(GTK_TREE_VIEW(p_intf->p_sys->p_tvfile)),GTK_SELECTION_MULTIPLE);
-
- /* Column properties */
- gtk_tree_view_set_headers_visible(p_intf->p_sys->p_tvfile, TRUE);
- gtk_tree_view_columns_autosize(p_intf->p_sys->p_tvfile);
- gtk_tree_view_set_headers_clickable(GTK_TREE_VIEW(p_intf->p_sys->p_tvfile),TRUE);
- /* END OF FILEVIEW GTK_TREE_VIEW */
-
- /* BEGIN OF PLAYLIST GTK_TREE_VIEW */
- p_intf->p_sys->p_tvplaylist = NULL;
- p_intf->p_sys->p_tvplaylist = (GtkTreeView *) lookup_widget( p_intf->p_sys->p_window, "tvPlaylist");
- if (NULL == p_intf->p_sys->p_tvplaylist)
- msg_Err(p_intf, "Error obtaining pointer to Play List");
-
- /* Columns 1 */
- p_renderer = gtk_cell_renderer_text_new ();
- gtk_tree_view_insert_column_with_attributes(p_intf->p_sys->p_tvplaylist, 0, (gchar *) N_("Filename"), p_renderer, NULL);
- p_column = gtk_tree_view_get_column(p_intf->p_sys->p_tvplaylist, 0 );
- gtk_tree_view_column_add_attribute(p_column, p_renderer, "text", 0 );
- gtk_tree_view_column_set_sort_column_id(p_column, 0);
- /* Column 2 */
- p_renderer = gtk_cell_renderer_text_new ();
- gtk_tree_view_insert_column_with_attributes(p_intf->p_sys->p_tvplaylist, 1, (gchar *) N_("Time"), p_renderer, NULL);
- p_column = gtk_tree_view_get_column(p_intf->p_sys->p_tvplaylist, 1 );
- gtk_tree_view_column_add_attribute(p_column, p_renderer, "text", 1 );
- gtk_tree_view_column_set_sort_column_id(p_column, 1);
-#if 0
- /* Column 3 - is a hidden column used for reliable deleting items from the underlying playlist */
- p_renderer = gtk_cell_renderer_text_new ();
- gtk_tree_view_insert_column_with_attributes(p_intf->p_sys->p_tvplaylist, 2, (gchar *) N_("Index"), p_renderer, NULL);
- p_column = gtk_tree_view_get_column(p_intf->p_sys->p_tvplaylist, 2 );
- gtk_tree_view_column_add_attribute(p_column, p_renderer, "text", 2 );
- gtk_tree_view_column_set_sort_column_id(p_column, 2);
-#endif
- /* update the playlist */
- p_playlist = pl_Hold( p_intf );
- p_playlist_store = gtk_list_store_new (3,
- G_TYPE_STRING, /* Filename */
- G_TYPE_STRING, /* Time */
- G_TYPE_UINT); /* Hidden index */
- PlaylistRebuildListStore(p_intf,p_playlist_store, p_playlist);
- gtk_tree_view_set_model(GTK_TREE_VIEW(p_intf->p_sys->p_tvplaylist), GTK_TREE_MODEL(p_playlist_store));
- g_object_unref(p_playlist_store);
- pl_Release( p_intf ); /* Free the playlist */
- gtk_tree_selection_set_mode(gtk_tree_view_get_selection(GTK_TREE_VIEW(p_intf->p_sys->p_tvplaylist)),GTK_SELECTION_MULTIPLE);
-
- /* Column properties */
- gtk_tree_view_set_headers_visible(p_intf->p_sys->p_tvplaylist, TRUE);
- gtk_tree_view_columns_autosize(p_intf->p_sys->p_tvplaylist);
- gtk_tree_view_set_headers_clickable(p_intf->p_sys->p_tvplaylist, TRUE);
- /* END OF PLAYLIST GTK_TREE_VIEW */
-
- /* Hide the Preference TAB for now. */
- GtkWidget *p_preference_tab = NULL;
- p_preference_tab = gtk_notebook_get_nth_page(p_intf->p_sys->p_notebook,5);
- if (p_preference_tab != NULL)
- gtk_widget_hide(p_preference_tab);
-
- /* Show the control window */
- gtk_widget_show( p_intf->p_sys->p_window );
-
-#ifdef NEED_GTK2_MAIN
- msg_Dbg( p_intf, "Manage GTK keyboard events using threads" );
- while( vlc_object_alive( p_intf ) )
- {
- Manage( p_intf );
-
- /* Sleep to avoid using all CPU - since some interfaces need to
- * access keyboard events, a 100ms delay is a good compromise */
- gdk_threads_leave();
- if (vlc_CPU() & CPU_CAPABILITY_FPU)
- msleep( INTF_IDLE_SLEEP );
- else
- msleep( 1000 );
- gdk_threads_enter();
- }
-#else
- msg_Dbg( p_intf, "Manage GTK keyboard events using timeouts" );
- /* Sleep to avoid using all CPU - since some interfaces needs to access
- * keyboard events, a 1000ms delay is a good compromise */
- if (vlc_CPU() & CPU_CAPABILITY_FPU)
- i_dummy = gtk_timeout_add( INTF_IDLE_SLEEP / 1000, (GtkFunction)Manage, p_intf );
- else
- i_dummy = gtk_timeout_add( 1000, (GtkFunction)Manage, p_intf );
-
- /* Enter Gtk mode */
- gtk_main();
- /* Remove the timeout */
- gtk_timeout_remove( i_dummy );
-#endif
-
- gtk_object_destroy( GTK_OBJECT(p_intf->p_sys->p_window) );
-#ifdef NEED_GTK2_MAIN
- gdk_threads_leave();
-#endif
- vlc_restorecancel(canc);
-}
-
-/* following functions are local */
-
-/*****************************************************************************
- * Manage: manage main thread messages
- *****************************************************************************
- * In this function, called approx. 10 times a second, we check what the
- * main program wanted to tell us.
- *****************************************************************************/
-static int Manage( intf_thread_t *p_intf )
-{
- GtkListStore *p_liststore;
-
- /* Update the input */
- if( p_intf->p_sys->p_input == NULL )
- {
- p_intf->p_sys->p_input = vlc_object_find( p_intf, VLC_OBJECT_INPUT,
- FIND_ANYWHERE );
- }
- else if( p_intf->p_sys->p_input->b_dead )
- {
- vlc_object_release( p_intf->p_sys->p_input );
- p_intf->p_sys->p_input = NULL;
- }
-
- if( p_intf->p_sys->p_input )
- {
- input_thread_t *p_input = p_intf->p_sys->p_input;
- int64_t i_time = 0, i_length = 0;
-
- if( vlc_object_alive (p_input) )
- {
- playlist_t *p_playlist;
-
- GtkModeManage( p_intf );
- p_intf->p_sys->b_playing = 1;
-
- /* update playlist interface */
- p_playlist = pl_Hold( p_intf );
- if (p_playlist != NULL)
- {
- p_liststore = gtk_list_store_new (3,
- G_TYPE_STRING,
- G_TYPE_STRING,
- G_TYPE_UINT); /* Hidden index */
- PlaylistRebuildListStore(p_intf, p_liststore, p_playlist);
- gtk_tree_view_set_model(p_intf->p_sys->p_tvplaylist, (GtkTreeModel*) p_liststore);
- g_object_unref(p_liststore);
- pl_Release( p_intf );
- }
-
- /* Manage the slider */
- i_time = var_GetTime( p_intf->p_sys->p_input, "time" );
- i_length = var_GetTime( p_intf->p_sys->p_input, "length" );
-
- if (vlc_CPU() & CPU_CAPABILITY_FPU)
- {
- /* Manage the slider for CPU_CAPABILITY_FPU hardware */
- if( p_intf->p_sys->b_playing )
- {
- float newvalue = p_intf->p_sys->p_adj->value;
-
- /* If the user hasn't touched the slider since the last time,
- * then the input can safely change it */
- if( newvalue == p_intf->p_sys->f_adj_oldvalue )
- {
- /* Update the value */
- p_intf->p_sys->p_adj->value =
- p_intf->p_sys->f_adj_oldvalue =
- ( 100 * i_time ) / i_length;
- g_signal_emit_by_name( GTK_OBJECT( p_intf->p_sys->p_adj ),
- "value_changed" );
- }
- /* Otherwise, send message to the input if the user has
- * finished dragging the slider */
- else if( p_intf->p_sys->b_slider_free )
- {
- double f_pos = (double)newvalue / 100.0;
-
- /* release the lock to be able to seek */
- var_SetFloat( p_input, "position", f_pos );
-
- /* Update the old value */
- p_intf->p_sys->f_adj_oldvalue = newvalue;
- }
- }
- }
- else
- {
- /* Manage the slider without CPU_CAPABILITY_FPU hardware */
- if( p_intf->p_sys->b_playing )
- {
- off_t newvalue = p_intf->p_sys->p_adj->value;
-
- /* If the user hasn't touched the slider since the last time,
- * then the input can safely change it */
- if( newvalue == p_intf->p_sys->i_adj_oldvalue )
- {
- /* Update the value */
- p_intf->p_sys->p_adj->value =
- p_intf->p_sys->i_adj_oldvalue =
- ( 100 * i_time ) / i_length;
- g_signal_emit_by_name( GTK_OBJECT( p_intf->p_sys->p_adj ),
- "value_changed" );
- }
- /* Otherwise, send message to the input if the user has
- * finished dragging the slider */
- else if( p_intf->p_sys->b_slider_free )
- {
- double f_pos = (double)newvalue / 100.0;
-
- /* release the lock to be able to seek */
- var_SetFloat( p_input, "position", f_pos );
-
- /* Update the old value */
- p_intf->p_sys->i_adj_oldvalue = newvalue;
- }
- }
- }
- }
- }
- else if( p_intf->p_sys->b_playing && vlc_object_alive( p_intf ) )
- {
- GtkModeManage( p_intf );
- p_intf->p_sys->b_playing = 0;
- }
-
-#ifndef NEED_GTK2_MAIN
- if( !vlc_object_alive( p_intf ) )
- {
- /* Prepare to die, young Skywalker */
- gtk_main_quit();
-
- return FALSE;
- }
-#endif
-
- return TRUE;
-}
-
-/*****************************************************************************
- * GtkDisplayDate: display stream date
- *****************************************************************************
- * This function displays the current date related to the position in
- * the stream. It is called whenever the slider changes its value.
- * The lock has to be taken before you call the function.
- *****************************************************************************/
-void GtkDisplayDate( GtkAdjustment *p_adj, gpointer userdata )
-{
- (void)p_adj;
-
- intf_thread_t *p_intf;
-
- p_intf = (intf_thread_t*) userdata;
- if (p_intf == NULL)
- return;
-
- if( p_intf->p_sys->p_input )
- {
- char psz_time[ MSTRTIME_MAX_SIZE ];
- int64_t i_seconds;
-
- i_seconds = var_GetTime( p_intf->p_sys->p_input, "time" ) / INT64_C(1000000 );
- secstotimestr( psz_time, i_seconds );
-
- gtk_label_set_text( GTK_LABEL( p_intf->p_sys->p_slider_label ),
- psz_time );
- }
-}
-
-/*****************************************************************************
- * GtkModeManage: actualize the aspect of the interface whenever the input
- * changes.
- *****************************************************************************
- * The lock has to be taken before you call the function.
- *****************************************************************************/
-gint GtkModeManage( intf_thread_t * p_intf )
-{
- GtkWidget * p_slider = NULL;
- bool b_control;
-
- if ( p_intf->p_sys->p_window == NULL )
- msg_Err( p_intf, "Main widget not found" );
-
- p_slider = lookup_widget( p_intf->p_sys->p_window, "timeSlider");
- if (p_slider == NULL)
- msg_Err( p_intf, "Slider widget not found" );
-
- /* controls unavailable */
- b_control = 0;
-
- /* show the box related to current input mode */
- if( p_intf->p_sys->p_input )
- {
- /* initialize and show slider for seekable streams */
- {
- gtk_widget_show( GTK_WIDGET( p_slider ) );
- }
-
- /* control buttons for free pace streams */
- b_control = var_GetBool( p_intf->p_sys->p_input, "can-rate" );
-
- msg_Dbg( p_intf, "stream has changed, refreshing interface" );
- }
-
- /* set control items */
- gtk_widget_set_sensitive( lookup_widget( p_intf->p_sys->p_window, "tbRewind"), b_control );
- gtk_widget_set_sensitive( lookup_widget( p_intf->p_sys->p_window, "tbPause"), b_control );
- gtk_widget_set_sensitive( lookup_widget( p_intf->p_sys->p_window, "tbForward"), b_control );
- return TRUE;
-}
+++ /dev/null
-<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
-<!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd">
-
-<glade-interface>
-
-<widget class="GtkWindow" id="pda">
- <property name="width_request">240</property>
- <property name="height_request">320</property>
- <property name="visible">True</property>
- <property name="title" translatable="yes">VLC media player</property>
- <property name="type">GTK_WINDOW_TOPLEVEL</property>
- <property name="window_position">GTK_WIN_POS_NONE</property>
- <property name="modal">False</property>
- <property name="resizable">True</property>
- <property name="destroy_with_parent">False</property>
- <property name="icon">vlc16x16.png</property>
- <signal name="delete_event" handler="onPDADeleteEvent" last_modification_time="Fri, 26 Sep 2003 13:23:22 GMT"/>
-
- <child>
- <widget class="GtkVBox" id="vbox">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">0</property>
-
- <child>
- <widget class="GtkToolbar" id="toolbar">
- <property name="width_request">240</property>
- <property name="height_request">22</property>
- <property name="visible">True</property>
- <property name="orientation">GTK_ORIENTATION_HORIZONTAL</property>
- <property name="toolbar_style">GTK_TOOLBAR_ICONS</property>
- <property name="tooltips">True</property>
-
- <child>
- <widget class="button" id="tbRewind">
- <property name="width_request">22</property>
- <property name="height_request">22</property>
- <property name="visible">True</property>
- <property name="tooltip" translatable="yes">Rewind</property>
- <property name="label" translatable="yes">Rewind</property>
- <property name="use_underline">True</property>
- <property name="icon">pda-rewindb16x16.xpm</property>
- <property name="new_group">True</property>
- <signal name="clicked" handler="onRewind" last_modification_time="Fri, 26 Sep 2003 12:26:47 GMT"/>
- </widget>
- <packing>
- <property name="new_group">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="button" id="tbPause">
- <property name="width_request">22</property>
- <property name="height_request">22</property>
- <property name="visible">True</property>
- <property name="tooltip" translatable="yes">Pause</property>
- <property name="label" translatable="yes">Pause</property>
- <property name="use_underline">True</property>
- <property name="icon">pda-pauseb16x16.xpm</property>
- <signal name="clicked" handler="onPause" last_modification_time="Fri, 26 Sep 2003 12:27:01 GMT"/>
- </widget>
- </child>
-
- <child>
- <widget class="button" id="tbPlay">
- <property name="width_request">22</property>
- <property name="height_request">22</property>
- <property name="visible">True</property>
- <property name="tooltip" translatable="yes">Play</property>
- <property name="label" translatable="yes">Play</property>
- <property name="use_underline">True</property>
- <property name="icon">pda-playb16x16.xpm</property>
- <signal name="clicked" handler="onPlay" last_modification_time="Fri, 26 Sep 2003 12:27:14 GMT"/>
- </widget>
- </child>
-
- <child>
- <widget class="button" id="tbStop">
- <property name="width_request">22</property>
- <property name="height_request">22</property>
- <property name="visible">True</property>
- <property name="tooltip" translatable="yes">Stop</property>
- <property name="label" translatable="yes">Stop</property>
- <property name="use_underline">True</property>
- <property name="icon">pda-stopb16x16.xpm</property>
- <signal name="clicked" handler="onStop" last_modification_time="Fri, 26 Sep 2003 12:27:25 GMT"/>
- </widget>
- </child>
-
- <child>
- <widget class="button" id="tbForward">
- <property name="width_request">22</property>
- <property name="height_request">22</property>
- <property name="visible">True</property>
- <property name="tooltip" translatable="yes">Forward</property>
- <property name="label" translatable="yes">Forward</property>
- <property name="use_underline">True</property>
- <property name="icon">pda-forwardb16x16.xpm</property>
- <signal name="clicked" handler="onForward" last_modification_time="Fri, 26 Sep 2003 12:27:35 GMT"/>
- </widget>
- </child>
-
- <child>
- <widget class="button" id="tbAbout">
- <property name="width_request">22</property>
- <property name="height_request">22</property>
- <property name="visible">True</property>
- <property name="tooltip" translatable="yes">About</property>
- <property name="label" translatable="yes">About</property>
- <property name="use_underline">True</property>
- <property name="icon">vlc16x16.png</property>
- <property name="new_group">True</property>
- <signal name="clicked" handler="onAbout" last_modification_time="Fri, 26 Sep 2003 12:27:44 GMT"/>
- </widget>
- <packing>
- <property name="new_group">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="timeLabel">
- <property name="visible">True</property>
- <property name="label">00:00:00</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_CENTER</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="new_group">True</property>
- </widget>
- <packing>
- <property name="new_group">True</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">5</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkHScale" id="timeSlider">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="draw_value">False</property>
- <property name="value_pos">GTK_POS_RIGHT</property>
- <property name="digits">3</property>
- <property name="update_policy">GTK_UPDATE_DISCONTINUOUS</property>
- <property name="inverted">False</property>
- <property name="adjustment">0 0 100 1 6.25 0</property>
- <signal name="button_release_event" handler="SliderRelease" last_modification_time="Fri, 26 Sep 2003 12:28:09 GMT"/>
- <signal name="button_press_event" handler="SliderPress" last_modification_time="Fri, 26 Sep 2003 12:28:14 GMT"/>
- <signal name="move_slider" handler="SliderMove" last_modification_time="Sat, 06 Dec 2003 22:37:00 GMT"/>
- </widget>
- <packing>
- <property name="padding">4</property>
- <property name="expand">False</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkNotebook" id="notebook">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="show_tabs">True</property>
- <property name="show_border">True</property>
- <property name="tab_pos">GTK_POS_TOP</property>
- <property name="scrollable">True</property>
- <property name="enable_popup">False</property>
-
- <child>
- <widget class="GtkScrolledWindow" id="scrolledwindow6">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
- <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
- <property name="shadow_type">GTK_SHADOW_NONE</property>
- <property name="window_placement">GTK_CORNER_TOP_LEFT</property>
-
- <child>
- <widget class="GtkViewport" id="viewport3">
- <property name="visible">True</property>
- <property name="shadow_type">GTK_SHADOW_IN</property>
-
- <child>
- <widget class="GtkVBox" id="vbox8">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">0</property>
-
- <child>
- <widget class="GtkScrolledWindow" id="scrolledwindow7">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="hscrollbar_policy">GTK_POLICY_ALWAYS</property>
- <property name="vscrollbar_policy">GTK_POLICY_ALWAYS</property>
- <property name="shadow_type">GTK_SHADOW_NONE</property>
- <property name="window_placement">GTK_CORNER_TOP_LEFT</property>
-
- <child>
- <widget class="GtkTreeView" id="tvFileList">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="headers_visible">True</property>
- <property name="rules_hint">False</property>
- <property name="reorderable">False</property>
- <property name="enable_search">True</property>
- <signal name="row_activated" handler="onFileListRow" last_modification_time="Fri, 26 Sep 2003 13:30:40 GMT"/>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkHBox" id="hbox">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">0</property>
-
- <child>
- <placeholder/>
- </child>
-
- <child>
- <widget class="GtkButton" id="AddFileToPlaylist">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label" translatable="yes">Add to Playlist</property>
- <property name="use_underline">True</property>
- <property name="relief">GTK_RELIEF_NORMAL</property>
- <signal name="pressed" handler="onAddFileToPlaylist" last_modification_time="Fri, 26 Sep 2003 12:31:03 GMT"/>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <placeholder/>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="tab_expand">False</property>
- <property name="tab_fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="File">
- <property name="visible">True</property>
- <property name="label" translatable="yes">File</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_CENTER</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="type">tab</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkVBox" id="vbox5">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">0</property>
-
- <child>
- <widget class="GtkHBox" id="hbox12">
- <property name="width_request">247</property>
- <property name="height_request">26</property>
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">0</property>
-
- <child>
- <widget class="GtkLabel" id="labelNetworkMRL">
- <property name="width_request">35</property>
- <property name="height_request">16</property>
- <property name="visible">True</property>
- <property name="label" translatable="yes">MRL:</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_CENTER</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkCombo" id="comboMRL">
- <property name="visible">True</property>
- <property name="value_in_list">False</property>
- <property name="allow_empty">True</property>
- <property name="case_sensitive">False</property>
- <property name="enable_arrow_keys">True</property>
- <property name="enable_arrows_always">False</property>
-
- <child internal-child="entry">
- <widget class="GtkEntry" id="entryMRL">
- <property name="width_request">158</property>
- <property name="height_request">24</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="editable">True</property>
- <property name="visibility">True</property>
- <property name="max_length">0</property>
- <property name="text"></property>
- <property name="has_frame">True</property>
- <property name="invisible_char">*</property>
- <property name="activates_default">True</property>
- </widget>
- </child>
-
- <child internal-child="list">
- <widget class="GtkList" id="listMRL">
- <property name="visible">True</property>
- <property name="selection_mode">GTK_SELECTION_BROWSE</property>
-
- <child>
- <widget class="GtkListItem" id="listitem340">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">udp://@:1234</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem341">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">udp6://@:1234</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem342">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">rtp://</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem343">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">rtp6://</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem344">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">ftp://</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem345">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">http://</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem346">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">mms://</property>
- </widget>
- </child>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkHSeparator" id="hseparator15">
- <property name="height_request">10</property>
- <property name="visible">True</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkTable" id="table2">
- <property name="visible">True</property>
- <property name="n_rows">6</property>
- <property name="n_columns">2</property>
- <property name="homogeneous">False</property>
- <property name="row_spacing">0</property>
- <property name="column_spacing">0</property>
-
- <child>
- <widget class="GtkLabel" id="labelNetworkPort">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Port:</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="left_attach">0</property>
- <property name="right_attach">1</property>
- <property name="top_attach">0</property>
- <property name="bottom_attach">1</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="labelNetworkAddress">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Address:</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="left_attach">0</property>
- <property name="right_attach">1</property>
- <property name="top_attach">1</property>
- <property name="bottom_attach">2</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkSpinButton" id="entryNetworkPort">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="climb_rate">1</property>
- <property name="digits">0</property>
- <property name="numeric">True</property>
- <property name="update_policy">GTK_UPDATE_ALWAYS</property>
- <property name="snap_to_ticks">False</property>
- <property name="wrap">False</property>
- <property name="adjustment">1234 0 65535 1 10 10</property>
- <signal name="changed" handler="NetworkBuildMRL" last_modification_time="Sat, 08 Nov 2003 13:34:10 GMT"/>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">0</property>
- <property name="bottom_attach">1</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkCombo" id="comboNetworkAddress">
- <property name="visible">True</property>
- <property name="value_in_list">False</property>
- <property name="allow_empty">True</property>
- <property name="case_sensitive">False</property>
- <property name="enable_arrow_keys">True</property>
- <property name="enable_arrows_always">False</property>
-
- <child internal-child="entry">
- <widget class="GtkEntry" id="entryNetworkAddress">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="editable">True</property>
- <property name="visibility">True</property>
- <property name="max_length">0</property>
- <property name="text"></property>
- <property name="has_frame">True</property>
- <property name="invisible_char">*</property>
- <property name="activates_default">False</property>
- <signal name="changed" handler="NetworkBuildMRL" last_modification_time="Sat, 08 Nov 2003 13:34:30 GMT"/>
- </widget>
- </child>
-
- <child internal-child="list">
- <widget class="GtkList" id="listNetworkAdress">
- <property name="visible">True</property>
- <property name="selection_mode">GTK_SELECTION_BROWSE</property>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">1</property>
- <property name="bottom_attach">2</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkCombo" id="comboNetworkType">
- <property name="visible">True</property>
- <property name="value_in_list">False</property>
- <property name="allow_empty">True</property>
- <property name="case_sensitive">False</property>
- <property name="enable_arrow_keys">True</property>
- <property name="enable_arrows_always">False</property>
-
- <child internal-child="entry">
- <widget class="GtkEntry" id="entryNetworkType">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="editable">True</property>
- <property name="visibility">True</property>
- <property name="max_length">0</property>
- <property name="text"></property>
- <property name="has_frame">True</property>
- <property name="invisible_char">*</property>
- <property name="activates_default">True</property>
- <signal name="changed" handler="NetworkBuildMRL" last_modification_time="Sat, 08 Nov 2003 13:34:45 GMT"/>
- </widget>
- </child>
-
- <child internal-child="list">
- <widget class="GtkList" id="listNetworkType">
- <property name="visible">True</property>
- <property name="selection_mode">GTK_SELECTION_BROWSE</property>
-
- <child>
- <widget class="GtkListItem" id="listitem85">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label" translatable="yes">unicast</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem86">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label" translatable="yes">multicast</property>
- </widget>
- </child>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">2</property>
- <property name="bottom_attach">3</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="labelNetworkType">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Network: </property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="left_attach">0</property>
- <property name="right_attach">1</property>
- <property name="top_attach">2</property>
- <property name="bottom_attach">3</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkCombo" id="comboNetworkProtocolType">
- <property name="visible">True</property>
- <property name="value_in_list">False</property>
- <property name="allow_empty">True</property>
- <property name="case_sensitive">False</property>
- <property name="enable_arrow_keys">True</property>
- <property name="enable_arrows_always">False</property>
-
- <child internal-child="entry">
- <widget class="GtkEntry" id="entryNetworkProtocolType">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="editable">True</property>
- <property name="visibility">True</property>
- <property name="max_length">0</property>
- <property name="text"></property>
- <property name="has_frame">True</property>
- <property name="invisible_char">*</property>
- <property name="activates_default">False</property>
- <signal name="changed" handler="NetworkBuildMRL" last_modification_time="Sat, 08 Nov 2003 13:35:01 GMT"/>
- </widget>
- </child>
-
- <child internal-child="list">
- <widget class="GtkList" id="listNetworkProtocolType">
- <property name="visible">True</property>
- <property name="selection_mode">GTK_SELECTION_BROWSE</property>
-
- <child>
- <widget class="GtkListItem" id="listitem1101">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">udp</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem1102">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">udp6</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem1103">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">rtp</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem1104">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">rtp4</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem1105">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">ftp</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem1106">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">http</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem1107">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label" translatable="yes">sout</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem1108">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">mms</property>
- </widget>
- </child>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">3</property>
- <property name="bottom_attach">4</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="labelNetworkProtocol">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Protocol:</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="left_attach">0</property>
- <property name="right_attach">1</property>
- <property name="top_attach">3</property>
- <property name="bottom_attach">4</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="labelNetworkTranscode">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Transcode:</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="left_attach">0</property>
- <property name="right_attach">1</property>
- <property name="top_attach">4</property>
- <property name="bottom_attach">5</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkCheckButton" id="checkNetworkTranscode">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label" translatable="yes">enable</property>
- <property name="use_underline">True</property>
- <property name="relief">GTK_RELIEF_NORMAL</property>
- <property name="active">False</property>
- <property name="inconsistent">False</property>
- <property name="draw_indicator">True</property>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">4</property>
- <property name="bottom_attach">5</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkHBox" id="hbox13">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">0</property>
-
- <child>
- <placeholder/>
- </child>
-
- <child>
- <widget class="GtkButton" id="AddNetworkPlaylist">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label" translatable="yes">Add to Playlist</property>
- <property name="use_underline">True</property>
- <property name="relief">GTK_RELIEF_NORMAL</property>
- <signal name="pressed" handler="onAddNetworkPlaylist" last_modification_time="Fri, 26 Sep 2003 12:37:36 GMT"/>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <placeholder/>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="tab_expand">True</property>
- <property name="tab_fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="Network">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Network</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_CENTER</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="type">tab</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkVBox" id="vbox7">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">0</property>
-
- <child>
- <widget class="GtkScrolledWindow" id="scrolledV4Lwindow">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="hscrollbar_policy">GTK_POLICY_ALWAYS</property>
- <property name="vscrollbar_policy">GTK_POLICY_ALWAYS</property>
- <property name="shadow_type">GTK_SHADOW_ETCHED_OUT</property>
- <property name="window_placement">GTK_CORNER_TOP_LEFT</property>
-
- <child>
- <widget class="GtkViewport" id="viewportV4L">
- <property name="visible">True</property>
- <property name="shadow_type">GTK_SHADOW_OUT</property>
-
- <child>
- <widget class="GtkTable" id="tableV4L">
- <property name="visible">True</property>
- <property name="n_rows">13</property>
- <property name="n_columns">2</property>
- <property name="homogeneous">False</property>
- <property name="row_spacing">0</property>
- <property name="column_spacing">0</property>
-
- <child>
- <widget class="GtkLabel" id="labelV4lVideDevice">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Video:</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="left_attach">0</property>
- <property name="right_attach">1</property>
- <property name="top_attach">0</property>
- <property name="bottom_attach">1</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="labelV4LAudioDevice">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Audio:</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="left_attach">0</property>
- <property name="right_attach">1</property>
- <property name="top_attach">1</property>
- <property name="bottom_attach">2</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="labelV4LChannel">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Channel:</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="left_attach">0</property>
- <property name="right_attach">1</property>
- <property name="top_attach">2</property>
- <property name="bottom_attach">3</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="labelV4LNorm">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Norm:</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="left_attach">0</property>
- <property name="right_attach">1</property>
- <property name="top_attach">3</property>
- <property name="bottom_attach">4</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="labelV4LSize">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Size:</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="left_attach">0</property>
- <property name="right_attach">1</property>
- <property name="top_attach">4</property>
- <property name="bottom_attach">5</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="labelV4LFrequency">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Frequency:</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="left_attach">0</property>
- <property name="right_attach">1</property>
- <property name="top_attach">5</property>
- <property name="bottom_attach">6</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="labelV4LSampleRate">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Samplerate:</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="left_attach">0</property>
- <property name="right_attach">1</property>
- <property name="top_attach">6</property>
- <property name="bottom_attach">7</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="labelV4LQuality">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Quality:</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="left_attach">0</property>
- <property name="right_attach">1</property>
- <property name="top_attach">7</property>
- <property name="bottom_attach">8</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="labelV4LTuner">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Tuner:</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="left_attach">0</property>
- <property name="right_attach">1</property>
- <property name="top_attach">9</property>
- <property name="bottom_attach">10</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="labelV4LSoundDirection">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Sound:</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="left_attach">0</property>
- <property name="right_attach">1</property>
- <property name="top_attach">8</property>
- <property name="bottom_attach">9</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="labelV4LMJPEG">
- <property name="visible">True</property>
- <property name="label" translatable="yes">MJPEG:</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="left_attach">0</property>
- <property name="right_attach">1</property>
- <property name="top_attach">10</property>
- <property name="bottom_attach">11</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="labelV4LDecimation">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Decimation:</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="left_attach">0</property>
- <property name="right_attach">1</property>
- <property name="top_attach">11</property>
- <property name="bottom_attach">12</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkCombo" id="comboV4lVideoDevice">
- <property name="visible">True</property>
- <property name="value_in_list">True</property>
- <property name="allow_empty">True</property>
- <property name="case_sensitive">False</property>
- <property name="enable_arrow_keys">True</property>
- <property name="enable_arrows_always">False</property>
-
- <child internal-child="entry">
- <widget class="GtkEntry" id="entryV4LVideoDevice">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="editable">True</property>
- <property name="visibility">True</property>
- <property name="max_length">0</property>
- <property name="text"></property>
- <property name="has_frame">True</property>
- <property name="invisible_char">*</property>
- <property name="activates_default">True</property>
- </widget>
- </child>
-
- <child internal-child="list">
- <widget class="GtkList" id="listV4LVideoDevice">
- <property name="visible">True</property>
- <property name="selection_mode">GTK_SELECTION_BROWSE</property>
-
- <child>
- <widget class="GtkListItem" id="listitem1188">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">/dev/video</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem1189">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">/dev/video0</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem1190">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">/dev/video1</property>
- </widget>
- </child>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">0</property>
- <property name="bottom_attach">1</property>
- <property name="x_options">expand|shrink|fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkCombo" id="comboV4lAudioDevice">
- <property name="visible">True</property>
- <property name="value_in_list">False</property>
- <property name="allow_empty">True</property>
- <property name="case_sensitive">False</property>
- <property name="enable_arrow_keys">True</property>
- <property name="enable_arrows_always">False</property>
-
- <child internal-child="entry">
- <widget class="GtkEntry" id="entryV4LAudioDevice">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="editable">True</property>
- <property name="visibility">True</property>
- <property name="max_length">0</property>
- <property name="text"></property>
- <property name="has_frame">True</property>
- <property name="invisible_char">*</property>
- <property name="activates_default">True</property>
- </widget>
- </child>
-
- <child internal-child="list">
- <widget class="GtkList" id="listV4LAudioDevice">
- <property name="visible">True</property>
- <property name="selection_mode">GTK_SELECTION_BROWSE</property>
-
- <child>
- <widget class="GtkListItem" id="listitem1256">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">/dev/dsp</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem1257">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">/dev/audio</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem1258">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">/dev/audio0</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem1259">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">/dev/audio1</property>
- </widget>
- </child>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">1</property>
- <property name="bottom_attach">2</property>
- <property name="x_options">expand|shrink|fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkSpinButton" id="entryV4LChannel">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="climb_rate">1</property>
- <property name="digits">0</property>
- <property name="numeric">True</property>
- <property name="update_policy">GTK_UPDATE_ALWAYS</property>
- <property name="snap_to_ticks">False</property>
- <property name="wrap">False</property>
- <property name="adjustment">0 0 100 1 10 10</property>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">2</property>
- <property name="bottom_attach">3</property>
- <property name="x_options">expand|shrink|fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkCombo" id="comboV4LNorm">
- <property name="visible">True</property>
- <property name="value_in_list">False</property>
- <property name="allow_empty">True</property>
- <property name="case_sensitive">False</property>
- <property name="enable_arrow_keys">True</property>
- <property name="enable_arrows_always">False</property>
-
- <child internal-child="entry">
- <widget class="GtkEntry" id="entryV4LNorm">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="editable">True</property>
- <property name="visibility">True</property>
- <property name="max_length">0</property>
- <property name="text"></property>
- <property name="has_frame">True</property>
- <property name="invisible_char">*</property>
- <property name="activates_default">True</property>
- </widget>
- </child>
-
- <child internal-child="list">
- <widget class="GtkList" id="listV4LNorm">
- <property name="visible">True</property>
- <property name="selection_mode">GTK_SELECTION_BROWSE</property>
-
- <child>
- <widget class="GtkListItem" id="listitem1286">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label" translatable="yes">pal</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem1287">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label" translatable="yes">ntsc</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem1288">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label" translatable="yes">secam</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem1289">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label" translatable="yes">auto</property>
- </widget>
- </child>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">3</property>
- <property name="bottom_attach">4</property>
- <property name="x_options">expand|shrink|fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkCombo" id="comboV4LSize">
- <property name="visible">True</property>
- <property name="value_in_list">False</property>
- <property name="allow_empty">True</property>
- <property name="case_sensitive">False</property>
- <property name="enable_arrow_keys">True</property>
- <property name="enable_arrows_always">False</property>
-
- <child internal-child="entry">
- <widget class="GtkEntry" id="entryV4LSize">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="editable">True</property>
- <property name="visibility">True</property>
- <property name="max_length">0</property>
- <property name="text"></property>
- <property name="has_frame">True</property>
- <property name="invisible_char">*</property>
- <property name="activates_default">True</property>
- </widget>
- </child>
-
- <child internal-child="list">
- <widget class="GtkList" id="listV4LSize">
- <property name="visible">True</property>
- <property name="selection_mode">GTK_SELECTION_BROWSE</property>
-
- <child>
- <widget class="GtkListItem" id="listitem1471">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">240x192</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem1472">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">320x240</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem1473">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">qsif</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem1474">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">qcif</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem1475">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">sif</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem1476">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">cif</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem1477">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">vga</property>
- </widget>
- </child>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">4</property>
- <property name="bottom_attach">5</property>
- <property name="x_options">expand|shrink|fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkSpinButton" id="entryV4LFrequency">
- <property name="visible">True</property>
- <property name="tooltip" translatable="yes">kHz</property>
- <property name="can_focus">True</property>
- <property name="climb_rate">1</property>
- <property name="digits">0</property>
- <property name="numeric">True</property>
- <property name="update_policy">GTK_UPDATE_ALWAYS</property>
- <property name="snap_to_ticks">False</property>
- <property name="wrap">False</property>
- <property name="adjustment">8692 0 65535 1 10 10</property>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">5</property>
- <property name="bottom_attach">6</property>
- <property name="x_options">expand|shrink|fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkSpinButton" id="entryV4LSampleRate">
- <property name="visible">True</property>
- <property name="tooltip" translatable="yes">Hz/s</property>
- <property name="can_focus">True</property>
- <property name="climb_rate">1</property>
- <property name="digits">0</property>
- <property name="numeric">True</property>
- <property name="update_policy">GTK_UPDATE_ALWAYS</property>
- <property name="snap_to_ticks">False</property>
- <property name="wrap">False</property>
- <property name="adjustment">44100 0 65535 1 10 10</property>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">6</property>
- <property name="bottom_attach">7</property>
- <property name="x_options">expand|shrink|fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkSpinButton" id="entryV4LQuality">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="climb_rate">1</property>
- <property name="digits">0</property>
- <property name="numeric">True</property>
- <property name="update_policy">GTK_UPDATE_ALWAYS</property>
- <property name="snap_to_ticks">False</property>
- <property name="wrap">False</property>
- <property name="adjustment">100 0 65535 1 10 10</property>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">7</property>
- <property name="bottom_attach">8</property>
- <property name="x_options">expand|shrink|fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkCombo" id="comboV4LSoundDirection">
- <property name="visible">True</property>
- <property name="value_in_list">True</property>
- <property name="allow_empty">True</property>
- <property name="case_sensitive">False</property>
- <property name="enable_arrow_keys">True</property>
- <property name="enable_arrows_always">True</property>
-
- <child internal-child="entry">
- <widget class="GtkEntry" id="entryV4LSoundDirection">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="editable">True</property>
- <property name="visibility">True</property>
- <property name="max_length">0</property>
- <property name="text"></property>
- <property name="has_frame">True</property>
- <property name="invisible_char">*</property>
- <property name="activates_default">True</property>
- </widget>
- </child>
-
- <child internal-child="list">
- <widget class="GtkList" id="listV4LSoundDirection">
- <property name="visible">True</property>
- <property name="selection_mode">GTK_SELECTION_BROWSE</property>
-
- <child>
- <widget class="GtkListItem" id="listitem1489">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label" translatable="yes">mono</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem1490">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label" translatable="yes">stereo</property>
- </widget>
- </child>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">8</property>
- <property name="bottom_attach">9</property>
- <property name="x_options">expand|shrink|fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkSpinButton" id="entryV4LTuner">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="climb_rate">1</property>
- <property name="digits">0</property>
- <property name="numeric">True</property>
- <property name="update_policy">GTK_UPDATE_ALWAYS</property>
- <property name="snap_to_ticks">False</property>
- <property name="wrap">False</property>
- <property name="adjustment">0 -1 100 1 10 10</property>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">9</property>
- <property name="bottom_attach">10</property>
- <property name="x_options">expand|shrink|fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkCheckButton" id="checkV4LMJPEG">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label" translatable="yes">enable</property>
- <property name="use_underline">True</property>
- <property name="relief">GTK_RELIEF_NORMAL</property>
- <property name="active">False</property>
- <property name="inconsistent">False</property>
- <property name="draw_indicator">True</property>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">10</property>
- <property name="bottom_attach">11</property>
- <property name="x_options">expand|shrink|fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkSpinButton" id="entryV4LDecimation">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="climb_rate">1</property>
- <property name="digits">0</property>
- <property name="numeric">False</property>
- <property name="update_policy">GTK_UPDATE_ALWAYS</property>
- <property name="snap_to_ticks">False</property>
- <property name="wrap">False</property>
- <property name="adjustment">1 0 100 1 10 10</property>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">11</property>
- <property name="bottom_attach">12</property>
- <property name="x_options">expand|shrink|fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="labelV4LTranscode">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Transcode:</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="left_attach">0</property>
- <property name="right_attach">1</property>
- <property name="top_attach">12</property>
- <property name="bottom_attach">13</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkCheckButton" id="checkV4LTranscode">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label" translatable="yes">enable</property>
- <property name="use_underline">True</property>
- <property name="relief">GTK_RELIEF_NORMAL</property>
- <property name="active">False</property>
- <property name="inconsistent">False</property>
- <property name="draw_indicator">True</property>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">12</property>
- <property name="bottom_attach">13</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkHBox" id="hbox16">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">0</property>
-
- <child>
- <placeholder/>
- </child>
-
- <child>
- <widget class="GtkButton" id="AddCameraToPlaylist">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label" translatable="yes">Add to Playlist</property>
- <property name="use_underline">True</property>
- <property name="relief">GTK_RELIEF_NORMAL</property>
- <signal name="pressed" handler="onAddCameraToPlaylist" last_modification_time="Fri, 26 Sep 2003 12:47:31 GMT"/>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <placeholder/>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="tab_expand">False</property>
- <property name="tab_fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="Camera">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Camera</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="type">tab</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkVBox" id="vbox1">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">0</property>
-
- <child>
- <widget class="GtkScrolledWindow" id="scrolledwindowTranscode">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
- <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
- <property name="shadow_type">GTK_SHADOW_NONE</property>
- <property name="window_placement">GTK_CORNER_TOP_LEFT</property>
-
- <child>
- <widget class="GtkViewport" id="viewport5">
- <property name="visible">True</property>
- <property name="shadow_type">GTK_SHADOW_IN</property>
-
- <child>
- <widget class="GtkTable" id="tableTranscode">
- <property name="visible">True</property>
- <property name="n_rows">14</property>
- <property name="n_columns">2</property>
- <property name="homogeneous">False</property>
- <property name="row_spacing">0</property>
- <property name="column_spacing">0</property>
-
- <child>
- <widget class="GtkLabel" id="labelVideoCodec">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Video Codec:</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="left_attach">0</property>
- <property name="right_attach">1</property>
- <property name="top_attach">0</property>
- <property name="bottom_attach">1</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkCombo" id="comboVideoCodec">
- <property name="visible">True</property>
- <property name="value_in_list">False</property>
- <property name="allow_empty">True</property>
- <property name="case_sensitive">False</property>
- <property name="enable_arrow_keys">True</property>
- <property name="enable_arrows_always">False</property>
-
- <child internal-child="entry">
- <widget class="GtkEntry" id="entryVideoCodec">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="editable">True</property>
- <property name="visibility">True</property>
- <property name="max_length">0</property>
- <property name="text"></property>
- <property name="has_frame">True</property>
- <property name="invisible_char">*</property>
- <property name="activates_default">True</property>
- </widget>
- </child>
-
- <child internal-child="list">
- <widget class="GtkList" id="listVideoCodec">
- <property name="visible">True</property>
- <property name="selection_mode">GTK_SELECTION_BROWSE</property>
-
- <child>
- <widget class="GtkListItem" id="listitem3159">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label" translatable="yes">huffyuv</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem3160">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">mp1v</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem3161">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">mp2v</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem3162">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">mp4v</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem3163">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">H263</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem3165">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">WMV1</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem3166">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">WMV2</property>
- </widget>
- </child>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">0</property>
- <property name="bottom_attach">1</property>
- <property name="x_options">expand|shrink|fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="labelVideoBitrate">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Video Bitrate:</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="left_attach">0</property>
- <property name="right_attach">1</property>
- <property name="top_attach">1</property>
- <property name="bottom_attach">2</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="labelVideoBitrateTolerance">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Bitrate Tolerance:</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="left_attach">0</property>
- <property name="right_attach">1</property>
- <property name="top_attach">2</property>
- <property name="bottom_attach">3</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="labelVideoKeyInterval">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Keyframe Interval:</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="left_attach">0</property>
- <property name="right_attach">1</property>
- <property name="top_attach">3</property>
- <property name="bottom_attach">4</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="labelAudioCodec">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Audio Codec:</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="left_attach">0</property>
- <property name="right_attach">1</property>
- <property name="top_attach">5</property>
- <property name="bottom_attach">6</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="labelVideoDeinterlace">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Deinterlace:</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="left_attach">0</property>
- <property name="right_attach">1</property>
- <property name="top_attach">4</property>
- <property name="bottom_attach">5</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="labelStdAccess">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Access:</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="left_attach">0</property>
- <property name="right_attach">1</property>
- <property name="top_attach">7</property>
- <property name="bottom_attach">8</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="labelStdMuxer">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Muxer:</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="left_attach">0</property>
- <property name="right_attach">1</property>
- <property name="top_attach">8</property>
- <property name="bottom_attach">9</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="labelStdUrl">
- <property name="visible">True</property>
- <property name="label" translatable="yes">URL:</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="left_attach">0</property>
- <property name="right_attach">1</property>
- <property name="top_attach">9</property>
- <property name="bottom_attach">10</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="labelStdTimeToLive">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Time To Live (TTL):</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="left_attach">0</property>
- <property name="right_attach">1</property>
- <property name="top_attach">10</property>
- <property name="bottom_attach">11</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkSpinButton" id="entryStdTTL">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="climb_rate">1</property>
- <property name="digits">0</property>
- <property name="numeric">False</property>
- <property name="update_policy">GTK_UPDATE_ALWAYS</property>
- <property name="snap_to_ticks">False</property>
- <property name="wrap">False</property>
- <property name="adjustment">1 0 100 1 10 10</property>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">10</property>
- <property name="bottom_attach">11</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkCombo" id="comboStdURL">
- <property name="visible">True</property>
- <property name="value_in_list">False</property>
- <property name="allow_empty">True</property>
- <property name="case_sensitive">False</property>
- <property name="enable_arrow_keys">True</property>
- <property name="enable_arrows_always">False</property>
-
- <child internal-child="entry">
- <widget class="GtkEntry" id="entryStdURL">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="editable">True</property>
- <property name="visibility">True</property>
- <property name="max_length">0</property>
- <property name="text"></property>
- <property name="has_frame">True</property>
- <property name="invisible_char">*</property>
- <property name="activates_default">True</property>
- </widget>
- </child>
-
- <child internal-child="list">
- <widget class="GtkList" id="listStdURL">
- <property name="visible">True</property>
- <property name="selection_mode">GTK_SELECTION_BROWSE</property>
-
- <child>
- <widget class="GtkListItem" id="listitem3190">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">127.0.0.1</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem3191">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">localhost</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem3192">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">localhost.localdomain</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem3193">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">239.0.0.42</property>
- </widget>
- </child>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">9</property>
- <property name="bottom_attach">10</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkCombo" id="comboStdMuxer">
- <property name="visible">True</property>
- <property name="value_in_list">False</property>
- <property name="allow_empty">True</property>
- <property name="case_sensitive">False</property>
- <property name="enable_arrow_keys">True</property>
- <property name="enable_arrows_always">False</property>
-
- <child internal-child="entry">
- <widget class="GtkEntry" id="entryStdMuxer">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="editable">True</property>
- <property name="visibility">True</property>
- <property name="max_length">0</property>
- <property name="text"></property>
- <property name="has_frame">True</property>
- <property name="invisible_char">*</property>
- <property name="activates_default">True</property>
- </widget>
- </child>
-
- <child internal-child="list">
- <widget class="GtkList" id="listStdMuxer">
- <property name="visible">True</property>
- <property name="selection_mode">GTK_SELECTION_BROWSE</property>
-
- <child>
- <widget class="GtkListItem" id="listitem3167">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">ps</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem3168">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">ts</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem3169">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">mpeg1</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem3170">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">avi</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem3171">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">ogg</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem3172">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">mp4</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem3173">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">mov</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem3174">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">asf</property>
- </widget>
- </child>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">8</property>
- <property name="bottom_attach">9</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkSpinButton" id="entryAudioBitrate">
- <property name="visible">True</property>
- <property name="tooltip" translatable="yes">kbits/s</property>
- <property name="can_focus">True</property>
- <property name="climb_rate">1</property>
- <property name="digits">0</property>
- <property name="numeric">True</property>
- <property name="update_policy">GTK_UPDATE_ALWAYS</property>
- <property name="snap_to_ticks">False</property>
- <property name="wrap">False</property>
- <property name="adjustment">256 0 65535 1 10 10</property>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">6</property>
- <property name="bottom_attach">7</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkCombo" id="comboAudioCodec">
- <property name="visible">True</property>
- <property name="value_in_list">False</property>
- <property name="allow_empty">True</property>
- <property name="case_sensitive">False</property>
- <property name="enable_arrow_keys">True</property>
- <property name="enable_arrows_always">False</property>
-
- <child internal-child="entry">
- <widget class="GtkEntry" id="entryAudioCodec">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="editable">True</property>
- <property name="visibility">True</property>
- <property name="max_length">0</property>
- <property name="text"></property>
- <property name="has_frame">True</property>
- <property name="invisible_char">*</property>
- <property name="activates_default">True</property>
- </widget>
- </child>
-
- <child internal-child="list">
- <widget class="GtkList" id="listAudioCodec">
- <property name="visible">True</property>
- <property name="selection_mode">GTK_SELECTION_BROWSE</property>
-
- <child>
- <widget class="GtkListItem" id="listitem3031">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">alaw</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem3032">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">ulaw</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem3033">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">mpga</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem3034">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">mp3</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem3035">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">a52</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem3036">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">vorb</property>
- </widget>
- </child>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">5</property>
- <property name="bottom_attach">6</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkCheckButton" id="checkVideoDeinterlace">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label" translatable="yes">enable</property>
- <property name="use_underline">True</property>
- <property name="relief">GTK_RELIEF_NORMAL</property>
- <property name="active">False</property>
- <property name="inconsistent">False</property>
- <property name="draw_indicator">True</property>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">4</property>
- <property name="bottom_attach">5</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkSpinButton" id="entryVideoKeyFrameInterval">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="climb_rate">1</property>
- <property name="digits">0</property>
- <property name="numeric">True</property>
- <property name="update_policy">GTK_UPDATE_ALWAYS</property>
- <property name="snap_to_ticks">False</property>
- <property name="wrap">False</property>
- <property name="adjustment">80 0 65535 1 10 10</property>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">3</property>
- <property name="bottom_attach">4</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkSpinButton" id="entryVideoBitrateTolerance">
- <property name="visible">True</property>
- <property name="tooltip" translatable="yes">bits/s</property>
- <property name="can_focus">True</property>
- <property name="climb_rate">1</property>
- <property name="digits">0</property>
- <property name="numeric">True</property>
- <property name="update_policy">GTK_UPDATE_ALWAYS</property>
- <property name="snap_to_ticks">False</property>
- <property name="wrap">False</property>
- <property name="adjustment">800000 0 1e+06 1 10 10</property>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">2</property>
- <property name="bottom_attach">3</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkSpinButton" id="entryVideoBitrate">
- <property name="visible">True</property>
- <property name="tooltip" translatable="yes">kbits/s</property>
- <property name="can_focus">True</property>
- <property name="climb_rate">1</property>
- <property name="digits">0</property>
- <property name="numeric">True</property>
- <property name="update_policy">GTK_UPDATE_ALWAYS</property>
- <property name="snap_to_ticks">False</property>
- <property name="wrap">False</property>
- <property name="adjustment">3000 0 65535 1 10 10</property>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">1</property>
- <property name="bottom_attach">2</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="labelAudioBitrate">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Audio Bitrate :</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="left_attach">0</property>
- <property name="right_attach">1</property>
- <property name="top_attach">6</property>
- <property name="bottom_attach">7</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkCombo" id="comboStdAccess">
- <property name="visible">True</property>
- <property name="value_in_list">False</property>
- <property name="allow_empty">True</property>
- <property name="case_sensitive">False</property>
- <property name="enable_arrow_keys">True</property>
- <property name="enable_arrows_always">False</property>
-
- <child internal-child="entry">
- <widget class="GtkEntry" id="entryStdAccess">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="editable">True</property>
- <property name="visibility">True</property>
- <property name="max_length">0</property>
- <property name="text"></property>
- <property name="has_frame">True</property>
- <property name="invisible_char">*</property>
- <property name="activates_default">True</property>
- <signal name="changed" handler="onEntryStdAccessChanged" last_modification_time="Sun, 30 Nov 2003 22:35:14 GMT"/>
- </widget>
- </child>
-
- <child internal-child="list">
- <widget class="GtkList" id="listStdAccess">
- <property name="visible">True</property>
- <property name="selection_mode">GTK_SELECTION_BROWSE</property>
-
- <child>
- <widget class="GtkListItem" id="listitem2385">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">udp</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem2386">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
-
- <child>
- <placeholder/>
- </child>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem2387">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label" translatable="yes">file</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem2388">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">http</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem2389">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">mmsh</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem2390">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">rtp</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem2391">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">http</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkListItem" id="listitem2392">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">ftp</property>
- </widget>
- </child>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">7</property>
- <property name="bottom_attach">8</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="labelSAP">
- <property name="visible">True</property>
- <property name="label" translatable="yes">SAP Announce:</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="left_attach">0</property>
- <property name="right_attach">1</property>
- <property name="top_attach">11</property>
- <property name="bottom_attach">12</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkCheckButton" id="checkSAP">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label" translatable="yes">enable</property>
- <property name="use_underline">True</property>
- <property name="relief">GTK_RELIEF_NORMAL</property>
- <property name="active">False</property>
- <property name="inconsistent">False</property>
- <property name="draw_indicator">True</property>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">11</property>
- <property name="bottom_attach">12</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkCheckButton" id="checkSLP">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label" translatable="yes">enable</property>
- <property name="use_underline">True</property>
- <property name="relief">GTK_RELIEF_NORMAL</property>
- <property name="active">False</property>
- <property name="inconsistent">False</property>
- <property name="draw_indicator">True</property>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">12</property>
- <property name="bottom_attach">13</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="labelSLP:">
- <property name="visible">True</property>
- <property name="label" translatable="yes">SLP Announce:</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="left_attach">0</property>
- <property name="right_attach">1</property>
- <property name="top_attach">12</property>
- <property name="bottom_attach">13</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="labelAnounceChannel">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Announce Channel:</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="left_attach">0</property>
- <property name="right_attach">1</property>
- <property name="top_attach">13</property>
- <property name="bottom_attach">14</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkCombo" id="comboAnnounceChannel">
- <property name="visible">True</property>
- <property name="value_in_list">False</property>
- <property name="allow_empty">True</property>
- <property name="case_sensitive">False</property>
- <property name="enable_arrow_keys">True</property>
- <property name="enable_arrows_always">False</property>
-
- <child internal-child="entry">
- <widget class="GtkEntry" id="entryAnnounceChannel">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="editable">True</property>
- <property name="visibility">True</property>
- <property name="max_length">0</property>
- <property name="text"></property>
- <property name="has_frame">True</property>
- <property name="invisible_char">*</property>
- <property name="activates_default">False</property>
- </widget>
- </child>
-
- <child internal-child="list">
- <widget class="GtkList" id="listAnnounceChannel">
- <property name="visible">True</property>
- <property name="selection_mode">GTK_SELECTION_BROWSE</property>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">13</property>
- <property name="bottom_attach">14</property>
- <property name="y_options"></property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkHBox" id="hbox14">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">0</property>
-
- <child>
- <placeholder/>
- </child>
-
- <child>
- <widget class="GtkButton" id="AddTranscodeToPlaylist">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label" translatable="yes">Add to Playlist</property>
- <property name="use_underline">True</property>
- <property name="relief">GTK_RELIEF_NORMAL</property>
- <signal name="pressed" handler="onAddTranscodeToPlaylist" last_modification_time="Sun, 09 Nov 2003 15:55:09 GMT"/>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <placeholder/>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="tab_expand">False</property>
- <property name="tab_fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="Transcode">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Transcode</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_CENTER</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="type">tab</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkVBox" id="vbox4">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">0</property>
-
- <child>
- <widget class="GtkScrolledWindow" id="scrolledwindow5">
- <property name="visible">True</property>
- <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
- <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
- <property name="shadow_type">GTK_SHADOW_IN</property>
- <property name="window_placement">GTK_CORNER_TOP_LEFT</property>
-
- <child>
- <widget class="GtkTreeView" id="tvPlaylist">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="headers_visible">True</property>
- <property name="rules_hint">False</property>
- <property name="reorderable">False</property>
- <property name="enable_search">True</property>
- <signal name="event" handler="PlaylistEvent" last_modification_time="Fri, 26 Sep 2003 12:48:10 GMT"/>
- <signal name="columns_changed" handler="onPlaylistColumnsChanged" last_modification_time="Fri, 26 Sep 2003 13:36:25 GMT"/>
- <signal name="select_cursor_row" handler="onPlaylistRowSelected" last_modification_time="Fri, 26 Sep 2003 13:37:22 GMT"/>
- <signal name="row_activated" handler="onPlaylistRow" last_modification_time="Fri, 26 Sep 2003 13:37:35 GMT"/>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkHBox" id="hbox11">
- <property name="visible">True</property>
- <property name="homogeneous">True</property>
- <property name="spacing">0</property>
-
- <child>
- <widget class="GtkButton" id="UpdatePlaylist">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label" translatable="yes">Update</property>
- <property name="use_underline">True</property>
- <property name="relief">GTK_RELIEF_NORMAL</property>
- <signal name="pressed" handler="onUpdatePlaylist" last_modification_time="Fri, 26 Sep 2003 12:48:43 GMT"/>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkButton" id="DeletePlaylist">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label" translatable="yes">Delete</property>
- <property name="use_underline">True</property>
- <property name="relief">GTK_RELIEF_NORMAL</property>
- <signal name="pressed" handler="onDeletePlaylist" last_modification_time="Fri, 26 Sep 2003 12:49:22 GMT"/>
- </widget>
- <packing>
- <property name="padding">5</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkButton" id="ClearPlaylist">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label" translatable="yes"> Clear </property>
- <property name="use_underline">True</property>
- <property name="relief">GTK_RELIEF_NORMAL</property>
- <signal name="pressed" handler="onClearPlaylist" last_modification_time="Fri, 26 Sep 2003 12:49:47 GMT"/>
- </widget>
- <packing>
- <property name="padding">5</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">2</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="tab_expand">False</property>
- <property name="tab_fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="playlist">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Playlist</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_CENTER</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="type">tab</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkVBox" id="vbox2">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">0</property>
-
- <child>
- <widget class="GtkScrolledWindow" id="scrolledwindowPreference">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="hscrollbar_policy">GTK_POLICY_ALWAYS</property>
- <property name="vscrollbar_policy">GTK_POLICY_ALWAYS</property>
- <property name="shadow_type">GTK_SHADOW_NONE</property>
- <property name="window_placement">GTK_CORNER_TOP_LEFT</property>
-
- <child>
- <widget class="GtkTreeView" id="tvPreferences">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="headers_visible">False</property>
- <property name="rules_hint">False</property>
- <property name="reorderable">False</property>
- <property name="enable_search">True</property>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkHBox" id="hbox2">
- <property name="visible">True</property>
- <property name="homogeneous">True</property>
- <property name="spacing">0</property>
-
- <child>
- <widget class="GtkButton" id="PreferenceSave">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label" translatable="yes"> Save </property>
- <property name="use_underline">True</property>
- <property name="relief">GTK_RELIEF_NORMAL</property>
- <signal name="pressed" handler="onPreferenceSave" last_modification_time="Fri, 26 Sep 2003 13:26:11 GMT"/>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkButton" id="PreferenceApply">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label" translatable="yes"> Apply </property>
- <property name="use_underline">True</property>
- <property name="relief">GTK_RELIEF_NORMAL</property>
- <signal name="pressed" handler="onPreferenceApply" last_modification_time="Fri, 26 Sep 2003 13:26:54 GMT"/>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <placeholder/>
- </child>
-
- <child>
- <widget class="GtkButton" id="PreferenceCancel">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label" translatable="yes"> Cancel </property>
- <property name="use_underline">True</property>
- <property name="relief">GTK_RELIEF_NORMAL</property>
- <signal name="pressed" handler="onPreferenceCancel" last_modification_time="Fri, 26 Sep 2003 13:27:19 GMT"/>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="pack_type">GTK_PACK_END</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">2</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="pack_type">GTK_PACK_END</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="tab_expand">False</property>
- <property name="tab_fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="preferences">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Preference</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_CENTER</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="type">tab</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkScrolledWindow" id="scrolledwindow3">
- <property name="visible">True</property>
- <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
- <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
- <property name="shadow_type">GTK_SHADOW_NONE</property>
- <property name="window_placement">GTK_CORNER_TOP_LEFT</property>
-
- <child>
- <widget class="GtkViewport" id="viewport1">
- <property name="visible">True</property>
- <property name="shadow_type">GTK_SHADOW_IN</property>
-
- <child>
- <widget class="GtkFixed" id="fixed2">
- <property name="visible">True</property>
-
- <child>
- <widget class="GtkImage" id="aboutImage">
- <property name="width_request">48</property>
- <property name="height_request">48</property>
- <property name="visible">True</property>
- <property name="pixbuf">vlc48x48.png</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="x">0</property>
- <property name="y">0</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="labelDescription">
- <property name="width_request">200</property>
- <property name="height_request">112</property>
- <property name="visible">True</property>
- <property name="label" translatable="yes">VLC media player is an MPEG, MPEG 2, MP3 and DivX player that accepts input from local or network sources and is licensed under the GPL (http://www.gnu.org/copyleft/gpl.html).</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">True</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="x">16</property>
- <property name="y">112</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="labelAuthors">
- <property name="width_request">208</property>
- <property name="height_request">32</property>
- <property name="visible">True</property>
- <property name="label" translatable="yes">Authors: the VideoLAN Team, http://www.videolan.org/team/</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">True</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="x">16</property>
- <property name="y">72</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="labelCopyright">
- <property name="width_request">208</property>
- <property name="height_request">16</property>
- <property name="visible">True</property>
- <property name="label" translatable="yes">(c) 1996-2004 the VideoLAN team</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_CENTER</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="x">16</property>
- <property name="y">48</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="labelProgramName">
- <property name="width_request">152</property>
- <property name="height_request">16</property>
- <property name="visible">True</property>
- <property name="label" translatable="yes">VLC media player</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_CENTER</property>
- <property name="wrap">True</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="x">48</property>
- <property name="y">16</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="tab_expand">False</property>
- <property name="tab_fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="about">
- <property name="visible">True</property>
- <property name="label" translatable="yes">About</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_CENTER</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="type">tab</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- <property name="pack_type">GTK_PACK_END</property>
- </packing>
- </child>
- </widget>
- </child>
-</widget>
-
-</glade-interface>
+++ /dev/null
-<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
-<!DOCTYPE glade-project SYSTEM "http://glade.gnome.org/glade-project-2.0.dtd">
-
-<glade-project>
- <name>Pda</name>
- <program_name>pda</program_name>
- <source_directory></source_directory>
- <pixmaps_directory>../../../share</pixmaps_directory>
- <gnome_support>FALSE</gnome_support>
- <use_widget_names>TRUE</use_widget_names>
- <output_main_file>FALSE</output_main_file>
- <output_build_files>FALSE</output_build_files>
- <main_source_file>pda_interface.c</main_source_file>
- <main_header_file>pda_interface.h</main_header_file>
- <handler_source_file>pda_callbacks.c</handler_source_file>
- <handler_header_file>pda_callbacks.h</handler_header_file>
- <support_source_file>pda_support.c</support_source_file>
- <support_header_file>pda_support.h</support_header_file>
-</glade-project>
+++ /dev/null
-/*****************************************************************************
- * pda.h: private Gtk+ interface description
- *****************************************************************************
- * Copyright (C) 1999, 2000 the VideoLAN team
- * $Id$
- *
- * Authors: Jean-Paul Saman <jpsaman _at_ videolan _dot_ org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
- *****************************************************************************/
-
-#define MAX_ATEXIT 10
-
-/*****************************************************************************
- * intf_sys_t: description and status of Gtk+ interface
- *****************************************************************************/
-struct intf_sys_t
-{
- /* The gtk_main module */
- module_t *p_gtk_main;
-
- /* windows and widgets */
- GtkWidget *p_window; /* main window */
- GtkNotebook *p_notebook;
- GtkHScale *p_slider;
- GtkTreeView *p_tvfile;
- GtkTreeView *p_tvplaylist;
-
- /* slider */
- GtkLabel * p_slider_label;
- GtkAdjustment * p_adj; /* slider adjustment object */
- off_t i_adj_oldvalue; /* previous value -no FPU hardware */
- float f_adj_oldvalue; /* previous value -with FPU hardware*/
-
- /* special actions */
- bool b_playing;
- bool b_window_changed; /* window display toggled ? */
- bool b_slider_free; /* slider status */
-
- /* Preference settings */
- bool b_autoplayfile;
-
- /* The input thread */
- input_thread_t * p_input;
-};
-
-/*****************************************************************************
- * Useful macro
- ****************************************************************************/
-#define GTK_GET( type, nom ) GTK_##type( gtk_object_get_data( \
- GTK_OBJECT( p_intf->p_sys->p_window ), nom ) )
-
-
-#define GtkGetIntf( widget ) __GtkGetIntf( GTK_WIDGET( widget ) )
-void * __GtkGetIntf( GtkWidget * );
+++ /dev/null
-/*****************************************************************************
- * pda_callbacks.c : Callbacks for the pda Linux Gtk+ plugin.
- *****************************************************************************
- * Copyright (C) 2000, 2001 the VideoLAN team
- * $Id$
- *
- * Authors: Jean-Paul Saman <jpsaman _at_ videolan _dot_ org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
- *****************************************************************************/
-
-/*****************************************************************************
- * Preamble
- *****************************************************************************/
-#include <sys/types.h> /* off_t */
-
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
-#include <vlc_common.h>
-#include <vlc_input.h>
-#include <vlc_interface.h>
-#include <vlc_playlist.h>
-#include <vlc_vout.h>
-
-#include <dirent.h>
-#include <sys/stat.h>
-#include <unistd.h>
-#include <pwd.h>
-#include <grp.h>
-
-#include <gtk/gtk.h>
-
-#include "pda_callbacks.h"
-#include "pda_interface.h"
-#include "pda_support.h"
-#include "pda.h"
-
-#define VLC_MAX_MRL 256
-
-static char *get_file_perms(struct stat st);
-
-/*****************************************************************************
- * Useful function to retrieve p_intf
- ****************************************************************************/
-void * __GtkGetIntf( GtkWidget * widget )
-{
- void *p_data;
-
- if( GTK_IS_MENU_ITEM( widget ) )
- {
- /* Look for a GTK_MENU */
- while( widget->parent && !GTK_IS_MENU( widget ) )
- {
- widget = widget->parent;
- }
-
- /* Maybe this one has the data */
- p_data = gtk_object_get_data( GTK_OBJECT( widget ), "p_intf" );
- if( p_data )
- {
- return p_data;
- }
-
- /* Otherwise, the parent widget has it */
- widget = gtk_menu_get_attach_widget( GTK_MENU( widget ) );
- }
-
- /* We look for the top widget */
- widget = gtk_widget_get_toplevel( GTK_WIDGET( widget ) );
-
- p_data = gtk_object_get_data( GTK_OBJECT( widget ), "p_intf" );
-
- return p_data;
-}
-
-static void PlaylistAddItem(GtkWidget *widget, gchar *name, char **ppsz_options, int i_size)
-{
- intf_thread_t *p_intf = GtkGetIntf( widget );
- playlist_t *p_playlist;
- int i_pos=0;
- GtkTreeView *p_tvplaylist = NULL;
-
- p_playlist = pl_Hold( p_intf );
-
- if( p_playlist == NULL)
- { /* Bail out when VLC's playlist object is not found. */
- return;
- }
-
- /* Add to playlist object. */
- p_tvplaylist = (GtkTreeView *) lookup_widget( GTK_WIDGET(widget), "tvPlaylist");
- if (p_tvplaylist)
- {
- GtkTreeModel *p_play_model;
- GtkTreeIter p_play_iter;
-
- p_play_model = gtk_tree_view_get_model(p_tvplaylist);
-
- if (p_play_model)
- {
- int i;
-
- /* Add a new row to the playlist treeview model */
- gtk_list_store_append (GTK_LIST_STORE(p_play_model), &p_play_iter);
- gtk_list_store_set (GTK_LIST_STORE(p_play_model), &p_play_iter,
- 0, name, /* Add path to it !!! */
- 1, "no info",
- 2, playlist_CurrentSize(p_playlist), /* Hidden index. */
- -1 );
-
- /* Add to VLC's playlist */
-#if 0
- if (p_intf->p_sys->b_autoplayfile)
- {
- playlist_Add( p_playlist, (const char*)name, (const char**)ppsz_options, i_size,
- PLAYLIST_APPEND | PLAYLIST_GO, PLAYLIST_END);
- }
- else
-#endif
- {
- playlist_AddExt( p_playlist, (const char*)name,
- (const char*)name,
- PLAYLIST_APPEND, PLAYLIST_END,
- (mtime_t) 0,
- i_size, (const char **) ppsz_options, VLC_INPUT_OPTION_TRUSTED,
- true, pl_Unlocked );
- }
-
- /* Cleanup memory */
- for (i=0; i<i_size; i++)
- free(ppsz_options[i]);
- free(ppsz_options);
- }
- }
- pl_Release( p_intf );
-}
-
-void PlaylistRebuildListStore( intf_thread_t *p_intf,
- GtkListStore * p_list, playlist_t * p_playlist )
-{
- GtkTreeIter iter;
- int i_dummy;
- gchar * ppsz_text[2];
-#if 0
- GdkColor red;
- red.red = 65535;
- red.blue = 0;
- red.green = 0;
-#endif
- PL_LOCK;
- for( i_dummy = 0; i_dummy < playlist_CurrentSize(p_playlist) ; i_dummy++ )
- {
- playlist_item_t *p_item = playlist_ItemGetById( p_playlist, i_dummy );
- if( p_item )
- {
- ppsz_text[0] = p_item->p_input->psz_name;
- ppsz_text[1] = "no info";
- gtk_list_store_append (p_list, &iter);
- gtk_list_store_set (p_list, &iter,
- 0, ppsz_text[0],
- 1, ppsz_text[1],
- 2, i_dummy, /* Hidden index */
- -1);
- }
- }
- PL_UNLOCK;
-}
-
-/*****************************************************************
- * Read directory helper function.
- ****************************************************************/
-void ReadDirectory(intf_thread_t *p_intf, GtkListStore *p_list, char *psz_dir )
-{
- GtkTreeIter iter;
- struct dirent **pp_namelist;
- struct passwd *p_pw;
- struct group *p_grp;
- struct stat st;
- int n=-1, status=-1;
-
- msg_Dbg(p_intf, "Changing to dir %s", psz_dir);
- if (psz_dir)
- {
- status = chdir(psz_dir);
- if (status<0)
- msg_Dbg(p_intf, "permision denied" );
- }
- n = scandir(".", &pp_namelist, 0, alphasort);
-
- if (n<0)
- perror("scandir");
- else
- {
- int i;
- gchar *ppsz_text[4];
-
- if (lstat("..", &st)==0)
- {
- /* user, group */
- p_pw = getpwuid(st.st_uid);
- p_grp = getgrgid(st.st_gid);
-
- /* XXX : kludge temporaire pour yopy */
- ppsz_text[0] = "..";
- ppsz_text[1] = get_file_perms(st);
- ppsz_text[2] = p_pw->pw_name;
- ppsz_text[3] = p_grp->gr_name;
-
- /* Add a new row to the model */
- gtk_list_store_append (p_list, &iter);
- gtk_list_store_set (p_list, &iter,
- 0, ppsz_text[0],
- 1, ppsz_text[1],
- 2, st.st_size,
- 3, ppsz_text[2],
- 4, ppsz_text[3],
- -1);
-
- free(ppsz_text[1]);
- }
- /* kludge */
- for (i=0; i<n; i++)
- {
- if ((pp_namelist[i]->d_name[0] != '.') &&
- (lstat(pp_namelist[i]->d_name, &st)==0))
- {
- /* user, group */
- p_pw = getpwuid(st.st_uid);
- p_grp = getgrgid(st.st_gid);
-
- /* This is a list of strings. */
- ppsz_text[0] = pp_namelist[i]->d_name;
- ppsz_text[1] = get_file_perms(st);
- ppsz_text[2] = p_pw->pw_name;
- ppsz_text[3] = p_grp->gr_name;
-#if 0
- msg_Dbg(p_intf, "(%d) file: %s permission: %s user: %s group: %s", i, ppsz_text[0], ppsz_text[1], ppsz_text[2], ppsz_text[3] );
-#endif
- gtk_list_store_append (p_list, &iter);
- gtk_list_store_set (p_list, &iter,
- 0, ppsz_text[0],
- 1, ppsz_text[1],
- 2, st.st_size,
- 3, ppsz_text[2],
- 4, ppsz_text[3],
- -1);
-
- free(ppsz_text[1]);
- }
- }
- free(pp_namelist);
- }
-}
-
-static char *get_file_perms(const struct stat st)
-{
- char *psz_perm;
-
- psz_perm = (char *) malloc(10);
- strncpy( psz_perm, "----------", sizeof("----------"));
-
- /* determine permission modes */
- if (S_ISLNK(st.st_mode))
- psz_perm[0]= 'l';
- else if (S_ISDIR(st.st_mode))
- psz_perm[0]= 'd';
- else if (S_ISCHR(st.st_mode))
- psz_perm[0]= 'c';
- else if (S_ISBLK(st.st_mode))
- psz_perm[0]= 'b';
- else if (S_ISFIFO(st.st_mode))
- psz_perm[0]= 'f';
- else if (S_ISSOCK(st.st_mode))
- psz_perm[0]= 's';
- else if (S_ISREG(st.st_mode))
- psz_perm[0]= '-';
- else /* Unknown type is an error */
- psz_perm[0]= '?';
- /* Get file permissions */
- /* User */
- if (st.st_mode & S_IRUSR)
- psz_perm[1]= 'r';
- if (st.st_mode & S_IWUSR)
- psz_perm[2]= 'w';
- if (st.st_mode & S_IXUSR)
- {
- if (st.st_mode & S_ISUID)
- psz_perm[3] = 's';
- else
- psz_perm[3]= 'x';
- }
- else if (st.st_mode & S_ISUID)
- psz_perm[3] = 'S';
- /* Group */
- if (st.st_mode & S_IRGRP)
- psz_perm[4]= 'r';
- if (st.st_mode & S_IWGRP)
- psz_perm[5]= 'w';
- if (st.st_mode & S_IXGRP)
- {
- if (st.st_mode & S_ISGID)
- psz_perm[6] = 's';
- else
- psz_perm[6]= 'x';
- }
- else if (st.st_mode & S_ISGID)
- psz_perm[6] = 'S';
- /* Other */
- if (st.st_mode & S_IROTH)
- psz_perm[7]= 'r';
- if (st.st_mode & S_IWOTH)
- psz_perm[8]= 'w';
- if (st.st_mode & S_IXOTH)
- {
- /* 'sticky' bit */
- if (st.st_mode &S_ISVTX)
- psz_perm[9] = 't';
- else
- psz_perm[9]= 'x';
- }
- else if (st.st_mode &S_ISVTX)
- psz_perm[9]= 'T';
-
- return psz_perm;
-}
-
-/*
- * Main interface callbacks
- */
-
-gboolean onPDADeleteEvent(GtkWidget *widget, GdkEvent *event, gpointer user_data)
-{
- intf_thread_t *p_intf = GtkGetIntf( widget );
-
- libvlc_Quit( p_intf->p_libvlc );
- msg_Dbg( p_intf, "about to exit vlc ... signaled" );
-
- return TRUE;
-}
-
-void onRewind(GtkButton *button, gpointer user_data)
-{
- intf_thread_t *p_intf = GtkGetIntf( button );
-
- if (p_intf->p_sys->p_input != NULL)
- {
- var_TriggerCallback( p_intf->p_sys->p_input, "rate-slower" );
- }
-}
-
-void onPause(GtkButton *button, gpointer user_data)
-{
- intf_thread_t *p_intf = GtkGetIntf( button );
-
- if (p_intf->p_sys->p_input != NULL)
- {
- var_SetInteger( p_intf->p_sys->p_input, "state", PAUSE_S );
- }
-}
-
-
-void onPlay(GtkButton *button, gpointer user_data)
-{
- intf_thread_t *p_intf = GtkGetIntf( GTK_WIDGET( button ) );
- playlist_t *p_playlist = pl_Hold( p_intf );
-
- if (p_playlist)
- {
- int s;
-
- PL_LOCK;
- s = playlist_CurrentSize(p_playlist);
- PL_UNLOCK;
- /* FIXME: This is racy... */
- if (s)
- {
- playlist_Play( p_playlist );
- gdk_window_lower( p_intf->p_sys->p_window->window );
- }
- pl_Release( p_intf );
- }
-}
-
-void onStop(GtkButton *button, gpointer user_data)
-{
- intf_thread_t *p_intf = GtkGetIntf( GTK_WIDGET( button ) );
- playlist_t *p_playlist = pl_Hold( p_intf );
- if (p_playlist)
- {
- playlist_Stop( p_playlist );
- pl_Release( p_intf );
- gdk_window_raise( p_intf->p_sys->p_window->window );
- }
-}
-
-void onForward(GtkButton *button, gpointer user_data)
-{
- intf_thread_t *p_intf = GtkGetIntf( button );
-
- if (p_intf->p_sys->p_input != NULL)
- {
- var_TriggerCallback( p_intf->p_sys->p_input, "rate-faster" );
- }
-}
-
-
-void onAbout(GtkButton *button, gpointer user_data)
-{
- intf_thread_t *p_intf = GtkGetIntf( GTK_WIDGET(button) );
-
- /* Toggle notebook */
- if (p_intf->p_sys->p_notebook)
- {
- gtk_widget_show( GTK_WIDGET(p_intf->p_sys->p_notebook) );
- gtk_notebook_set_page(p_intf->p_sys->p_notebook,6);
- }
-}
-
-gboolean SliderRelease(GtkWidget *widget, GdkEventButton *event, gpointer user_data)
-{
- intf_thread_t *p_intf = GtkGetIntf( widget );
-
- msg_Dbg( p_intf, "SliderButton Release" );
- p_intf->p_sys->b_slider_free = 1;
-
- return TRUE;
-}
-
-gboolean SliderPress(GtkWidget *widget, GdkEventButton *event, gpointer user_data)
-{
- intf_thread_t *p_intf = GtkGetIntf( widget );
-
- msg_Dbg( p_intf, "SliderButton Press" );
- p_intf->p_sys->b_slider_free = 0;
-
- return FALSE;
-}
-
-void SliderMove(GtkRange *range, GtkScrollType scroll, gpointer user_data)
-{
- intf_thread_t *p_intf = GtkGetIntf( range );
- msg_Dbg( p_intf, "SliderButton Move" );
-}
-
-
-static void addSelectedToPlaylist(GtkTreeModel *model, GtkTreePath *path,
- GtkTreeIter *iter, gpointer *userdata)
-{
- gchar *psz_filename;
-
- gtk_tree_model_get(model, iter, 0, &psz_filename, -1);
-
- PlaylistAddItem(GTK_WIDGET(userdata), psz_filename, 0, 0);
-}
-
-void onFileListRow(GtkTreeView *treeview, GtkTreePath *path,
- GtkTreeViewColumn *column, gpointer user_data)
-{
- intf_thread_t *p_intf = GtkGetIntf( GTK_WIDGET(treeview) );
- GtkTreeSelection *p_selection = gtk_tree_view_get_selection(treeview);
-
- if (gtk_tree_selection_count_selected_rows(p_selection) == 1)
- {
- struct stat st;
- GtkTreeModel *p_model;
- GtkTreeIter iter;
- char *psz_filename;
-
- /* This might be a directory selection */
- p_model = gtk_tree_view_get_model(treeview);
- if (!p_model)
- {
- msg_Err(p_intf, "PDA: Filelist model contains a NULL pointer" );
- return;
- }
- if (!gtk_tree_model_get_iter(p_model, &iter, path))
- {
- msg_Err( p_intf, "PDA: Could not get iter from model" );
- return;
- }
-
- gtk_tree_model_get(p_model, &iter, 0, &psz_filename, -1);
- if (stat((char*)psz_filename, &st)==0)
- {
- if (S_ISDIR(st.st_mode))
- {
- GtkListStore *p_store = NULL;
-
- /* Get new directory listing */
- p_store = gtk_list_store_new (5,
- G_TYPE_STRING,
- G_TYPE_STRING,
- G_TYPE_UINT64,
- G_TYPE_STRING,
- G_TYPE_STRING);
- if (p_store)
- {
- ReadDirectory(p_intf, p_store, psz_filename);
-
- /* Update TreeView with new model */
- gtk_tree_view_set_model(treeview, (GtkTreeModel*) p_store);
- g_object_unref(p_store);
- }
- }
- }
- }
-}
-
-void onAddFileToPlaylist(GtkButton *button, gpointer user_data)
-{
- GtkTreeView *p_treeview = NULL;
-
- p_treeview = (GtkTreeView *) lookup_widget( GTK_WIDGET(button), "tvFileList");
- if (p_treeview)
- {
- GtkTreeSelection *p_selection = gtk_tree_view_get_selection(p_treeview);
-
- gtk_tree_selection_selected_foreach(p_selection, (GtkTreeSelectionForeachFunc) &addSelectedToPlaylist, (gpointer) p_treeview);
- }
-}
-
-
-void NetworkBuildMRL(GtkEditable *editable, gpointer user_data)
-{
- intf_thread_t *p_intf = GtkGetIntf( GTK_WIDGET(editable) );
- GtkSpinButton *p_networkPort = NULL;
- GtkEntry *p_entryMRL = NULL;
- GtkEntry *p_networkType = NULL;
- GtkEntry *p_networkAddress = NULL;
- GtkEntry *p_networkProtocol = NULL;
- const gchar *psz_mrlNetworkType;
- const gchar *psz_mrlAddress;
- const gchar *psz_mrlProtocol;
- gint i_mrlPort;
- char text[VLC_MAX_MRL];
- int i_pos = 0;
-
- p_entryMRL = (GtkEntry*) lookup_widget( GTK_WIDGET(editable), "entryMRL" );
-
- p_networkType = (GtkEntry*) lookup_widget( GTK_WIDGET(editable), "entryNetworkType" );
- p_networkAddress = (GtkEntry*) lookup_widget( GTK_WIDGET(editable), "entryNetworkAddress" );
- p_networkPort = (GtkSpinButton*) lookup_widget( GTK_WIDGET(editable), "entryNetworkPort" );
- p_networkProtocol = (GtkEntry*) lookup_widget( GTK_WIDGET(editable), "entryNetworkProtocolType" );
-
- psz_mrlNetworkType = gtk_entry_get_text(GTK_ENTRY(p_networkType));
- psz_mrlAddress = gtk_entry_get_text(GTK_ENTRY(p_networkAddress));
- i_mrlPort = gtk_spin_button_get_value_as_int(p_networkPort);
- psz_mrlProtocol = gtk_entry_get_text(GTK_ENTRY(p_networkProtocol));
-
- /* Build MRL from parts ;-) */
- i_pos = snprintf( &text[0], VLC_MAX_MRL, "%s://", (char*)psz_mrlProtocol);
- if (strncasecmp( (char*)psz_mrlNetworkType, "multicast",9)==0)
- {
- i_pos += snprintf( &text[i_pos], VLC_MAX_MRL - i_pos, "@" );
- }
- i_pos += snprintf( &text[i_pos], VLC_MAX_MRL - i_pos, "%s:%d", (char*)psz_mrlAddress, (int)i_mrlPort );
-
- if (i_pos >= VLC_MAX_MRL)
- {
- text[VLC_MAX_MRL-1]='\0';
- msg_Err( p_intf, "Media Resource Locator is truncated to: %s", text);
- }
-
- gtk_entry_set_text(p_entryMRL,text);
-}
-
-void onAddNetworkPlaylist(GtkButton *button, gpointer user_data)
-{
- intf_thread_t *p_intf = GtkGetIntf( button );
-
- GtkEntry *p_mrl = NULL;
- GtkCheckButton *p_network_transcode = NULL;
- gboolean b_network_transcode;
- const gchar *psz_mrl_name;
-
- p_mrl = (GtkEntry*) lookup_widget(GTK_WIDGET(button),"entryMRL" );
- psz_mrl_name = gtk_entry_get_text(p_mrl);
-
- p_network_transcode = (GtkCheckButton*) lookup_widget(GTK_WIDGET(button), "checkNetworkTranscode" );
- b_network_transcode = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(p_network_transcode));
- if (b_network_transcode)
- {
- msg_Dbg( p_intf, "Network transcode option selected." );
- onAddTranscodeToPlaylist(button, (gchar *)psz_mrl_name);
- }
- else
- {
- msg_Dbg( p_intf, "Network receiving selected." );
- PlaylistAddItem(GTK_WIDGET(button), (gchar *)psz_mrl_name, 0, 0);
- }
-}
-
-
-void onAddCameraToPlaylist(GtkButton *button, gpointer user_data)
-{
- intf_thread_t *p_intf = GtkGetIntf( button );
-
- GtkSpinButton *entryV4LChannel = NULL;
- GtkSpinButton *entryV4LFrequency = NULL;
- GtkSpinButton *entryV4LSampleRate = NULL;
- GtkSpinButton *entryV4LQuality = NULL;
- GtkSpinButton *entryV4LTuner = NULL;
- gint i_v4l_channel;
- gint i_v4l_frequency;
- gint i_v4l_samplerate;
- gint i_v4l_quality;
- gint i_v4l_tuner;
-
- GtkEntry *entryV4LVideoDevice = NULL;
- GtkEntry *entryV4LAudioDevice = NULL;
- GtkEntry *entryV4LNorm = NULL;
- GtkEntry *entryV4LSize = NULL;
- GtkEntry *entryV4LSoundDirection = NULL;
- const gchar *p_v4l_video_device;
- const gchar *p_v4l_audio_device;
- const gchar *p_v4l_norm;
- const gchar *p_v4l_size;
- const gchar *p_v4l_sound_direction;
-
- /* MJPEG only */
- GtkCheckButton *checkV4LMJPEG = NULL;
- GtkSpinButton *entryV4LDecimation = NULL;
- gboolean b_v4l_mjpeg;
- gint i_v4l_decimation;
- /* end MJPEG only */
-
- GtkCheckButton *p_check_v4l_transcode = NULL;
- gboolean b_v4l_transcode;
-
- char **ppsz_options = NULL; /* list of options */
- int i_options=0;
- char v4l_mrl[6];
- int i_pos;
- int i;
-
- ppsz_options = (char **) malloc(11 *sizeof(char*));
- if (ppsz_options == NULL)
- return;
- for (i=0; i<11; i++)
- {
- ppsz_options[i] = (char *) malloc(VLC_MAX_MRL);
- if (ppsz_options[i] == NULL)
- {
- for (i-=1; i>=0; i--)
- free(ppsz_options[i]);
- free(ppsz_options);
- return;
- }
- }
-
- i_pos = snprintf( &v4l_mrl[0], 6, "v4l");
- v4l_mrl[5]='\0';
-
- entryV4LChannel = (GtkSpinButton*) lookup_widget( GTK_WIDGET(button), "entryV4LChannel" );
- entryV4LFrequency = (GtkSpinButton*) lookup_widget( GTK_WIDGET(button), "entryV4LFrequency" );
- entryV4LSampleRate = (GtkSpinButton*) lookup_widget( GTK_WIDGET(button), "entryV4LSampleRate" );
- entryV4LQuality = (GtkSpinButton*) lookup_widget( GTK_WIDGET(button), "entryV4LQuality" );
- entryV4LTuner = (GtkSpinButton*) lookup_widget( GTK_WIDGET(button), "entryV4LTuner" );
-
- entryV4LVideoDevice = (GtkEntry*) lookup_widget( GTK_WIDGET(button), "entryV4LVideoDevice" );
- entryV4LAudioDevice = (GtkEntry*) lookup_widget( GTK_WIDGET(button), "entryV4LAudioDevice" );
- entryV4LNorm = (GtkEntry*) lookup_widget( GTK_WIDGET(button), "entryV4LNorm" );
- entryV4LSize = (GtkEntry*) lookup_widget( GTK_WIDGET(button), "entryV4LSize" );
- entryV4LSoundDirection = (GtkEntry*) lookup_widget( GTK_WIDGET(button), "entryV4LSoundDirection" );
-
- i_v4l_channel = gtk_spin_button_get_value_as_int(entryV4LChannel);
- i_v4l_frequency = gtk_spin_button_get_value_as_int(entryV4LFrequency);
- i_v4l_samplerate = gtk_spin_button_get_value_as_int(entryV4LSampleRate);
- i_v4l_quality = gtk_spin_button_get_value_as_int(entryV4LQuality);
- i_v4l_tuner = gtk_spin_button_get_value_as_int(entryV4LTuner);
-
- p_v4l_video_device = gtk_entry_get_text(GTK_ENTRY(entryV4LVideoDevice));
- p_v4l_audio_device = gtk_entry_get_text(GTK_ENTRY(entryV4LAudioDevice));
- p_v4l_norm = gtk_entry_get_text(GTK_ENTRY(entryV4LNorm));
- p_v4l_size = gtk_entry_get_text(GTK_ENTRY(entryV4LSize));
- p_v4l_sound_direction = gtk_entry_get_text(GTK_ENTRY(entryV4LSoundDirection));
-
- i_pos = snprintf( &ppsz_options[i_options++][0], VLC_MAX_MRL, "%s", (char*)p_v4l_video_device );
- if (i_pos>=VLC_MAX_MRL) ppsz_options[i_options][VLC_MAX_MRL-1] = '\0';
- i_pos = snprintf( &ppsz_options[i_options++][0], VLC_MAX_MRL, "adev=%s", (char*)p_v4l_audio_device );
- if (i_pos>=VLC_MAX_MRL) ppsz_options[i_options][VLC_MAX_MRL-1] = '\0';
- i_pos = snprintf( &ppsz_options[i_options++][0], VLC_MAX_MRL, "norm=%s", (char*)p_v4l_norm );
- if (i_pos>=VLC_MAX_MRL) ppsz_options[i_options][VLC_MAX_MRL-1] = '\0';
- i_pos = snprintf( &ppsz_options[i_options++][0], VLC_MAX_MRL, "size=%s", (char*)p_v4l_size );
- if (i_pos>=VLC_MAX_MRL) ppsz_options[i_options][VLC_MAX_MRL-1] = '\0';
- i_pos = snprintf( &ppsz_options[i_options++][0], VLC_MAX_MRL, "%s", (char*)p_v4l_sound_direction );
- if (i_pos>=VLC_MAX_MRL) ppsz_options[i_options][VLC_MAX_MRL-1] = '\0';
-
- i_pos = snprintf( &ppsz_options[i_options++][0], VLC_MAX_MRL, "channel=%d", (int)i_v4l_channel );
- if (i_pos>=VLC_MAX_MRL) ppsz_options[i_options][VLC_MAX_MRL-1] = '\0';
- i_pos = snprintf( &ppsz_options[i_options++][0], VLC_MAX_MRL, "frequency=%d", (int)i_v4l_frequency );
- if (i_pos>=VLC_MAX_MRL) ppsz_options[i_options][VLC_MAX_MRL-1] = '\0';
- i_pos = snprintf( &ppsz_options[i_options++][0], VLC_MAX_MRL, "samplerate=%d", (int)i_v4l_samplerate );
- if (i_pos>=VLC_MAX_MRL) ppsz_options[i_options][VLC_MAX_MRL-1] = '\0';
- i_pos = snprintf( &ppsz_options[i_options++][0], VLC_MAX_MRL, "quality=%d", (int)i_v4l_quality );
- if (i_pos>=VLC_MAX_MRL) ppsz_options[i_options][VLC_MAX_MRL-1] = '\0';
- i_pos = snprintf( &ppsz_options[i_options++][0], VLC_MAX_MRL, "tuner=%d", (int)i_v4l_tuner );
- if (i_pos>=VLC_MAX_MRL) ppsz_options[i_options][VLC_MAX_MRL-1] = '\0';
-
- /* MJPEG only */
- checkV4LMJPEG = (GtkCheckButton*) lookup_widget( GTK_WIDGET(button), "checkV4LMJPEG" );
- b_v4l_mjpeg = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(checkV4LMJPEG));
- if (b_v4l_mjpeg)
- {
- entryV4LDecimation = (GtkSpinButton*) lookup_widget( GTK_WIDGET(button), "entryV4LDecimation" );
- i_v4l_decimation = gtk_spin_button_get_value_as_int(entryV4LDecimation);
-
- i_pos = snprintf( &ppsz_options[i_options++][0], VLC_MAX_MRL, "mjpeg:%d", (int)i_v4l_decimation );
- if (i_pos>=VLC_MAX_MRL) ppsz_options[i_options][VLC_MAX_MRL-1] = '\0';
- }
- /* end MJPEG only */
-
- p_check_v4l_transcode = (GtkCheckButton*) lookup_widget(GTK_WIDGET(button), "checkV4LTranscode" );
- b_v4l_transcode = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(p_check_v4l_transcode));
- if (b_v4l_transcode)
- {
- msg_Dbg( p_intf, "Camera transcode option selected." );
- onAddTranscodeToPlaylist(button, (gchar *)v4l_mrl);
- }
- else
- {
- msg_Dbg( p_intf, "Camera reception option selected." );
- PlaylistAddItem(GTK_WIDGET(button), (gchar*) &v4l_mrl, ppsz_options, i_options);
- }
-}
-
-
-gboolean PlaylistEvent(GtkWidget *widget, GdkEvent *event, gpointer user_data)
-{
- return FALSE;
-}
-
-
-void onPlaylistColumnsChanged(GtkTreeView *treeview, gpointer user_data)
-{
-}
-
-
-gboolean onPlaylistRowSelected(GtkTreeView *treeview, gboolean start_editing, gpointer user_data)
-{
- return FALSE;
-}
-
-
-void onPlaylistRow(GtkTreeView *treeview, GtkTreePath *path,
- GtkTreeViewColumn *column, gpointer user_data)
-{
- intf_thread_t *p_intf = GtkGetIntf( GTK_WIDGET(treeview) );
- GtkTreeSelection *p_selection = gtk_tree_view_get_selection(treeview);
- playlist_t * p_playlist = pl_Hold( p_intf );
-
- if( p_playlist == NULL )
- {
- return; // FALSE;
- }
-
- if (gtk_tree_selection_count_selected_rows(p_selection) == 1)
- {
- GtkTreeModel *p_model;
- GtkTreeIter iter;
- int i_row;
- int i_skip;
-
- /* This might be a directory selection */
- p_model = gtk_tree_view_get_model(treeview);
- if (!p_model)
- {
- msg_Err(p_intf, "PDA: Playlist model contains a NULL pointer" );
- pl_Release( p_intf );
- return;
- }
- if (!gtk_tree_model_get_iter(p_model, &iter, path))
- {
- msg_Err( p_intf, "PDA: Playlist could not get iter from model" );
- pl_Release( p_intf );
- return;
- }
-
- gtk_tree_model_get(p_model, &iter, 2, &i_row, -1);
- i_skip = i_row - p_playlist->i_current_index;
- playlist_Skip( p_playlist, i_skip );
- }
- pl_Release( p_intf );
-}
-
-
-void onUpdatePlaylist(GtkButton *button, gpointer user_data)
-{
- intf_thread_t * p_intf = GtkGetIntf( button );
- playlist_t * p_playlist = pl_Hold( p_intf );
- GtkTreeView *p_tvplaylist = NULL;
-
- if( p_playlist == NULL )
- {
- return;
- }
-
- p_tvplaylist = (GtkTreeView*) lookup_widget( GTK_WIDGET(button), "tvPlaylist");
- if (p_tvplaylist)
- {
- GtkListStore *p_model = NULL;
-
- /* Rebuild the playlist then. */
- p_model = gtk_list_store_new (3,
- G_TYPE_STRING, /* Filename */
- G_TYPE_STRING, /* Time */
- G_TYPE_UINT); /* Hidden field */
- if (p_model)
- {
- PlaylistRebuildListStore(p_intf, p_model, p_playlist);
- gtk_tree_view_set_model(GTK_TREE_VIEW(p_tvplaylist), GTK_TREE_MODEL(p_model));
- g_object_unref(p_model);
- }
- }
- pl_Release( p_intf );
-}
-
-static void deleteItemFromPlaylist(gpointer data, gpointer user_data)
-{
- gtk_tree_path_free((GtkTreePath*) data); // removing an item.
-}
-
-void onDeletePlaylist(GtkButton *button, gpointer user_data)
-{
- intf_thread_t *p_intf = GtkGetIntf( button );
- playlist_t * p_playlist = pl_Hold( p_intf );
- GtkTreeView *p_tvplaylist;
-
- /* Delete an arbitrary item from the playlist */
- p_tvplaylist = (GtkTreeView *) lookup_widget( GTK_WIDGET(button), "tvPlaylist" );
- if (p_tvplaylist != NULL)
- {
- GList *p_rows = NULL;
- GList *p_node;
- GtkTreeModel *p_model = NULL;
- GtkListStore *p_store = NULL;
- GtkTreeSelection *p_selection = gtk_tree_view_get_selection(p_tvplaylist);
-
- p_model = gtk_tree_view_get_model(p_tvplaylist);
- if (p_model)
- {
- p_rows = gtk_tree_selection_get_selected_rows(p_selection, &p_model);
-
- if( g_list_length( p_rows ) )
- {
- /* reverse-sort so that we can delete from the furthest
- * to the closest item to delete...
- */
- p_rows = g_list_reverse( p_rows );
- }
-
- for (p_node=p_rows; p_node!=NULL; p_node = p_node->next)
- {
- GtkTreeIter iter;
- GtkTreePath *p_path = NULL;
-
- p_path = (GtkTreePath *)p_node->data;
- if (p_path)
- {
- if (gtk_tree_model_get_iter(p_model, &iter, p_path))
- {
- gint item;
-
- gtk_tree_model_get(p_model, &iter, 2, &item, -1);
- msg_Err( p_playlist, "PDA delete broken");
- }
- }
- }
-#if 0
- g_list_foreach (p_rows, (GFunc*)gtk_tree_path_free, NULL);
-#endif /* Testing the next line */
- g_list_foreach (p_rows, deleteItemFromPlaylist, NULL);
- g_list_free (p_rows);
- }
-
- /* Rebuild the playlist then. */
- p_store = gtk_list_store_new (3,
- G_TYPE_STRING, /* Filename */
- G_TYPE_STRING, /* Time */
- G_TYPE_UINT); /* Hidden field */
- if (p_store)
- {
- PlaylistRebuildListStore(p_intf, p_store, p_playlist);
- gtk_tree_view_set_model(GTK_TREE_VIEW(p_tvplaylist), GTK_TREE_MODEL(p_store));
- g_object_unref(p_store);
- }
- }
- pl_Release( p_intf );
-}
-
-
-void onClearPlaylist(GtkButton *button, gpointer user_data)
-{
- intf_thread_t *p_intf = GtkGetIntf( button );
- playlist_t * p_playlist = pl_Hold( p_intf );
- GtkTreeView *p_tvplaylist;
- int item;
-
- if( p_playlist == NULL )
- {
- return;
- }
-
- for(item = playlist_CurrentSize(p_playlist) - 1; item >= 0 ;item-- )
- {
- msg_Err( p_playlist, "fix pda delete" );
- }
- pl_Release( p_intf );
-
- // Remove all entries from the Playlist widget.
- p_tvplaylist = (GtkTreeView*) lookup_widget( GTK_WIDGET(button), "tvPlaylist");
- if (p_tvplaylist)
- {
- GtkTreeModel *p_play_model;
-
- p_play_model = gtk_tree_view_get_model(p_tvplaylist);
- if (p_play_model)
- {
- gtk_list_store_clear(GTK_LIST_STORE(p_play_model));
- }
- }
-}
-
-
-void onPreferenceSave(GtkButton *button, gpointer user_data)
-{
-#if 0
- intf_thread_t *p_intf = GtkGetIntf( button );
-
- msg_Dbg(p_intf, "Preferences Save" );
- config_SaveConfigFile( p_intf, NULL );
-#endif
-}
-
-
-void onPreferenceApply(GtkButton *button, gpointer user_data)
-{
-#if 0
- intf_thread_t *p_intf = GtkGetIntf( button );
-
- msg_Dbg(p_intf, "Preferences Apply" );
-#endif
-}
-
-
-void onPreferenceCancel(GtkButton *button, gpointer user_data)
-{
-#if 0
- intf_thread_t *p_intf = GtkGetIntf( button );
-
- msg_Dbg(p_intf, "Preferences Cancel" );
- config_ResetAll( p_intf );
- /* Cancel interface changes. */
- config_SaveConfigFile( p_intf, NULL );
-#endif
-}
-
-
-void onAddTranscodeToPlaylist(GtkButton *button, gpointer user_data)
-{
- intf_thread_t *p_intf = GtkGetIntf( button );
-
- GtkEntry *p_entryVideoCodec = NULL;
- GtkSpinButton *p_entryVideoBitrate = NULL;
- GtkSpinButton *p_entryVideoBitrateTolerance = NULL;
- GtkSpinButton *p_entryVideoKeyFrameInterval = NULL;
- GtkCheckButton *p_checkVideoDeinterlace = NULL;
- GtkEntry *p_entryAudioCodec = NULL;
- GtkSpinButton *p_entryAudioBitrate = NULL;
- const gchar *p_video_codec;
- gint i_video_bitrate;
- gint i_video_bitrate_tolerance;
- gint i_video_keyframe_interval;
- gboolean b_video_deinterlace;
- const gchar *p_audio_codec;
- gint i_audio_bitrate;
-
- GtkEntry *p_entryStdAccess = NULL;
- GtkEntry *p_entryStdMuxer = NULL;
- GtkEntry *p_entryStdURL = NULL;
- GtkEntry *p_entryStdAnnounce = NULL;
- GtkSpinButton *p_entryStdTTL = NULL;
- GtkCheckButton *p_checkSAP = NULL;
- GtkCheckButton *p_checkSLP = NULL;
- const gchar *p_std_announce;
- const gchar *p_std_access;
- const gchar *p_std_muxer;
- const gchar *p_std_url;
- gboolean b_sap_announce;
- gboolean b_slp_announce;
- gint i_std_ttl;
-
- char **ppsz_options = NULL; /* list of options */
- int i_options=0;
- int i;
-
- gchar mrl[7];
- int i_pos;
-
- ppsz_options = (char **) malloc(3 *sizeof(char*));
- if (ppsz_options == NULL)
- return;
- for (i=0; i<3; i++)
- {
- ppsz_options[i] = (char *) malloc(VLC_MAX_MRL);
- if (ppsz_options[i] == NULL)
- {
- for (i-=1; i>=0; i--)
- free(ppsz_options[i]);
- free(ppsz_options);
- return;
- }
- }
-
- /* Update the playlist */
- playlist_t *p_playlist = pl_Hold( p_intf );
- if( p_playlist == NULL ) return;
- pl_Release( p_intf );
-
- /* Get all the options. */
- i_pos = snprintf( &mrl[0], VLC_MAX_MRL, "sout");
- mrl[6] = '\0';
- /* option 1 */
- i_pos = snprintf( &ppsz_options[i_options][0], VLC_MAX_MRL, "sout='#transcode{");
- if (i_pos>=VLC_MAX_MRL) ppsz_options[i_options][VLC_MAX_MRL-1] = '\0';
-
- p_entryVideoCodec = (GtkEntry*) lookup_widget( GTK_WIDGET(button), "entryVideoCodec" );
- p_entryVideoBitrate = (GtkSpinButton*) lookup_widget( GTK_WIDGET(button), "entryVideoBitrate" );
- p_entryVideoBitrateTolerance = (GtkSpinButton*) lookup_widget( GTK_WIDGET(button), "entryVideoBitrateTolerance" );
- p_entryVideoKeyFrameInterval = (GtkSpinButton*) lookup_widget( GTK_WIDGET(button), "entryVideoKeyFrameInterval" );
-
- p_video_codec = gtk_entry_get_text(GTK_ENTRY(p_entryVideoCodec));
- i_video_bitrate = gtk_spin_button_get_value_as_int(p_entryVideoBitrate);
- i_video_bitrate_tolerance = gtk_spin_button_get_value_as_int(p_entryVideoBitrateTolerance);
- i_video_keyframe_interval = gtk_spin_button_get_value_as_int(p_entryVideoKeyFrameInterval);
-
- i_pos += snprintf( &ppsz_options[i_options][i_pos], VLC_MAX_MRL - i_pos, "vcodec=%s,", (char*)p_video_codec );
- if (i_pos>=VLC_MAX_MRL) ppsz_options[i_options][VLC_MAX_MRL-1] = '\0';
- i_pos += snprintf( &ppsz_options[i_options][i_pos], VLC_MAX_MRL - i_pos, "vb=%d,", (int)i_video_bitrate );
- if (i_pos>=VLC_MAX_MRL) ppsz_options[i_options][VLC_MAX_MRL-1] = '\0';
- i_pos += snprintf( &ppsz_options[i_options][i_pos], VLC_MAX_MRL - i_pos, "vt=%d,", (int)i_video_bitrate_tolerance );
- if (i_pos>=VLC_MAX_MRL) ppsz_options[i_options][VLC_MAX_MRL-1] = '\0';
- i_pos += snprintf( &ppsz_options[i_options][i_pos], VLC_MAX_MRL - i_pos, "keyint=%d,", (int)i_video_keyframe_interval );
- if (i_pos>=VLC_MAX_MRL) ppsz_options[i_options][VLC_MAX_MRL-1] = '\0';
-
- p_checkVideoDeinterlace = (GtkCheckButton*) lookup_widget( GTK_WIDGET(button), "checkVideoDeinterlace" );
- b_video_deinterlace = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(p_checkVideoDeinterlace));
- if (b_video_deinterlace)
- {
- i_pos += snprintf( &ppsz_options[i_options][i_pos], VLC_MAX_MRL - i_pos, "deinterlace," );
- if (i_pos>=VLC_MAX_MRL) ppsz_options[i_options][VLC_MAX_MRL-1] = '\0';
- }
- p_entryAudioCodec = (GtkEntry*) lookup_widget( GTK_WIDGET(button), "entryAudioCodec" );
- p_entryAudioBitrate = (GtkSpinButton*) lookup_widget( GTK_WIDGET(button), "entryAudioBitrate" );
-
- p_audio_codec = gtk_entry_get_text(GTK_ENTRY(p_entryAudioCodec));
- i_audio_bitrate = gtk_spin_button_get_value_as_int(p_entryAudioBitrate);
-
- i_pos += snprintf( &ppsz_options[i_options][i_pos], VLC_MAX_MRL - i_pos, "acodec=%s,", (char*)p_audio_codec );
- if (i_pos>=VLC_MAX_MRL) ppsz_options[i_options][VLC_MAX_MRL-1] = '\0';
- i_pos += snprintf( &ppsz_options[i_options][i_pos], VLC_MAX_MRL - i_pos, "ab=%d,", (int)i_audio_bitrate );
- if (i_pos>=VLC_MAX_MRL) ppsz_options[i_options][VLC_MAX_MRL-1] = '\0';
- i_pos += snprintf( &ppsz_options[i_options][i_pos], VLC_MAX_MRL - i_pos, "channels=1}"/*, (int)i_audio_channels*/ );
- if (i_pos>=VLC_MAX_MRL) ppsz_options[i_options][VLC_MAX_MRL-1] = '\0';
-
- /* option 2 */
- i_pos = 0;
- i_pos = snprintf( &ppsz_options[i_options++][i_pos], VLC_MAX_MRL - i_pos, "#" );
- if (i_pos>=VLC_MAX_MRL) ppsz_options[i_options][VLC_MAX_MRL-1] = '\0';
-
- p_entryStdAccess = (GtkEntry*) lookup_widget( GTK_WIDGET(button), "entryStdAccess" );
- p_entryStdMuxer = (GtkEntry*) lookup_widget( GTK_WIDGET(button), "entryStdMuxer" );
- p_entryStdURL = (GtkEntry*) lookup_widget( GTK_WIDGET(button), "entryStdURL" );
- p_entryStdAnnounce = (GtkEntry*) lookup_widget( GTK_WIDGET(button), "entryAnnounceChannel" );
- p_entryStdTTL = (GtkSpinButton*) lookup_widget( GTK_WIDGET(button), "entryStdTTL" );
-
- p_std_access = gtk_entry_get_text(GTK_ENTRY(p_entryStdAccess));
- p_std_muxer = gtk_entry_get_text(GTK_ENTRY(p_entryStdMuxer));
- p_std_url = gtk_entry_get_text(GTK_ENTRY(p_entryStdURL));
- p_std_announce = gtk_entry_get_text(GTK_ENTRY(p_entryStdAnnounce));
- b_sap_announce = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(p_checkSAP));
- b_slp_announce = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(p_checkSLP));
-
- i_pos += snprintf( &ppsz_options[i_options][i_pos], VLC_MAX_MRL - i_pos, "std{access=%s,", (char*)p_std_access);
- if (i_pos>=VLC_MAX_MRL) ppsz_options[i_options][VLC_MAX_MRL-1] = '\0';
- i_pos += snprintf( &ppsz_options[i_options][i_pos], VLC_MAX_MRL - i_pos, "mux=%s,", (char*)p_std_muxer);
- if (i_pos>=VLC_MAX_MRL) ppsz_options[i_options][VLC_MAX_MRL-1] = '\0';
- i_pos += snprintf( &ppsz_options[i_options][i_pos], VLC_MAX_MRL - i_pos, "dst=%s", (char*)p_std_url);
- if (i_pos>=VLC_MAX_MRL) ppsz_options[i_options][VLC_MAX_MRL-1] = '\0';
-
- if (strncasecmp( (const char*)p_std_access, "udp", 3)==0)
- {
- if (b_sap_announce)
- {
- i_pos += snprintf( &ppsz_options[i_options][i_pos], VLC_MAX_MRL - i_pos, "sap=%s", (char*)p_std_announce);
- if (i_pos>=VLC_MAX_MRL) ppsz_options[i_options][VLC_MAX_MRL-1] = '\0';
- }
- if (b_slp_announce)
- {
- i_pos += snprintf( &ppsz_options[i_options][i_pos], VLC_MAX_MRL - i_pos, "slp=%s", (char*)p_std_announce);
- if (i_pos>=VLC_MAX_MRL) ppsz_options[i_options][VLC_MAX_MRL-1] = '\0';
- }
- }
-
- i_std_ttl = gtk_spin_button_get_value_as_int(p_entryStdTTL);
-
- i_pos += snprintf( &ppsz_options[i_options++][i_pos], VLC_MAX_MRL - i_pos, "ttl=%d}", (int)i_std_ttl);
- if (i_pos>=VLC_MAX_MRL) ppsz_options[i_options][VLC_MAX_MRL-1] = '\0';
-
- if (user_data != NULL)
- {
- msg_Dbg(p_intf, "Adding transcoding options to playlist item." );
- }
- else
- {
- msg_Dbg(p_intf, "Adding --sout to playlist." );
- PlaylistAddItem(GTK_WIDGET(button), (gchar*) &mrl, ppsz_options, i_options);
- }
-}
-
-void onEntryStdAccessChanged(GtkEditable *editable, gpointer user_data)
-{
- intf_thread_t *p_intf = GtkGetIntf( editable );
-
- GtkCheckButton *p_checkSAP = NULL;
- GtkCheckButton *p_checkSLP = NULL;
- GtkEntry *p_entryStdAccess = NULL;
- const gchar *p_std_access = NULL;
- gboolean b_announce = FALSE;
-
- p_entryStdAccess = (GtkEntry*) lookup_widget( GTK_WIDGET(editable), "entryStdAccess" );
- p_checkSAP = (GtkCheckButton*) lookup_widget( GTK_WIDGET(editable), "checkSAP" );
- p_checkSLP = (GtkCheckButton*) lookup_widget( GTK_WIDGET(editable), "checkSLP" );
-
- if ( (p_std_access == NULL) || (p_checkSAP == NULL) || (p_checkSLP == NULL))
- {
- msg_Err( p_intf, "Access, SAP and SLP widgets not found." );
- return;
- }
- p_std_access = gtk_entry_get_text(GTK_ENTRY(p_entryStdAccess));
-
- b_announce = (strncasecmp( (const char*)p_std_access, "udp", 3) == 0);
- gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(p_checkSAP), b_announce);
- gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(p_checkSLP), b_announce);
-}
-
+++ /dev/null
-/*****************************************************************************
- * callbacks.h : pda plugin for vlc
- *****************************************************************************
- * Copyright (C) 2003 the VideoLAN team
- * $Id$
- *
- * Authors: Jean-Paul Saman <jpsaman _at_ videolan _dot_ org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
- *****************************************************************************/
-
-#include <gtk/gtk.h>
-
-#include <vlc_common.h>
-#include <vlc_interface.h>
-
-void ReadDirectory( intf_thread_t *p_intf, GtkListStore *p_list, char *psz_dir );
-void PlaylistRebuildListStore( intf_thread_t *p_intf, GtkListStore *p_list, playlist_t * p_playlist );
-
-
-gboolean
-onPDADeleteEvent (GtkWidget *widget,
- GdkEvent *event,
- gpointer user_data);
-
-void
-onRewind (GtkButton *button,
- gpointer user_data);
-
-void
-onPause (GtkButton *button,
- gpointer user_data);
-
-void
-onPlay (GtkButton *button,
- gpointer user_data);
-
-void
-onStop (GtkButton *button,
- gpointer user_data);
-
-void
-onForward (GtkButton *button,
- gpointer user_data);
-
-void
-onAbout (GtkButton *button,
- gpointer user_data);
-
-gboolean
-SliderRelease (GtkWidget *widget,
- GdkEventButton *event,
- gpointer user_data);
-
-gboolean
-SliderPress (GtkWidget *widget,
- GdkEventButton *event,
- gpointer user_data);
-
-void
-onFileListRow (GtkTreeView *treeview,
- GtkTreePath *path,
- GtkTreeViewColumn *column,
- gpointer user_data);
-
-void
-onAddFileToPlaylist (GtkButton *button,
- gpointer user_data);
-
-void
-onAddNetworkPlaylist (GtkButton *button,
- gpointer user_data);
-
-void
-onAddCameraToPlaylist (GtkButton *button,
- gpointer user_data);
-
-gboolean
-PlaylistEvent (GtkWidget *widget,
- GdkEvent *event,
- gpointer user_data);
-
-void
-onPlaylistColumnsChanged (GtkTreeView *treeview,
- gpointer user_data);
-
-gboolean
-onPlaylistRowSelected (GtkTreeView *treeview,
- gboolean start_editing,
- gpointer user_data);
-
-void
-onPlaylistRow (GtkTreeView *treeview,
- GtkTreePath *path,
- GtkTreeViewColumn *column,
- gpointer user_data);
-
-void
-onUpdatePlaylist (GtkButton *button,
- gpointer user_data);
-
-void
-onDeletePlaylist (GtkButton *button,
- gpointer user_data);
-
-void
-onClearPlaylist (GtkButton *button,
- gpointer user_data);
-
-void
-onPreferenceSave (GtkButton *button,
- gpointer user_data);
-
-void
-onPreferenceApply (GtkButton *button,
- gpointer user_data);
-
-void
-onPreferenceCancel (GtkButton *button,
- gpointer user_data);
-
-
-void
-NetworkBuildMRL (GtkEditable *editable,
- gpointer user_data);
-
-
-void
-onAddTranscodeToPlaylist (GtkButton *button,
- gpointer user_data);
-
-
-void
-onEntryStdAccessChanged (GtkEditable *editable,
- gpointer user_data);
-
-void
-SliderMove (GtkRange *range,
- GtkScrollType scroll,
- gpointer user_data);
-
+++ /dev/null
-/*
- * DO NOT EDIT THIS FILE - it is generated by Glade.
- */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <unistd.h>
-
-#include <gdk/gdkkeysyms.h>
-#include <gtk/gtk.h>
-
-#include "pda_callbacks.h"
-#include "pda_interface.h"
-#include "pda_support.h"
-
-#define GLADE_HOOKUP_OBJECT(component,widget,name) \
- g_object_set_data_full (G_OBJECT (component), name, \
- gtk_widget_ref (widget), (GDestroyNotify) gtk_widget_unref)
-
-#define GLADE_HOOKUP_OBJECT_NO_REF(component,widget,name) \
- g_object_set_data (G_OBJECT (component), name, widget)
-
-GtkWidget*
-create_pda (void)
-{
- GtkWidget *pda;
- GdkPixbuf *pda_icon_pixbuf;
- GtkWidget *vbox;
- GtkWidget *toolbar;
- GtkWidget *tmp_toolbar_icon;
- GtkWidget *tbRewind;
- GtkWidget *tbPause;
- GtkWidget *tbPlay;
- GtkWidget *tbStop;
- GtkWidget *tbForward;
- GtkWidget *tbAbout;
- GtkWidget *timeLabel;
- GtkWidget *timeSlider;
- GtkWidget *notebook;
- GtkWidget *scrolledwindow6;
- GtkWidget *viewport3;
- GtkWidget *vbox8;
- GtkWidget *scrolledwindow7;
- GtkWidget *tvFileList;
- GtkWidget *hbox;
- GtkWidget *AddFileToPlaylist;
- GtkWidget *File;
- GtkWidget *vbox5;
- GtkWidget *hbox12;
- GtkWidget *labelNetworkMRL;
- GtkWidget *comboMRL;
- GList *comboMRL_items = NULL;
- GtkWidget *entryMRL;
- GtkWidget *hseparator15;
- GtkWidget *table2;
- GtkWidget *labelNetworkPort;
- GtkWidget *labelNetworkAddress;
- GtkObject *entryNetworkPort_adj;
- GtkWidget *entryNetworkPort;
- GtkWidget *comboNetworkAddress;
- GtkWidget *entryNetworkAddress;
- GtkWidget *comboNetworkType;
- GList *comboNetworkType_items = NULL;
- GtkWidget *entryNetworkType;
- GtkWidget *labelNetworkType;
- GtkWidget *comboNetworkProtocolType;
- GList *comboNetworkProtocolType_items = NULL;
- GtkWidget *entryNetworkProtocolType;
- GtkWidget *labelNetworkProtocol;
- GtkWidget *labelNetworkTranscode;
- GtkWidget *checkNetworkTranscode;
- GtkWidget *hbox13;
- GtkWidget *AddNetworkPlaylist;
- GtkWidget *Network;
- GtkWidget *vbox7;
- GtkWidget *scrolledV4Lwindow;
- GtkWidget *viewportV4L;
- GtkWidget *tableV4L;
- GtkWidget *labelV4lVideDevice;
- GtkWidget *labelV4LAudioDevice;
- GtkWidget *labelV4LChannel;
- GtkWidget *labelV4LNorm;
- GtkWidget *labelV4LSize;
- GtkWidget *labelV4LFrequency;
- GtkWidget *labelV4LSampleRate;
- GtkWidget *labelV4LQuality;
- GtkWidget *labelV4LTuner;
- GtkWidget *labelV4LSoundDirection;
- GtkWidget *labelV4LMJPEG;
- GtkWidget *labelV4LDecimation;
- GtkWidget *comboV4lVideoDevice;
- GList *comboV4lVideoDevice_items = NULL;
- GtkWidget *entryV4LVideoDevice;
- GtkWidget *comboV4lAudioDevice;
- GList *comboV4lAudioDevice_items = NULL;
- GtkWidget *entryV4LAudioDevice;
- GtkObject *entryV4LChannel_adj;
- GtkWidget *entryV4LChannel;
- GtkWidget *comboV4LNorm;
- GList *comboV4LNorm_items = NULL;
- GtkWidget *entryV4LNorm;
- GtkWidget *comboV4LSize;
- GList *comboV4LSize_items = NULL;
- GtkWidget *entryV4LSize;
- GtkObject *entryV4LFrequency_adj;
- GtkWidget *entryV4LFrequency;
- GtkObject *entryV4LSampleRate_adj;
- GtkWidget *entryV4LSampleRate;
- GtkObject *entryV4LQuality_adj;
- GtkWidget *entryV4LQuality;
- GtkWidget *comboV4LSoundDirection;
- GList *comboV4LSoundDirection_items = NULL;
- GtkWidget *entryV4LSoundDirection;
- GtkObject *entryV4LTuner_adj;
- GtkWidget *entryV4LTuner;
- GtkWidget *checkV4LMJPEG;
- GtkObject *entryV4LDecimation_adj;
- GtkWidget *entryV4LDecimation;
- GtkWidget *labelV4LTranscode;
- GtkWidget *checkV4LTranscode;
- GtkWidget *hbox16;
- GtkWidget *AddCameraToPlaylist;
- GtkWidget *Camera;
- GtkWidget *vbox1;
- GtkWidget *scrolledwindowTranscode;
- GtkWidget *viewport5;
- GtkWidget *tableTranscode;
- GtkWidget *labelVideoCodec;
- GtkWidget *comboVideoCodec;
- GList *comboVideoCodec_items = NULL;
- GtkWidget *entryVideoCodec;
- GtkWidget *labelVideoBitrate;
- GtkWidget *labelVideoBitrateTolerance;
- GtkWidget *labelVideoKeyInterval;
- GtkWidget *labelAudioCodec;
- GtkWidget *labelVideoDeinterlace;
- GtkWidget *labelStdAccess;
- GtkWidget *labelStdMuxer;
- GtkWidget *labelStdUrl;
- GtkWidget *labelStdTimeToLive;
- GtkObject *entryStdTTL_adj;
- GtkWidget *entryStdTTL;
- GtkWidget *comboStdURL;
- GList *comboStdURL_items = NULL;
- GtkWidget *entryStdURL;
- GtkWidget *comboStdMuxer;
- GList *comboStdMuxer_items = NULL;
- GtkWidget *entryStdMuxer;
- GtkObject *entryAudioBitrate_adj;
- GtkWidget *entryAudioBitrate;
- GtkWidget *comboAudioCodec;
- GList *comboAudioCodec_items = NULL;
- GtkWidget *entryAudioCodec;
- GtkWidget *checkVideoDeinterlace;
- GtkObject *entryVideoKeyFrameInterval_adj;
- GtkWidget *entryVideoKeyFrameInterval;
- GtkObject *entryVideoBitrateTolerance_adj;
- GtkWidget *entryVideoBitrateTolerance;
- GtkObject *entryVideoBitrate_adj;
- GtkWidget *entryVideoBitrate;
- GtkWidget *labelAudioBitrate;
- GtkWidget *comboStdAccess;
- GtkWidget *entryStdAccess;
- GtkWidget *labelSAP;
- GtkWidget *checkSAP;
- GtkWidget *checkSLP;
- GtkWidget *labelSLP_;
- GtkWidget *labelAnounceChannel;
- GtkWidget *comboAnnounceChannel;
- GtkWidget *entryAnnounceChannel;
- GtkWidget *hbox14;
- GtkWidget *AddTranscodeToPlaylist;
- GtkWidget *Transcode;
- GtkWidget *vbox4;
- GtkWidget *scrolledwindow5;
- GtkWidget *tvPlaylist;
- GtkWidget *hbox11;
- GtkWidget *UpdatePlaylist;
- GtkWidget *DeletePlaylist;
- GtkWidget *ClearPlaylist;
- GtkWidget *playlist;
- GtkWidget *vbox2;
- GtkWidget *scrolledwindowPreference;
- GtkWidget *tvPreferences;
- GtkWidget *hbox2;
- GtkWidget *PreferenceSave;
- GtkWidget *PreferenceApply;
- GtkWidget *PreferenceCancel;
- GtkWidget *preferences;
- GtkWidget *scrolledwindow3;
- GtkWidget *viewport1;
- GtkWidget *fixed2;
- GtkWidget *aboutImage;
- GtkWidget *labelDescription;
- GtkWidget *labelAuthors;
- GtkWidget *labelCopyright;
- GtkWidget *labelProgramName;
- GtkWidget *about;
- GtkTooltips *tooltips;
-
- tooltips = gtk_tooltips_new ();
-
- pda = gtk_window_new (GTK_WINDOW_TOPLEVEL);
- gtk_widget_set_name (pda, "pda");
- gtk_widget_set_size_request (pda, 240, 320);
- gtk_window_set_title (GTK_WINDOW (pda), _("VLC media player"));
- pda_icon_pixbuf = create_pixbuf ("vlc16x16.png");
- if (pda_icon_pixbuf)
- {
- gtk_window_set_icon (GTK_WINDOW (pda), pda_icon_pixbuf);
- gdk_pixbuf_unref (pda_icon_pixbuf);
- }
-
- vbox = gtk_vbox_new (FALSE, 0);
- gtk_widget_set_name (vbox, "vbox");
- gtk_widget_show (vbox);
- gtk_container_add (GTK_CONTAINER (pda), vbox);
-
- toolbar = gtk_toolbar_new ();
- gtk_widget_set_name (toolbar, "toolbar");
- gtk_widget_show (toolbar);
- gtk_box_pack_start (GTK_BOX (vbox), toolbar, FALSE, FALSE, 5);
- gtk_widget_set_size_request (toolbar, 240, 22);
- gtk_toolbar_set_style (GTK_TOOLBAR (toolbar), GTK_TOOLBAR_ICONS);
-
- gtk_toolbar_append_space (GTK_TOOLBAR (toolbar));
-
- tmp_toolbar_icon = create_pixmap (pda, "pda-rewindb16x16.xpm");
- tbRewind = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar),
- GTK_TOOLBAR_CHILD_BUTTON,
- NULL,
- _("Rewind"),
- _("Rewind"), NULL,
- tmp_toolbar_icon, NULL, NULL);
- gtk_label_set_use_underline (GTK_LABEL (((GtkToolbarChild*) (g_list_last (GTK_TOOLBAR (toolbar)->children)->data))->label), TRUE);
- gtk_widget_set_name (tbRewind, "tbRewind");
- gtk_widget_show (tbRewind);
- gtk_widget_set_size_request (tbRewind, 22, 22);
-
- tmp_toolbar_icon = create_pixmap (pda, "pda-pauseb16x16.xpm");
- tbPause = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar),
- GTK_TOOLBAR_CHILD_BUTTON,
- NULL,
- _("Pause"),
- _("Pause"), NULL,
- tmp_toolbar_icon, NULL, NULL);
- gtk_label_set_use_underline (GTK_LABEL (((GtkToolbarChild*) (g_list_last (GTK_TOOLBAR (toolbar)->children)->data))->label), TRUE);
- gtk_widget_set_name (tbPause, "tbPause");
- gtk_widget_show (tbPause);
- gtk_widget_set_size_request (tbPause, 22, 22);
-
- tmp_toolbar_icon = create_pixmap (pda, "pda-playb16x16.xpm");
- tbPlay = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar),
- GTK_TOOLBAR_CHILD_BUTTON,
- NULL,
- _("Play"),
- _("Play"), NULL,
- tmp_toolbar_icon, NULL, NULL);
- gtk_label_set_use_underline (GTK_LABEL (((GtkToolbarChild*) (g_list_last (GTK_TOOLBAR (toolbar)->children)->data))->label), TRUE);
- gtk_widget_set_name (tbPlay, "tbPlay");
- gtk_widget_show (tbPlay);
- gtk_widget_set_size_request (tbPlay, 22, 22);
-
- tmp_toolbar_icon = create_pixmap (pda, "pda-stopb16x16.xpm");
- tbStop = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar),
- GTK_TOOLBAR_CHILD_BUTTON,
- NULL,
- _("Stop"),
- _("Stop"), NULL,
- tmp_toolbar_icon, NULL, NULL);
- gtk_label_set_use_underline (GTK_LABEL (((GtkToolbarChild*) (g_list_last (GTK_TOOLBAR (toolbar)->children)->data))->label), TRUE);
- gtk_widget_set_name (tbStop, "tbStop");
- gtk_widget_show (tbStop);
- gtk_widget_set_size_request (tbStop, 22, 22);
-
- tmp_toolbar_icon = create_pixmap (pda, "pda-forwardb16x16.xpm");
- tbForward = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar),
- GTK_TOOLBAR_CHILD_BUTTON,
- NULL,
- _("Forward"),
- _("Forward"), NULL,
- tmp_toolbar_icon, NULL, NULL);
- gtk_label_set_use_underline (GTK_LABEL (((GtkToolbarChild*) (g_list_last (GTK_TOOLBAR (toolbar)->children)->data))->label), TRUE);
- gtk_widget_set_name (tbForward, "tbForward");
- gtk_widget_show (tbForward);
- gtk_widget_set_size_request (tbForward, 22, 22);
-
- gtk_toolbar_append_space (GTK_TOOLBAR (toolbar));
-
- tmp_toolbar_icon = create_pixmap (pda, "vlc16x16.png");
- tbAbout = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar),
- GTK_TOOLBAR_CHILD_BUTTON,
- NULL,
- _("About"),
- _("About"), NULL,
- tmp_toolbar_icon, NULL, NULL);
- gtk_label_set_use_underline (GTK_LABEL (((GtkToolbarChild*) (g_list_last (GTK_TOOLBAR (toolbar)->children)->data))->label), TRUE);
- gtk_widget_set_name (tbAbout, "tbAbout");
- gtk_widget_show (tbAbout);
- gtk_widget_set_size_request (tbAbout, 22, 22);
-
- timeLabel = gtk_label_new (_("00:00:00"));
- gtk_widget_set_name (timeLabel, "timeLabel");
- gtk_widget_show (timeLabel);
- gtk_toolbar_append_space (GTK_TOOLBAR (toolbar));
-
- gtk_toolbar_append_widget (GTK_TOOLBAR (toolbar), timeLabel, NULL, NULL);
-
- timeSlider = gtk_hscale_new (GTK_ADJUSTMENT (gtk_adjustment_new (0, 0, 100, 1, 6.25, 0)));
- gtk_widget_set_name (timeSlider, "timeSlider");
- gtk_widget_show (timeSlider);
- gtk_box_pack_start (GTK_BOX (vbox), timeSlider, FALSE, TRUE, 4);
- gtk_scale_set_draw_value (GTK_SCALE (timeSlider), FALSE);
- gtk_scale_set_value_pos (GTK_SCALE (timeSlider), GTK_POS_RIGHT);
- gtk_scale_set_digits (GTK_SCALE (timeSlider), 3);
- gtk_range_set_update_policy (GTK_RANGE (timeSlider), GTK_UPDATE_DISCONTINUOUS);
-
- notebook = gtk_notebook_new ();
- gtk_widget_set_name (notebook, "notebook");
- gtk_widget_show (notebook);
- gtk_box_pack_end (GTK_BOX (vbox), notebook, TRUE, TRUE, 0);
- gtk_notebook_set_scrollable (GTK_NOTEBOOK (notebook), TRUE);
-
- scrolledwindow6 = gtk_scrolled_window_new (NULL, NULL);
- gtk_widget_set_name (scrolledwindow6, "scrolledwindow6");
- gtk_widget_show (scrolledwindow6);
- gtk_container_add (GTK_CONTAINER (notebook), scrolledwindow6);
- gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow6), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
-
- viewport3 = gtk_viewport_new (NULL, NULL);
- gtk_widget_set_name (viewport3, "viewport3");
- gtk_widget_show (viewport3);
- gtk_container_add (GTK_CONTAINER (scrolledwindow6), viewport3);
-
- vbox8 = gtk_vbox_new (FALSE, 0);
- gtk_widget_set_name (vbox8, "vbox8");
- gtk_widget_show (vbox8);
- gtk_container_add (GTK_CONTAINER (viewport3), vbox8);
-
- scrolledwindow7 = gtk_scrolled_window_new (NULL, NULL);
- gtk_widget_set_name (scrolledwindow7, "scrolledwindow7");
- gtk_widget_show (scrolledwindow7);
- gtk_box_pack_start (GTK_BOX (vbox8), scrolledwindow7, TRUE, TRUE, 0);
-
- tvFileList = gtk_tree_view_new ();
- gtk_widget_set_name (tvFileList, "tvFileList");
- gtk_widget_show (tvFileList);
- gtk_container_add (GTK_CONTAINER (scrolledwindow7), tvFileList);
-
- hbox = gtk_hbox_new (FALSE, 0);
- gtk_widget_set_name (hbox, "hbox");
- gtk_widget_show (hbox);
- gtk_box_pack_start (GTK_BOX (vbox8), hbox, FALSE, FALSE, 0);
-
- AddFileToPlaylist = gtk_button_new_with_mnemonic (_("Add to Playlist"));
- gtk_widget_set_name (AddFileToPlaylist, "AddFileToPlaylist");
- gtk_widget_show (AddFileToPlaylist);
- gtk_box_pack_start (GTK_BOX (hbox), AddFileToPlaylist, FALSE, FALSE, 0);
-
- File = gtk_label_new (_("File"));
- gtk_widget_set_name (File, "File");
- gtk_widget_show (File);
- gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook), 0), File);
-
- vbox5 = gtk_vbox_new (FALSE, 0);
- gtk_widget_set_name (vbox5, "vbox5");
- gtk_widget_show (vbox5);
- gtk_container_add (GTK_CONTAINER (notebook), vbox5);
- gtk_notebook_set_tab_label_packing (GTK_NOTEBOOK (notebook), vbox5,
- TRUE, TRUE, GTK_PACK_START);
-
- hbox12 = gtk_hbox_new (FALSE, 0);
- gtk_widget_set_name (hbox12, "hbox12");
- gtk_widget_show (hbox12);
- gtk_box_pack_start (GTK_BOX (vbox5), hbox12, FALSE, FALSE, 0);
- gtk_widget_set_size_request (hbox12, 247, 26);
-
- labelNetworkMRL = gtk_label_new (_("MRL:"));
- gtk_widget_set_name (labelNetworkMRL, "labelNetworkMRL");
- gtk_widget_show (labelNetworkMRL);
- gtk_box_pack_start (GTK_BOX (hbox12), labelNetworkMRL, FALSE, FALSE, 0);
- gtk_widget_set_size_request (labelNetworkMRL, 35, 16);
-
- comboMRL = gtk_combo_new ();
- g_object_set_data (G_OBJECT (GTK_COMBO (comboMRL)->popwin),
- "GladeParentKey", comboMRL);
- gtk_widget_set_name (comboMRL, "comboMRL");
- gtk_widget_show (comboMRL);
- gtk_box_pack_start (GTK_BOX (hbox12), comboMRL, TRUE, TRUE, 0);
- comboMRL_items = g_list_append (comboMRL_items, (gpointer) "udp://@:1234");
- comboMRL_items = g_list_append (comboMRL_items, (gpointer) "udp6://@:1234");
- comboMRL_items = g_list_append (comboMRL_items, (gpointer) "rtp://");
- comboMRL_items = g_list_append (comboMRL_items, (gpointer) "rtp6://");
- comboMRL_items = g_list_append (comboMRL_items, (gpointer) "ftp://");
- comboMRL_items = g_list_append (comboMRL_items, (gpointer) "http://");
- comboMRL_items = g_list_append (comboMRL_items, (gpointer) "mms://");
- gtk_combo_set_popdown_strings (GTK_COMBO (comboMRL), comboMRL_items);
- g_list_free (comboMRL_items);
-
- entryMRL = GTK_COMBO (comboMRL)->entry;
- gtk_widget_set_name (entryMRL, "entryMRL");
- gtk_widget_show (entryMRL);
- gtk_widget_set_size_request (entryMRL, 158, 24);
- gtk_entry_set_activates_default (GTK_ENTRY (entryMRL), TRUE);
-
- hseparator15 = gtk_hseparator_new ();
- gtk_widget_set_name (hseparator15, "hseparator15");
- gtk_widget_show (hseparator15);
- gtk_box_pack_start (GTK_BOX (vbox5), hseparator15, FALSE, FALSE, 0);
- gtk_widget_set_size_request (hseparator15, -2, 10);
-
- table2 = gtk_table_new (6, 2, FALSE);
- gtk_widget_set_name (table2, "table2");
- gtk_widget_show (table2);
- gtk_box_pack_start (GTK_BOX (vbox5), table2, TRUE, TRUE, 0);
-
- labelNetworkPort = gtk_label_new (_("Port:"));
- gtk_widget_set_name (labelNetworkPort, "labelNetworkPort");
- gtk_widget_show (labelNetworkPort);
- gtk_table_attach (GTK_TABLE (table2), labelNetworkPort, 0, 1, 0, 1,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_label_set_justify (GTK_LABEL (labelNetworkPort), GTK_JUSTIFY_LEFT);
- gtk_misc_set_alignment (GTK_MISC (labelNetworkPort), 0, 0.5);
-
- labelNetworkAddress = gtk_label_new (_("Address:"));
- gtk_widget_set_name (labelNetworkAddress, "labelNetworkAddress");
- gtk_widget_show (labelNetworkAddress);
- gtk_table_attach (GTK_TABLE (table2), labelNetworkAddress, 0, 1, 1, 2,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_label_set_justify (GTK_LABEL (labelNetworkAddress), GTK_JUSTIFY_LEFT);
- gtk_misc_set_alignment (GTK_MISC (labelNetworkAddress), 0, 0.5);
-
- entryNetworkPort_adj = gtk_adjustment_new (1234, 0, 65535, 1, 10, 10);
- entryNetworkPort = gtk_spin_button_new (GTK_ADJUSTMENT (entryNetworkPort_adj), 1, 0);
- gtk_widget_set_name (entryNetworkPort, "entryNetworkPort");
- gtk_widget_show (entryNetworkPort);
- gtk_table_attach (GTK_TABLE (table2), entryNetworkPort, 1, 2, 0, 1,
- (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (entryNetworkPort), TRUE);
-
- comboNetworkAddress = gtk_combo_new ();
- g_object_set_data (G_OBJECT (GTK_COMBO (comboNetworkAddress)->popwin),
- "GladeParentKey", comboNetworkAddress);
- gtk_widget_set_name (comboNetworkAddress, "comboNetworkAddress");
- gtk_widget_show (comboNetworkAddress);
- gtk_table_attach (GTK_TABLE (table2), comboNetworkAddress, 1, 2, 1, 2,
- (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
-
- entryNetworkAddress = GTK_COMBO (comboNetworkAddress)->entry;
- gtk_widget_set_name (entryNetworkAddress, "entryNetworkAddress");
- gtk_widget_show (entryNetworkAddress);
-
- comboNetworkType = gtk_combo_new ();
- g_object_set_data (G_OBJECT (GTK_COMBO (comboNetworkType)->popwin),
- "GladeParentKey", comboNetworkType);
- gtk_widget_set_name (comboNetworkType, "comboNetworkType");
- gtk_widget_show (comboNetworkType);
- gtk_table_attach (GTK_TABLE (table2), comboNetworkType, 1, 2, 2, 3,
- (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- comboNetworkType_items = g_list_append (comboNetworkType_items, (gpointer) _("unicast"));
- comboNetworkType_items = g_list_append (comboNetworkType_items, (gpointer) _("multicast"));
- gtk_combo_set_popdown_strings (GTK_COMBO (comboNetworkType), comboNetworkType_items);
- g_list_free (comboNetworkType_items);
-
- entryNetworkType = GTK_COMBO (comboNetworkType)->entry;
- gtk_widget_set_name (entryNetworkType, "entryNetworkType");
- gtk_widget_show (entryNetworkType);
- gtk_entry_set_activates_default (GTK_ENTRY (entryNetworkType), TRUE);
-
- labelNetworkType = gtk_label_new (_("Network: "));
- gtk_widget_set_name (labelNetworkType, "labelNetworkType");
- gtk_widget_show (labelNetworkType);
- gtk_table_attach (GTK_TABLE (table2), labelNetworkType, 0, 1, 2, 3,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_label_set_justify (GTK_LABEL (labelNetworkType), GTK_JUSTIFY_LEFT);
- gtk_misc_set_alignment (GTK_MISC (labelNetworkType), 0, 0.5);
-
- comboNetworkProtocolType = gtk_combo_new ();
- g_object_set_data (G_OBJECT (GTK_COMBO (comboNetworkProtocolType)->popwin),
- "GladeParentKey", comboNetworkProtocolType);
- gtk_widget_set_name (comboNetworkProtocolType, "comboNetworkProtocolType");
- gtk_widget_show (comboNetworkProtocolType);
- gtk_table_attach (GTK_TABLE (table2), comboNetworkProtocolType, 1, 2, 3, 4,
- (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- comboNetworkProtocolType_items = g_list_append (comboNetworkProtocolType_items, (gpointer) _("udp"));
- comboNetworkProtocolType_items = g_list_append (comboNetworkProtocolType_items, (gpointer) _("udp6"));
- comboNetworkProtocolType_items = g_list_append (comboNetworkProtocolType_items, (gpointer) _("rtp"));
- comboNetworkProtocolType_items = g_list_append (comboNetworkProtocolType_items, (gpointer) _("rtp4"));
- comboNetworkProtocolType_items = g_list_append (comboNetworkProtocolType_items, (gpointer) _("ftp"));
- comboNetworkProtocolType_items = g_list_append (comboNetworkProtocolType_items, (gpointer) _("http"));
- comboNetworkProtocolType_items = g_list_append (comboNetworkProtocolType_items, (gpointer) _("sout"));
- comboNetworkProtocolType_items = g_list_append (comboNetworkProtocolType_items, (gpointer) _("mms"));
- gtk_combo_set_popdown_strings (GTK_COMBO (comboNetworkProtocolType), comboNetworkProtocolType_items);
- g_list_free (comboNetworkProtocolType_items);
-
- entryNetworkProtocolType = GTK_COMBO (comboNetworkProtocolType)->entry;
- gtk_widget_set_name (entryNetworkProtocolType, "entryNetworkProtocolType");
- gtk_widget_show (entryNetworkProtocolType);
-
- labelNetworkProtocol = gtk_label_new (_("Protocol:"));
- gtk_widget_set_name (labelNetworkProtocol, "labelNetworkProtocol");
- gtk_widget_show (labelNetworkProtocol);
- gtk_table_attach (GTK_TABLE (table2), labelNetworkProtocol, 0, 1, 3, 4,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_label_set_justify (GTK_LABEL (labelNetworkProtocol), GTK_JUSTIFY_LEFT);
- gtk_misc_set_alignment (GTK_MISC (labelNetworkProtocol), 0, 0.5);
-
- labelNetworkTranscode = gtk_label_new (_("Transcode:"));
- gtk_widget_set_name (labelNetworkTranscode, "labelNetworkTranscode");
- gtk_widget_show (labelNetworkTranscode);
- gtk_table_attach (GTK_TABLE (table2), labelNetworkTranscode, 0, 1, 4, 5,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_label_set_justify (GTK_LABEL (labelNetworkTranscode), GTK_JUSTIFY_LEFT);
- gtk_misc_set_alignment (GTK_MISC (labelNetworkTranscode), 0, 0.5);
-
- checkNetworkTranscode = gtk_check_button_new_with_mnemonic (_("enable"));
- gtk_widget_set_name (checkNetworkTranscode, "checkNetworkTranscode");
- gtk_widget_show (checkNetworkTranscode);
- gtk_table_attach (GTK_TABLE (table2), checkNetworkTranscode, 1, 2, 4, 5,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
-
- hbox13 = gtk_hbox_new (FALSE, 0);
- gtk_widget_set_name (hbox13, "hbox13");
- gtk_widget_show (hbox13);
- gtk_box_pack_start (GTK_BOX (vbox5), hbox13, FALSE, FALSE, 0);
-
- AddNetworkPlaylist = gtk_button_new_with_mnemonic (_("Add to Playlist"));
- gtk_widget_set_name (AddNetworkPlaylist, "AddNetworkPlaylist");
- gtk_widget_show (AddNetworkPlaylist);
- gtk_box_pack_start (GTK_BOX (hbox13), AddNetworkPlaylist, FALSE, FALSE, 0);
-
- Network = gtk_label_new (_("Network"));
- gtk_widget_set_name (Network, "Network");
- gtk_widget_show (Network);
- gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook), 1), Network);
-
- vbox7 = gtk_vbox_new (FALSE, 0);
- gtk_widget_set_name (vbox7, "vbox7");
- gtk_widget_show (vbox7);
- gtk_container_add (GTK_CONTAINER (notebook), vbox7);
-
- scrolledV4Lwindow = gtk_scrolled_window_new (NULL, NULL);
- gtk_widget_set_name (scrolledV4Lwindow, "scrolledV4Lwindow");
- gtk_widget_show (scrolledV4Lwindow);
- gtk_box_pack_start (GTK_BOX (vbox7), scrolledV4Lwindow, TRUE, TRUE, 0);
- gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledV4Lwindow), GTK_SHADOW_ETCHED_OUT);
-
- viewportV4L = gtk_viewport_new (NULL, NULL);
- gtk_widget_set_name (viewportV4L, "viewportV4L");
- gtk_widget_show (viewportV4L);
- gtk_container_add (GTK_CONTAINER (scrolledV4Lwindow), viewportV4L);
- gtk_viewport_set_shadow_type (GTK_VIEWPORT (viewportV4L), GTK_SHADOW_OUT);
-
- tableV4L = gtk_table_new (13, 2, FALSE);
- gtk_widget_set_name (tableV4L, "tableV4L");
- gtk_widget_show (tableV4L);
- gtk_container_add (GTK_CONTAINER (viewportV4L), tableV4L);
-
- labelV4lVideDevice = gtk_label_new (_("Video:"));
- gtk_widget_set_name (labelV4lVideDevice, "labelV4lVideDevice");
- gtk_widget_show (labelV4lVideDevice);
- gtk_table_attach (GTK_TABLE (tableV4L), labelV4lVideDevice, 0, 1, 0, 1,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_label_set_justify (GTK_LABEL (labelV4lVideDevice), GTK_JUSTIFY_LEFT);
- gtk_misc_set_alignment (GTK_MISC (labelV4lVideDevice), 0, 0.5);
-
- labelV4LAudioDevice = gtk_label_new (_("Audio:"));
- gtk_widget_set_name (labelV4LAudioDevice, "labelV4LAudioDevice");
- gtk_widget_show (labelV4LAudioDevice);
- gtk_table_attach (GTK_TABLE (tableV4L), labelV4LAudioDevice, 0, 1, 1, 2,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_label_set_justify (GTK_LABEL (labelV4LAudioDevice), GTK_JUSTIFY_LEFT);
- gtk_misc_set_alignment (GTK_MISC (labelV4LAudioDevice), 0, 0.5);
-
- labelV4LChannel = gtk_label_new (_("Channel:"));
- gtk_widget_set_name (labelV4LChannel, "labelV4LChannel");
- gtk_widget_show (labelV4LChannel);
- gtk_table_attach (GTK_TABLE (tableV4L), labelV4LChannel, 0, 1, 2, 3,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_label_set_justify (GTK_LABEL (labelV4LChannel), GTK_JUSTIFY_LEFT);
- gtk_misc_set_alignment (GTK_MISC (labelV4LChannel), 0, 0.5);
-
- labelV4LNorm = gtk_label_new (_("Norm:"));
- gtk_widget_set_name (labelV4LNorm, "labelV4LNorm");
- gtk_widget_show (labelV4LNorm);
- gtk_table_attach (GTK_TABLE (tableV4L), labelV4LNorm, 0, 1, 3, 4,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_label_set_justify (GTK_LABEL (labelV4LNorm), GTK_JUSTIFY_LEFT);
- gtk_misc_set_alignment (GTK_MISC (labelV4LNorm), 0, 0.5);
-
- labelV4LSize = gtk_label_new (_("Size:"));
- gtk_widget_set_name (labelV4LSize, "labelV4LSize");
- gtk_widget_show (labelV4LSize);
- gtk_table_attach (GTK_TABLE (tableV4L), labelV4LSize, 0, 1, 4, 5,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_label_set_justify (GTK_LABEL (labelV4LSize), GTK_JUSTIFY_LEFT);
- gtk_misc_set_alignment (GTK_MISC (labelV4LSize), 0, 0.5);
-
- labelV4LFrequency = gtk_label_new (_("Frequency:"));
- gtk_widget_set_name (labelV4LFrequency, "labelV4LFrequency");
- gtk_widget_show (labelV4LFrequency);
- gtk_table_attach (GTK_TABLE (tableV4L), labelV4LFrequency, 0, 1, 5, 6,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_label_set_justify (GTK_LABEL (labelV4LFrequency), GTK_JUSTIFY_LEFT);
- gtk_misc_set_alignment (GTK_MISC (labelV4LFrequency), 0, 0.5);
-
- labelV4LSampleRate = gtk_label_new (_("Samplerate:"));
- gtk_widget_set_name (labelV4LSampleRate, "labelV4LSampleRate");
- gtk_widget_show (labelV4LSampleRate);
- gtk_table_attach (GTK_TABLE (tableV4L), labelV4LSampleRate, 0, 1, 6, 7,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_label_set_justify (GTK_LABEL (labelV4LSampleRate), GTK_JUSTIFY_LEFT);
- gtk_misc_set_alignment (GTK_MISC (labelV4LSampleRate), 0, 0.5);
-
- labelV4LQuality = gtk_label_new (_("Quality:"));
- gtk_widget_set_name (labelV4LQuality, "labelV4LQuality");
- gtk_widget_show (labelV4LQuality);
- gtk_table_attach (GTK_TABLE (tableV4L), labelV4LQuality, 0, 1, 7, 8,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_label_set_justify (GTK_LABEL (labelV4LQuality), GTK_JUSTIFY_LEFT);
- gtk_misc_set_alignment (GTK_MISC (labelV4LQuality), 0, 0.5);
-
- labelV4LTuner = gtk_label_new (_("Tuner:"));
- gtk_widget_set_name (labelV4LTuner, "labelV4LTuner");
- gtk_widget_show (labelV4LTuner);
- gtk_table_attach (GTK_TABLE (tableV4L), labelV4LTuner, 0, 1, 9, 10,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_label_set_justify (GTK_LABEL (labelV4LTuner), GTK_JUSTIFY_LEFT);
- gtk_misc_set_alignment (GTK_MISC (labelV4LTuner), 0, 0.5);
-
- labelV4LSoundDirection = gtk_label_new (_("Sound:"));
- gtk_widget_set_name (labelV4LSoundDirection, "labelV4LSoundDirection");
- gtk_widget_show (labelV4LSoundDirection);
- gtk_table_attach (GTK_TABLE (tableV4L), labelV4LSoundDirection, 0, 1, 8, 9,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_label_set_justify (GTK_LABEL (labelV4LSoundDirection), GTK_JUSTIFY_LEFT);
- gtk_misc_set_alignment (GTK_MISC (labelV4LSoundDirection), 0, 0.5);
-
- labelV4LMJPEG = gtk_label_new (_("MJPEG:"));
- gtk_widget_set_name (labelV4LMJPEG, "labelV4LMJPEG");
- gtk_widget_show (labelV4LMJPEG);
- gtk_table_attach (GTK_TABLE (tableV4L), labelV4LMJPEG, 0, 1, 10, 11,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_label_set_justify (GTK_LABEL (labelV4LMJPEG), GTK_JUSTIFY_LEFT);
- gtk_misc_set_alignment (GTK_MISC (labelV4LMJPEG), 0, 0.5);
-
- labelV4LDecimation = gtk_label_new (_("Decimation:"));
- gtk_widget_set_name (labelV4LDecimation, "labelV4LDecimation");
- gtk_widget_show (labelV4LDecimation);
- gtk_table_attach (GTK_TABLE (tableV4L), labelV4LDecimation, 0, 1, 11, 12,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_label_set_justify (GTK_LABEL (labelV4LDecimation), GTK_JUSTIFY_LEFT);
- gtk_misc_set_alignment (GTK_MISC (labelV4LDecimation), 0, 0.5);
-
- comboV4lVideoDevice = gtk_combo_new ();
- g_object_set_data (G_OBJECT (GTK_COMBO (comboV4lVideoDevice)->popwin),
- "GladeParentKey", comboV4lVideoDevice);
- gtk_widget_set_name (comboV4lVideoDevice, "comboV4lVideoDevice");
- gtk_widget_show (comboV4lVideoDevice);
- gtk_table_attach (GTK_TABLE (tableV4L), comboV4lVideoDevice, 1, 2, 0, 1,
- (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_combo_set_value_in_list (GTK_COMBO (comboV4lVideoDevice), TRUE, TRUE);
- comboV4lVideoDevice_items = g_list_append (comboV4lVideoDevice_items, (gpointer) "/dev/video");
- comboV4lVideoDevice_items = g_list_append (comboV4lVideoDevice_items, (gpointer) "/dev/video0");
- comboV4lVideoDevice_items = g_list_append (comboV4lVideoDevice_items, (gpointer) "/dev/video1");
- gtk_combo_set_popdown_strings (GTK_COMBO (comboV4lVideoDevice), comboV4lVideoDevice_items);
- g_list_free (comboV4lVideoDevice_items);
-
- entryV4LVideoDevice = GTK_COMBO (comboV4lVideoDevice)->entry;
- gtk_widget_set_name (entryV4LVideoDevice, "entryV4LVideoDevice");
- gtk_widget_show (entryV4LVideoDevice);
- gtk_entry_set_activates_default (GTK_ENTRY (entryV4LVideoDevice), TRUE);
-
- comboV4lAudioDevice = gtk_combo_new ();
- g_object_set_data (G_OBJECT (GTK_COMBO (comboV4lAudioDevice)->popwin),
- "GladeParentKey", comboV4lAudioDevice);
- gtk_widget_set_name (comboV4lAudioDevice, "comboV4lAudioDevice");
- gtk_widget_show (comboV4lAudioDevice);
- gtk_table_attach (GTK_TABLE (tableV4L), comboV4lAudioDevice, 1, 2, 1, 2,
- (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- comboV4lAudioDevice_items = g_list_append (comboV4lAudioDevice_items, (gpointer) "/dev/dsp");
- comboV4lAudioDevice_items = g_list_append (comboV4lAudioDevice_items, (gpointer) "/dev/audio");
- comboV4lAudioDevice_items = g_list_append (comboV4lAudioDevice_items, (gpointer) "/dev/audio0");
- comboV4lAudioDevice_items = g_list_append (comboV4lAudioDevice_items, (gpointer) "/dev/audio1");
- gtk_combo_set_popdown_strings (GTK_COMBO (comboV4lAudioDevice), comboV4lAudioDevice_items);
- g_list_free (comboV4lAudioDevice_items);
-
- entryV4LAudioDevice = GTK_COMBO (comboV4lAudioDevice)->entry;
- gtk_widget_set_name (entryV4LAudioDevice, "entryV4LAudioDevice");
- gtk_widget_show (entryV4LAudioDevice);
- gtk_entry_set_activates_default (GTK_ENTRY (entryV4LAudioDevice), TRUE);
-
- entryV4LChannel_adj = gtk_adjustment_new (0, 0, 100, 1, 10, 10);
- entryV4LChannel = gtk_spin_button_new (GTK_ADJUSTMENT (entryV4LChannel_adj), 1, 0);
- gtk_widget_set_name (entryV4LChannel, "entryV4LChannel");
- gtk_widget_show (entryV4LChannel);
- gtk_table_attach (GTK_TABLE (tableV4L), entryV4LChannel, 1, 2, 2, 3,
- (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (entryV4LChannel), TRUE);
-
- comboV4LNorm = gtk_combo_new ();
- g_object_set_data (G_OBJECT (GTK_COMBO (comboV4LNorm)->popwin),
- "GladeParentKey", comboV4LNorm);
- gtk_widget_set_name (comboV4LNorm, "comboV4LNorm");
- gtk_widget_show (comboV4LNorm);
- gtk_table_attach (GTK_TABLE (tableV4L), comboV4LNorm, 1, 2, 3, 4,
- (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- comboV4LNorm_items = g_list_append (comboV4LNorm_items, (gpointer) _("pal"));
- comboV4LNorm_items = g_list_append (comboV4LNorm_items, (gpointer) _("ntsc"));
- comboV4LNorm_items = g_list_append (comboV4LNorm_items, (gpointer) _("secam"));
- comboV4LNorm_items = g_list_append (comboV4LNorm_items, (gpointer) _("auto"));
- gtk_combo_set_popdown_strings (GTK_COMBO (comboV4LNorm), comboV4LNorm_items);
- g_list_free (comboV4LNorm_items);
-
- entryV4LNorm = GTK_COMBO (comboV4LNorm)->entry;
- gtk_widget_set_name (entryV4LNorm, "entryV4LNorm");
- gtk_widget_show (entryV4LNorm);
- gtk_entry_set_activates_default (GTK_ENTRY (entryV4LNorm), TRUE);
-
- comboV4LSize = gtk_combo_new ();
- g_object_set_data (G_OBJECT (GTK_COMBO (comboV4LSize)->popwin),
- "GladeParentKey", comboV4LSize);
- gtk_widget_set_name (comboV4LSize, "comboV4LSize");
- gtk_widget_show (comboV4LSize);
- gtk_table_attach (GTK_TABLE (tableV4L), comboV4LSize, 1, 2, 4, 5,
- (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- comboV4LSize_items = g_list_append (comboV4LSize_items, (gpointer) _("240x192"));
- comboV4LSize_items = g_list_append (comboV4LSize_items, (gpointer) _("320x240"));
- comboV4LSize_items = g_list_append (comboV4LSize_items, (gpointer) _("qsif"));
- comboV4LSize_items = g_list_append (comboV4LSize_items, (gpointer) _("qcif"));
- comboV4LSize_items = g_list_append (comboV4LSize_items, (gpointer) _("sif"));
- comboV4LSize_items = g_list_append (comboV4LSize_items, (gpointer) _("cif"));
- comboV4LSize_items = g_list_append (comboV4LSize_items, (gpointer) _("vga"));
- gtk_combo_set_popdown_strings (GTK_COMBO (comboV4LSize), comboV4LSize_items);
- g_list_free (comboV4LSize_items);
-
- entryV4LSize = GTK_COMBO (comboV4LSize)->entry;
- gtk_widget_set_name (entryV4LSize, "entryV4LSize");
- gtk_widget_show (entryV4LSize);
- gtk_entry_set_activates_default (GTK_ENTRY (entryV4LSize), TRUE);
-
- entryV4LFrequency_adj = gtk_adjustment_new (8692, 0, 65535, 1, 10, 10);
- entryV4LFrequency = gtk_spin_button_new (GTK_ADJUSTMENT (entryV4LFrequency_adj), 1, 0);
- gtk_widget_set_name (entryV4LFrequency, "entryV4LFrequency");
- gtk_widget_show (entryV4LFrequency);
- gtk_table_attach (GTK_TABLE (tableV4L), entryV4LFrequency, 1, 2, 5, 6,
- (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_tooltips_set_tip (tooltips, entryV4LFrequency, _("kHz"), NULL);
- gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (entryV4LFrequency), TRUE);
-
- entryV4LSampleRate_adj = gtk_adjustment_new (44100, 0, 65535, 1, 10, 10);
- entryV4LSampleRate = gtk_spin_button_new (GTK_ADJUSTMENT (entryV4LSampleRate_adj), 1, 0);
- gtk_widget_set_name (entryV4LSampleRate, "entryV4LSampleRate");
- gtk_widget_show (entryV4LSampleRate);
- gtk_table_attach (GTK_TABLE (tableV4L), entryV4LSampleRate, 1, 2, 6, 7,
- (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_tooltips_set_tip (tooltips, entryV4LSampleRate, _("Hz/s"), NULL);
- gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (entryV4LSampleRate), TRUE);
-
- entryV4LQuality_adj = gtk_adjustment_new (100, 0, 65535, 1, 10, 10);
- entryV4LQuality = gtk_spin_button_new (GTK_ADJUSTMENT (entryV4LQuality_adj), 1, 0);
- gtk_widget_set_name (entryV4LQuality, "entryV4LQuality");
- gtk_widget_show (entryV4LQuality);
- gtk_table_attach (GTK_TABLE (tableV4L), entryV4LQuality, 1, 2, 7, 8,
- (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (entryV4LQuality), TRUE);
-
- comboV4LSoundDirection = gtk_combo_new ();
- g_object_set_data (G_OBJECT (GTK_COMBO (comboV4LSoundDirection)->popwin),
- "GladeParentKey", comboV4LSoundDirection);
- gtk_widget_set_name (comboV4LSoundDirection, "comboV4LSoundDirection");
- gtk_widget_show (comboV4LSoundDirection);
- gtk_table_attach (GTK_TABLE (tableV4L), comboV4LSoundDirection, 1, 2, 8, 9,
- (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_combo_set_value_in_list (GTK_COMBO (comboV4LSoundDirection), TRUE, TRUE);
- gtk_combo_set_use_arrows_always (GTK_COMBO (comboV4LSoundDirection), TRUE);
- comboV4LSoundDirection_items = g_list_append (comboV4LSoundDirection_items, (gpointer) _("mono"));
- comboV4LSoundDirection_items = g_list_append (comboV4LSoundDirection_items, (gpointer) _("stereo"));
- gtk_combo_set_popdown_strings (GTK_COMBO (comboV4LSoundDirection), comboV4LSoundDirection_items);
- g_list_free (comboV4LSoundDirection_items);
-
- entryV4LSoundDirection = GTK_COMBO (comboV4LSoundDirection)->entry;
- gtk_widget_set_name (entryV4LSoundDirection, "entryV4LSoundDirection");
- gtk_widget_show (entryV4LSoundDirection);
- gtk_entry_set_activates_default (GTK_ENTRY (entryV4LSoundDirection), TRUE);
-
- entryV4LTuner_adj = gtk_adjustment_new (0, -1, 100, 1, 10, 10);
- entryV4LTuner = gtk_spin_button_new (GTK_ADJUSTMENT (entryV4LTuner_adj), 1, 0);
- gtk_widget_set_name (entryV4LTuner, "entryV4LTuner");
- gtk_widget_show (entryV4LTuner);
- gtk_table_attach (GTK_TABLE (tableV4L), entryV4LTuner, 1, 2, 9, 10,
- (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (entryV4LTuner), TRUE);
-
- checkV4LMJPEG = gtk_check_button_new_with_mnemonic (_("enable"));
- gtk_widget_set_name (checkV4LMJPEG, "checkV4LMJPEG");
- gtk_widget_show (checkV4LMJPEG);
- gtk_table_attach (GTK_TABLE (tableV4L), checkV4LMJPEG, 1, 2, 10, 11,
- (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
-
- entryV4LDecimation_adj = gtk_adjustment_new (1, 0, 100, 1, 10, 10);
- entryV4LDecimation = gtk_spin_button_new (GTK_ADJUSTMENT (entryV4LDecimation_adj), 1, 0);
- gtk_widget_set_name (entryV4LDecimation, "entryV4LDecimation");
- gtk_widget_show (entryV4LDecimation);
- gtk_table_attach (GTK_TABLE (tableV4L), entryV4LDecimation, 1, 2, 11, 12,
- (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
-
- labelV4LTranscode = gtk_label_new (_("Transcode:"));
- gtk_widget_set_name (labelV4LTranscode, "labelV4LTranscode");
- gtk_widget_show (labelV4LTranscode);
- gtk_table_attach (GTK_TABLE (tableV4L), labelV4LTranscode, 0, 1, 12, 13,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_label_set_justify (GTK_LABEL (labelV4LTranscode), GTK_JUSTIFY_LEFT);
- gtk_misc_set_alignment (GTK_MISC (labelV4LTranscode), 0, 0.5);
-
- checkV4LTranscode = gtk_check_button_new_with_mnemonic (_("enable"));
- gtk_widget_set_name (checkV4LTranscode, "checkV4LTranscode");
- gtk_widget_show (checkV4LTranscode);
- gtk_table_attach (GTK_TABLE (tableV4L), checkV4LTranscode, 1, 2, 12, 13,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
-
- hbox16 = gtk_hbox_new (FALSE, 0);
- gtk_widget_set_name (hbox16, "hbox16");
- gtk_widget_show (hbox16);
- gtk_box_pack_start (GTK_BOX (vbox7), hbox16, FALSE, FALSE, 0);
-
- AddCameraToPlaylist = gtk_button_new_with_mnemonic (_("Add to Playlist"));
- gtk_widget_set_name (AddCameraToPlaylist, "AddCameraToPlaylist");
- gtk_widget_show (AddCameraToPlaylist);
- gtk_box_pack_start (GTK_BOX (hbox16), AddCameraToPlaylist, FALSE, FALSE, 0);
-
- Camera = gtk_label_new (_("Camera"));
- gtk_widget_set_name (Camera, "Camera");
- gtk_widget_show (Camera);
- gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook), 2), Camera);
- gtk_label_set_justify (GTK_LABEL (Camera), GTK_JUSTIFY_LEFT);
-
- vbox1 = gtk_vbox_new (FALSE, 0);
- gtk_widget_set_name (vbox1, "vbox1");
- gtk_widget_show (vbox1);
- gtk_container_add (GTK_CONTAINER (notebook), vbox1);
-
- scrolledwindowTranscode = gtk_scrolled_window_new (NULL, NULL);
- gtk_widget_set_name (scrolledwindowTranscode, "scrolledwindowTranscode");
- gtk_widget_show (scrolledwindowTranscode);
- gtk_box_pack_start (GTK_BOX (vbox1), scrolledwindowTranscode, TRUE, TRUE, 0);
- gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindowTranscode), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
-
- viewport5 = gtk_viewport_new (NULL, NULL);
- gtk_widget_set_name (viewport5, "viewport5");
- gtk_widget_show (viewport5);
- gtk_container_add (GTK_CONTAINER (scrolledwindowTranscode), viewport5);
-
- tableTranscode = gtk_table_new (14, 2, FALSE);
- gtk_widget_set_name (tableTranscode, "tableTranscode");
- gtk_widget_show (tableTranscode);
- gtk_container_add (GTK_CONTAINER (viewport5), tableTranscode);
-
- labelVideoCodec = gtk_label_new (_("Video Codec:"));
- gtk_widget_set_name (labelVideoCodec, "labelVideoCodec");
- gtk_widget_show (labelVideoCodec);
- gtk_table_attach (GTK_TABLE (tableTranscode), labelVideoCodec, 0, 1, 0, 1,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_label_set_justify (GTK_LABEL (labelVideoCodec), GTK_JUSTIFY_LEFT);
- gtk_misc_set_alignment (GTK_MISC (labelVideoCodec), 0, 0.5);
-
- comboVideoCodec = gtk_combo_new ();
- g_object_set_data (G_OBJECT (GTK_COMBO (comboVideoCodec)->popwin),
- "GladeParentKey", comboVideoCodec);
- gtk_widget_set_name (comboVideoCodec, "comboVideoCodec");
- gtk_widget_show (comboVideoCodec);
- gtk_table_attach (GTK_TABLE (tableTranscode), comboVideoCodec, 1, 2, 0, 1,
- (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- comboVideoCodec_items = g_list_append (comboVideoCodec_items, (gpointer) _("huffyuv"));
- comboVideoCodec_items = g_list_append (comboVideoCodec_items, (gpointer) _("mp1v"));
- comboVideoCodec_items = g_list_append (comboVideoCodec_items, (gpointer) _("mp2v"));
- comboVideoCodec_items = g_list_append (comboVideoCodec_items, (gpointer) _("mp4v"));
- comboVideoCodec_items = g_list_append (comboVideoCodec_items, (gpointer) _("H263"));
- comboVideoCodec_items = g_list_append (comboVideoCodec_items, (gpointer) _("WMV1"));
- comboVideoCodec_items = g_list_append (comboVideoCodec_items, (gpointer) _("WMV2"));
- gtk_combo_set_popdown_strings (GTK_COMBO (comboVideoCodec), comboVideoCodec_items);
- g_list_free (comboVideoCodec_items);
-
- entryVideoCodec = GTK_COMBO (comboVideoCodec)->entry;
- gtk_widget_set_name (entryVideoCodec, "entryVideoCodec");
- gtk_widget_show (entryVideoCodec);
- gtk_entry_set_activates_default (GTK_ENTRY (entryVideoCodec), TRUE);
-
- labelVideoBitrate = gtk_label_new (_("Video Bitrate:"));
- gtk_widget_set_name (labelVideoBitrate, "labelVideoBitrate");
- gtk_widget_show (labelVideoBitrate);
- gtk_table_attach (GTK_TABLE (tableTranscode), labelVideoBitrate, 0, 1, 1, 2,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_label_set_justify (GTK_LABEL (labelVideoBitrate), GTK_JUSTIFY_LEFT);
- gtk_misc_set_alignment (GTK_MISC (labelVideoBitrate), 0, 0.5);
-
- labelVideoBitrateTolerance = gtk_label_new (_("Bitrate Tolerance:"));
- gtk_widget_set_name (labelVideoBitrateTolerance, "labelVideoBitrateTolerance");
- gtk_widget_show (labelVideoBitrateTolerance);
- gtk_table_attach (GTK_TABLE (tableTranscode), labelVideoBitrateTolerance, 0, 1, 2, 3,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_label_set_justify (GTK_LABEL (labelVideoBitrateTolerance), GTK_JUSTIFY_LEFT);
- gtk_misc_set_alignment (GTK_MISC (labelVideoBitrateTolerance), 0, 0.5);
-
- labelVideoKeyInterval = gtk_label_new (_("Keyframe Interval:"));
- gtk_widget_set_name (labelVideoKeyInterval, "labelVideoKeyInterval");
- gtk_widget_show (labelVideoKeyInterval);
- gtk_table_attach (GTK_TABLE (tableTranscode), labelVideoKeyInterval, 0, 1, 3, 4,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_label_set_justify (GTK_LABEL (labelVideoKeyInterval), GTK_JUSTIFY_LEFT);
- gtk_misc_set_alignment (GTK_MISC (labelVideoKeyInterval), 0, 0.5);
-
- labelAudioCodec = gtk_label_new (_("Audio Codec:"));
- gtk_widget_set_name (labelAudioCodec, "labelAudioCodec");
- gtk_widget_show (labelAudioCodec);
- gtk_table_attach (GTK_TABLE (tableTranscode), labelAudioCodec, 0, 1, 5, 6,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_label_set_justify (GTK_LABEL (labelAudioCodec), GTK_JUSTIFY_LEFT);
- gtk_misc_set_alignment (GTK_MISC (labelAudioCodec), 0, 0.5);
-
- labelVideoDeinterlace = gtk_label_new (_("Deinterlace:"));
- gtk_widget_set_name (labelVideoDeinterlace, "labelVideoDeinterlace");
- gtk_widget_show (labelVideoDeinterlace);
- gtk_table_attach (GTK_TABLE (tableTranscode), labelVideoDeinterlace, 0, 1, 4, 5,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_label_set_justify (GTK_LABEL (labelVideoDeinterlace), GTK_JUSTIFY_LEFT);
- gtk_misc_set_alignment (GTK_MISC (labelVideoDeinterlace), 0, 0.5);
-
- labelStdAccess = gtk_label_new (_("Access:"));
- gtk_widget_set_name (labelStdAccess, "labelStdAccess");
- gtk_widget_show (labelStdAccess);
- gtk_table_attach (GTK_TABLE (tableTranscode), labelStdAccess, 0, 1, 7, 8,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_label_set_justify (GTK_LABEL (labelStdAccess), GTK_JUSTIFY_LEFT);
- gtk_misc_set_alignment (GTK_MISC (labelStdAccess), 0, 0.5);
-
- labelStdMuxer = gtk_label_new (_("Muxer:"));
- gtk_widget_set_name (labelStdMuxer, "labelStdMuxer");
- gtk_widget_show (labelStdMuxer);
- gtk_table_attach (GTK_TABLE (tableTranscode), labelStdMuxer, 0, 1, 8, 9,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_label_set_justify (GTK_LABEL (labelStdMuxer), GTK_JUSTIFY_LEFT);
- gtk_misc_set_alignment (GTK_MISC (labelStdMuxer), 0, 0.5);
-
- labelStdUrl = gtk_label_new (_("URL:"));
- gtk_widget_set_name (labelStdUrl, "labelStdUrl");
- gtk_widget_show (labelStdUrl);
- gtk_table_attach (GTK_TABLE (tableTranscode), labelStdUrl, 0, 1, 9, 10,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_label_set_justify (GTK_LABEL (labelStdUrl), GTK_JUSTIFY_LEFT);
- gtk_misc_set_alignment (GTK_MISC (labelStdUrl), 0, 0.5);
-
- labelStdTimeToLive = gtk_label_new (_("Time To Live (TTL):"));
- gtk_widget_set_name (labelStdTimeToLive, "labelStdTimeToLive");
- gtk_widget_show (labelStdTimeToLive);
- gtk_table_attach (GTK_TABLE (tableTranscode), labelStdTimeToLive, 0, 1, 10, 11,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_label_set_justify (GTK_LABEL (labelStdTimeToLive), GTK_JUSTIFY_LEFT);
- gtk_misc_set_alignment (GTK_MISC (labelStdTimeToLive), 0, 0.5);
-
- entryStdTTL_adj = gtk_adjustment_new (1, 0, 100, 1, 10, 10);
- entryStdTTL = gtk_spin_button_new (GTK_ADJUSTMENT (entryStdTTL_adj), 1, 0);
- gtk_widget_set_name (entryStdTTL, "entryStdTTL");
- gtk_widget_show (entryStdTTL);
- gtk_table_attach (GTK_TABLE (tableTranscode), entryStdTTL, 1, 2, 10, 11,
- (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
-
- comboStdURL = gtk_combo_new ();
- g_object_set_data (G_OBJECT (GTK_COMBO (comboStdURL)->popwin),
- "GladeParentKey", comboStdURL);
- gtk_widget_set_name (comboStdURL, "comboStdURL");
- gtk_widget_show (comboStdURL);
- gtk_table_attach (GTK_TABLE (tableTranscode), comboStdURL, 1, 2, 9, 10,
- (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- comboStdURL_items = g_list_append (comboStdURL_items, (gpointer) _("127.0.0.1"));
- comboStdURL_items = g_list_append (comboStdURL_items, (gpointer) _("localhost"));
- comboStdURL_items = g_list_append (comboStdURL_items, (gpointer) _("localhost.localdomain"));
- comboStdURL_items = g_list_append (comboStdURL_items, (gpointer) _("239.0.0.42"));
- gtk_combo_set_popdown_strings (GTK_COMBO (comboStdURL), comboStdURL_items);
- g_list_free (comboStdURL_items);
-
- entryStdURL = GTK_COMBO (comboStdURL)->entry;
- gtk_widget_set_name (entryStdURL, "entryStdURL");
- gtk_widget_show (entryStdURL);
- gtk_entry_set_activates_default (GTK_ENTRY (entryStdURL), TRUE);
-
- comboStdMuxer = gtk_combo_new ();
- g_object_set_data (G_OBJECT (GTK_COMBO (comboStdMuxer)->popwin),
- "GladeParentKey", comboStdMuxer);
- gtk_widget_set_name (comboStdMuxer, "comboStdMuxer");
- gtk_widget_show (comboStdMuxer);
- gtk_table_attach (GTK_TABLE (tableTranscode), comboStdMuxer, 1, 2, 8, 9,
- (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- comboStdMuxer_items = g_list_append (comboStdMuxer_items, (gpointer) _("PS"));
- comboStdMuxer_items = g_list_append (comboStdMuxer_items, (gpointer) _("TS"));
- comboStdMuxer_items = g_list_append (comboStdMuxer_items, (gpointer) _("MPEG1"));
- comboStdMuxer_items = g_list_append (comboStdMuxer_items, (gpointer) _("AVI"));
- comboStdMuxer_items = g_list_append (comboStdMuxer_items, (gpointer) _("OGG"));
- comboStdMuxer_items = g_list_append (comboStdMuxer_items, (gpointer) _("MP4"));
- comboStdMuxer_items = g_list_append (comboStdMuxer_items, (gpointer) _("MOV"));
- comboStdMuxer_items = g_list_append (comboStdMuxer_items, (gpointer) _("ASF"));
- gtk_combo_set_popdown_strings (GTK_COMBO (comboStdMuxer), comboStdMuxer_items);
- g_list_free (comboStdMuxer_items);
-
- entryStdMuxer = GTK_COMBO (comboStdMuxer)->entry;
- gtk_widget_set_name (entryStdMuxer, "entryStdMuxer");
- gtk_widget_show (entryStdMuxer);
- gtk_entry_set_activates_default (GTK_ENTRY (entryStdMuxer), TRUE);
-
- entryAudioBitrate_adj = gtk_adjustment_new (256, 0, 65535, 1, 10, 10);
- entryAudioBitrate = gtk_spin_button_new (GTK_ADJUSTMENT (entryAudioBitrate_adj), 1, 0);
- gtk_widget_set_name (entryAudioBitrate, "entryAudioBitrate");
- gtk_widget_show (entryAudioBitrate);
- gtk_table_attach (GTK_TABLE (tableTranscode), entryAudioBitrate, 1, 2, 6, 7,
- (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_tooltips_set_tip (tooltips, entryAudioBitrate, _("kbits/s"), NULL);
- gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (entryAudioBitrate), TRUE);
-
- comboAudioCodec = gtk_combo_new ();
- g_object_set_data (G_OBJECT (GTK_COMBO (comboAudioCodec)->popwin),
- "GladeParentKey", comboAudioCodec);
- gtk_widget_set_name (comboAudioCodec, "comboAudioCodec");
- gtk_widget_show (comboAudioCodec);
- gtk_table_attach (GTK_TABLE (tableTranscode), comboAudioCodec, 1, 2, 5, 6,
- (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- comboAudioCodec_items = g_list_append (comboAudioCodec_items, (gpointer) _("alaw"));
- comboAudioCodec_items = g_list_append (comboAudioCodec_items, (gpointer) _("ulaw"));
- comboAudioCodec_items = g_list_append (comboAudioCodec_items, (gpointer) _("mpga"));
- comboAudioCodec_items = g_list_append (comboAudioCodec_items, (gpointer) _("mp3"));
- comboAudioCodec_items = g_list_append (comboAudioCodec_items, (gpointer) _("a52"));
- comboAudioCodec_items = g_list_append (comboAudioCodec_items, (gpointer) _("vorb"));
- gtk_combo_set_popdown_strings (GTK_COMBO (comboAudioCodec), comboAudioCodec_items);
- g_list_free (comboAudioCodec_items);
-
- entryAudioCodec = GTK_COMBO (comboAudioCodec)->entry;
- gtk_widget_set_name (entryAudioCodec, "entryAudioCodec");
- gtk_widget_show (entryAudioCodec);
- gtk_entry_set_activates_default (GTK_ENTRY (entryAudioCodec), TRUE);
-
- checkVideoDeinterlace = gtk_check_button_new_with_mnemonic (_("enable"));
- gtk_widget_set_name (checkVideoDeinterlace, "checkVideoDeinterlace");
- gtk_widget_show (checkVideoDeinterlace);
- gtk_table_attach (GTK_TABLE (tableTranscode), checkVideoDeinterlace, 1, 2, 4, 5,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
-
- entryVideoKeyFrameInterval_adj = gtk_adjustment_new (80, 0, 65535, 1, 10, 10);
- entryVideoKeyFrameInterval = gtk_spin_button_new (GTK_ADJUSTMENT (entryVideoKeyFrameInterval_adj), 1, 0);
- gtk_widget_set_name (entryVideoKeyFrameInterval, "entryVideoKeyFrameInterval");
- gtk_widget_show (entryVideoKeyFrameInterval);
- gtk_table_attach (GTK_TABLE (tableTranscode), entryVideoKeyFrameInterval, 1, 2, 3, 4,
- (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (entryVideoKeyFrameInterval), TRUE);
-
- entryVideoBitrateTolerance_adj = gtk_adjustment_new (800000, 0, 1e+06, 1, 10, 10);
- entryVideoBitrateTolerance = gtk_spin_button_new (GTK_ADJUSTMENT (entryVideoBitrateTolerance_adj), 1, 0);
- gtk_widget_set_name (entryVideoBitrateTolerance, "entryVideoBitrateTolerance");
- gtk_widget_show (entryVideoBitrateTolerance);
- gtk_table_attach (GTK_TABLE (tableTranscode), entryVideoBitrateTolerance, 1, 2, 2, 3,
- (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_tooltips_set_tip (tooltips, entryVideoBitrateTolerance, _("bits/s"), NULL);
- gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (entryVideoBitrateTolerance), TRUE);
-
- entryVideoBitrate_adj = gtk_adjustment_new (3000, 0, 65535, 1, 10, 10);
- entryVideoBitrate = gtk_spin_button_new (GTK_ADJUSTMENT (entryVideoBitrate_adj), 1, 0);
- gtk_widget_set_name (entryVideoBitrate, "entryVideoBitrate");
- gtk_widget_show (entryVideoBitrate);
- gtk_table_attach (GTK_TABLE (tableTranscode), entryVideoBitrate, 1, 2, 1, 2,
- (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_tooltips_set_tip (tooltips, entryVideoBitrate, _("kbits/s"), NULL);
- gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (entryVideoBitrate), TRUE);
-
- labelAudioBitrate = gtk_label_new (_("Audio Bitrate :"));
- gtk_widget_set_name (labelAudioBitrate, "labelAudioBitrate");
- gtk_widget_show (labelAudioBitrate);
- gtk_table_attach (GTK_TABLE (tableTranscode), labelAudioBitrate, 0, 1, 6, 7,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_label_set_justify (GTK_LABEL (labelAudioBitrate), GTK_JUSTIFY_LEFT);
- gtk_misc_set_alignment (GTK_MISC (labelAudioBitrate), 0, 0.5);
-
- comboStdAccess = gtk_combo_new ();
- g_object_set_data (G_OBJECT (GTK_COMBO (comboStdAccess)->popwin),
- "GladeParentKey", comboStdAccess);
- gtk_widget_set_name (comboStdAccess, "comboStdAccess");
- gtk_widget_show (comboStdAccess);
- gtk_table_attach (GTK_TABLE (tableTranscode), comboStdAccess, 1, 2, 7, 8,
- (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
-
- entryStdAccess = GTK_COMBO (comboStdAccess)->entry;
- gtk_widget_set_name (entryStdAccess, "entryStdAccess");
- gtk_widget_show (entryStdAccess);
- gtk_entry_set_activates_default (GTK_ENTRY (entryStdAccess), TRUE);
-
- labelSAP = gtk_label_new (_("SAP Announce:"));
- gtk_widget_set_name (labelSAP, "labelSAP");
- gtk_widget_show (labelSAP);
- gtk_table_attach (GTK_TABLE (tableTranscode), labelSAP, 0, 1, 11, 12,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_label_set_justify (GTK_LABEL (labelSAP), GTK_JUSTIFY_LEFT);
- gtk_misc_set_alignment (GTK_MISC (labelSAP), 0, 0.5);
-
- checkSAP = gtk_check_button_new_with_mnemonic (_("enable"));
- gtk_widget_set_name (checkSAP, "checkSAP");
- gtk_widget_show (checkSAP);
- gtk_table_attach (GTK_TABLE (tableTranscode), checkSAP, 1, 2, 11, 12,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
-
- checkSLP = gtk_check_button_new_with_mnemonic (_("enable"));
- gtk_widget_set_name (checkSLP, "checkSLP");
- gtk_widget_show (checkSLP);
- gtk_table_attach (GTK_TABLE (tableTranscode), checkSLP, 1, 2, 12, 13,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
-
- labelSLP_ = gtk_label_new (_("SLP Announce:"));
- gtk_widget_set_name (labelSLP_, "labelSLP_");
- gtk_widget_show (labelSLP_);
- gtk_table_attach (GTK_TABLE (tableTranscode), labelSLP_, 0, 1, 12, 13,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_label_set_justify (GTK_LABEL (labelSLP_), GTK_JUSTIFY_LEFT);
- gtk_misc_set_alignment (GTK_MISC (labelSLP_), 0, 0.5);
-
- labelAnounceChannel = gtk_label_new (_("Announce Channel:"));
- gtk_widget_set_name (labelAnounceChannel, "labelAnounceChannel");
- gtk_widget_show (labelAnounceChannel);
- gtk_table_attach (GTK_TABLE (tableTranscode), labelAnounceChannel, 0, 1, 13, 14,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_label_set_justify (GTK_LABEL (labelAnounceChannel), GTK_JUSTIFY_LEFT);
- gtk_misc_set_alignment (GTK_MISC (labelAnounceChannel), 0, 0.5);
-
- comboAnnounceChannel = gtk_combo_new ();
- g_object_set_data (G_OBJECT (GTK_COMBO (comboAnnounceChannel)->popwin),
- "GladeParentKey", comboAnnounceChannel);
- gtk_widget_set_name (comboAnnounceChannel, "comboAnnounceChannel");
- gtk_widget_show (comboAnnounceChannel);
- gtk_table_attach (GTK_TABLE (tableTranscode), comboAnnounceChannel, 1, 2, 13, 14,
- (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
-
- entryAnnounceChannel = GTK_COMBO (comboAnnounceChannel)->entry;
- gtk_widget_set_name (entryAnnounceChannel, "entryAnnounceChannel");
- gtk_widget_show (entryAnnounceChannel);
-
- hbox14 = gtk_hbox_new (FALSE, 0);
- gtk_widget_set_name (hbox14, "hbox14");
- gtk_widget_show (hbox14);
- gtk_box_pack_start (GTK_BOX (vbox1), hbox14, FALSE, FALSE, 0);
-
- AddTranscodeToPlaylist = gtk_button_new_with_mnemonic (_("Add to Playlist"));
- gtk_widget_set_name (AddTranscodeToPlaylist, "AddTranscodeToPlaylist");
- gtk_widget_show (AddTranscodeToPlaylist);
- gtk_box_pack_start (GTK_BOX (hbox14), AddTranscodeToPlaylist, FALSE, FALSE, 0);
-
- Transcode = gtk_label_new (_("Transcode"));
- gtk_widget_set_name (Transcode, "Transcode");
- gtk_widget_show (Transcode);
- gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook), 3), Transcode);
-
- vbox4 = gtk_vbox_new (FALSE, 0);
- gtk_widget_set_name (vbox4, "vbox4");
- gtk_widget_show (vbox4);
- gtk_container_add (GTK_CONTAINER (notebook), vbox4);
-
- scrolledwindow5 = gtk_scrolled_window_new (NULL, NULL);
- gtk_widget_set_name (scrolledwindow5, "scrolledwindow5");
- gtk_widget_show (scrolledwindow5);
- gtk_box_pack_start (GTK_BOX (vbox4), scrolledwindow5, TRUE, TRUE, 0);
- GTK_WIDGET_UNSET_FLAGS (scrolledwindow5, GTK_CAN_FOCUS);
- gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow5), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
- gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow5), GTK_SHADOW_IN);
-
- tvPlaylist = gtk_tree_view_new ();
- gtk_widget_set_name (tvPlaylist, "tvPlaylist");
- gtk_widget_show (tvPlaylist);
- gtk_container_add (GTK_CONTAINER (scrolledwindow5), tvPlaylist);
-
- hbox11 = gtk_hbox_new (TRUE, 0);
- gtk_widget_set_name (hbox11, "hbox11");
- gtk_widget_show (hbox11);
- gtk_box_pack_start (GTK_BOX (vbox4), hbox11, FALSE, FALSE, 2);
-
- UpdatePlaylist = gtk_button_new_with_mnemonic (_("Update"));
- gtk_widget_set_name (UpdatePlaylist, "UpdatePlaylist");
- gtk_widget_show (UpdatePlaylist);
- gtk_box_pack_start (GTK_BOX (hbox11), UpdatePlaylist, FALSE, FALSE, 0);
-
- DeletePlaylist = gtk_button_new_with_mnemonic (_("Delete"));
- gtk_widget_set_name (DeletePlaylist, "DeletePlaylist");
- gtk_widget_show (DeletePlaylist);
- gtk_box_pack_start (GTK_BOX (hbox11), DeletePlaylist, FALSE, FALSE, 5);
-
- ClearPlaylist = gtk_button_new_with_mnemonic (_(" Clear "));
- gtk_widget_set_name (ClearPlaylist, "ClearPlaylist");
- gtk_widget_show (ClearPlaylist);
- gtk_box_pack_start (GTK_BOX (hbox11), ClearPlaylist, FALSE, FALSE, 5);
-
- playlist = gtk_label_new (_("Playlist"));
- gtk_widget_set_name (playlist, "playlist");
- gtk_widget_show (playlist);
- gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook), 4), playlist);
-
- vbox2 = gtk_vbox_new (FALSE, 0);
- gtk_widget_set_name (vbox2, "vbox2");
- gtk_widget_show (vbox2);
- gtk_container_add (GTK_CONTAINER (notebook), vbox2);
-
- scrolledwindowPreference = gtk_scrolled_window_new (NULL, NULL);
- gtk_widget_set_name (scrolledwindowPreference, "scrolledwindowPreference");
- gtk_widget_show (scrolledwindowPreference);
- gtk_box_pack_start (GTK_BOX (vbox2), scrolledwindowPreference, TRUE, TRUE, 0);
-
- tvPreferences = gtk_tree_view_new ();
- gtk_widget_set_name (tvPreferences, "tvPreferences");
- gtk_widget_show (tvPreferences);
- gtk_container_add (GTK_CONTAINER (scrolledwindowPreference), tvPreferences);
- gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (tvPreferences), FALSE);
-
- hbox2 = gtk_hbox_new (TRUE, 0);
- gtk_widget_set_name (hbox2, "hbox2");
- gtk_widget_show (hbox2);
- gtk_box_pack_end (GTK_BOX (vbox2), hbox2, FALSE, FALSE, 2);
-
- PreferenceSave = gtk_button_new_with_mnemonic (_(" Save "));
- gtk_widget_set_name (PreferenceSave, "PreferenceSave");
- gtk_widget_show (PreferenceSave);
- gtk_box_pack_start (GTK_BOX (hbox2), PreferenceSave, FALSE, FALSE, 0);
-
- PreferenceApply = gtk_button_new_with_mnemonic (_(" Apply "));
- gtk_widget_set_name (PreferenceApply, "PreferenceApply");
- gtk_widget_show (PreferenceApply);
- gtk_box_pack_start (GTK_BOX (hbox2), PreferenceApply, FALSE, FALSE, 0);
-
- PreferenceCancel = gtk_button_new_with_mnemonic (_(" Cancel "));
- gtk_widget_set_name (PreferenceCancel, "PreferenceCancel");
- gtk_widget_show (PreferenceCancel);
- gtk_box_pack_end (GTK_BOX (hbox2), PreferenceCancel, FALSE, FALSE, 0);
-
- preferences = gtk_label_new (_("Preference"));
- gtk_widget_set_name (preferences, "preferences");
- gtk_widget_show (preferences);
- gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook), 5), preferences);
-
- scrolledwindow3 = gtk_scrolled_window_new (NULL, NULL);
- gtk_widget_set_name (scrolledwindow3, "scrolledwindow3");
- gtk_widget_show (scrolledwindow3);
- gtk_container_add (GTK_CONTAINER (notebook), scrolledwindow3);
- GTK_WIDGET_UNSET_FLAGS (scrolledwindow3, GTK_CAN_FOCUS);
- gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow3), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
-
- viewport1 = gtk_viewport_new (NULL, NULL);
- gtk_widget_set_name (viewport1, "viewport1");
- gtk_widget_show (viewport1);
- gtk_container_add (GTK_CONTAINER (scrolledwindow3), viewport1);
-
- fixed2 = gtk_fixed_new ();
- gtk_widget_set_name (fixed2, "fixed2");
- gtk_widget_show (fixed2);
- gtk_container_add (GTK_CONTAINER (viewport1), fixed2);
-
- aboutImage = create_pixmap (pda, "vlc48x48.png");
- gtk_widget_set_name (aboutImage, "aboutImage");
- gtk_widget_show (aboutImage);
- gtk_fixed_put (GTK_FIXED (fixed2), aboutImage, 0, 0);
- gtk_widget_set_size_request (aboutImage, 48, 48);
-
- labelDescription = gtk_label_new (_("VLC media player is an MPEG, MPEG 2, MP3 and DivX player that accepts input from local or network sources and is licensed under the GPL (http://www.gnu.org/copyleft/gpl.html)."));
- gtk_widget_set_name (labelDescription, "labelDescription");
- gtk_widget_show (labelDescription);
- gtk_fixed_put (GTK_FIXED (fixed2), labelDescription, 16, 112);
- gtk_widget_set_size_request (labelDescription, 200, 112);
- gtk_label_set_justify (GTK_LABEL (labelDescription), GTK_JUSTIFY_LEFT);
- gtk_label_set_line_wrap (GTK_LABEL (labelDescription), TRUE);
-
- labelAuthors = gtk_label_new (_("Authors: the VideoLAN Team, http://www.videolan.org/team/"));
- gtk_widget_set_name (labelAuthors, "labelAuthors");
- gtk_widget_show (labelAuthors);
- gtk_fixed_put (GTK_FIXED (fixed2), labelAuthors, 16, 72);
- gtk_widget_set_size_request (labelAuthors, 208, 32);
- gtk_label_set_justify (GTK_LABEL (labelAuthors), GTK_JUSTIFY_LEFT);
- gtk_label_set_line_wrap (GTK_LABEL (labelAuthors), TRUE);
-
- labelCopyright = gtk_label_new (_("(c) 1996-2004 the the VideoLAN team team"));
- gtk_widget_set_name (labelCopyright, "labelCopyright");
- gtk_widget_show (labelCopyright);
- gtk_fixed_put (GTK_FIXED (fixed2), labelCopyright, 16, 48);
- gtk_widget_set_size_request (labelCopyright, 208, 16);
-
- labelProgramName = gtk_label_new (_("VLC media player"));
- gtk_widget_set_name (labelProgramName, "labelProgramName");
- gtk_widget_show (labelProgramName);
- gtk_fixed_put (GTK_FIXED (fixed2), labelProgramName, 48, 16);
- gtk_widget_set_size_request (labelProgramName, 152, 16);
- gtk_label_set_line_wrap (GTK_LABEL (labelProgramName), TRUE);
-
- about = gtk_label_new (_("About"));
- gtk_widget_set_name (about, "about");
- gtk_widget_show (about);
- gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook), 6), about);
-
- g_signal_connect ((gpointer) pda, "delete_event",
- G_CALLBACK (onPDADeleteEvent),
- NULL);
- g_signal_connect ((gpointer) tbRewind, "clicked",
- G_CALLBACK (onRewind),
- NULL);
- g_signal_connect ((gpointer) tbPause, "clicked",
- G_CALLBACK (onPause),
- NULL);
- g_signal_connect ((gpointer) tbPlay, "clicked",
- G_CALLBACK (onPlay),
- NULL);
- g_signal_connect ((gpointer) tbStop, "clicked",
- G_CALLBACK (onStop),
- NULL);
- g_signal_connect ((gpointer) tbForward, "clicked",
- G_CALLBACK (onForward),
- NULL);
- g_signal_connect ((gpointer) tbAbout, "clicked",
- G_CALLBACK (onAbout),
- NULL);
- g_signal_connect ((gpointer) timeSlider, "button_release_event",
- G_CALLBACK (SliderRelease),
- NULL);
- g_signal_connect ((gpointer) timeSlider, "button_press_event",
- G_CALLBACK (SliderPress),
- NULL);
- g_signal_connect ((gpointer) timeSlider, "move_slider",
- G_CALLBACK (SliderMove),
- NULL);
- g_signal_connect ((gpointer) tvFileList, "row_activated",
- G_CALLBACK (onFileListRow),
- NULL);
- g_signal_connect ((gpointer) AddFileToPlaylist, "pressed",
- G_CALLBACK (onAddFileToPlaylist),
- NULL);
- g_signal_connect ((gpointer) entryNetworkPort, "changed",
- G_CALLBACK (NetworkBuildMRL),
- NULL);
- g_signal_connect ((gpointer) entryNetworkAddress, "changed",
- G_CALLBACK (NetworkBuildMRL),
- NULL);
- g_signal_connect ((gpointer) entryNetworkType, "changed",
- G_CALLBACK (NetworkBuildMRL),
- NULL);
- g_signal_connect ((gpointer) entryNetworkProtocolType, "changed",
- G_CALLBACK (NetworkBuildMRL),
- NULL);
- g_signal_connect ((gpointer) AddNetworkPlaylist, "pressed",
- G_CALLBACK (onAddNetworkPlaylist),
- NULL);
- g_signal_connect ((gpointer) AddCameraToPlaylist, "pressed",
- G_CALLBACK (onAddCameraToPlaylist),
- NULL);
- g_signal_connect ((gpointer) entryStdAccess, "changed",
- G_CALLBACK (onEntryStdAccessChanged),
- NULL);
- g_signal_connect ((gpointer) AddTranscodeToPlaylist, "pressed",
- G_CALLBACK (onAddTranscodeToPlaylist),
- NULL);
- g_signal_connect ((gpointer) tvPlaylist, "event",
- G_CALLBACK (PlaylistEvent),
- NULL);
- g_signal_connect ((gpointer) tvPlaylist, "columns_changed",
- G_CALLBACK (onPlaylistColumnsChanged),
- NULL);
- g_signal_connect ((gpointer) tvPlaylist, "select_cursor_row",
- G_CALLBACK (onPlaylistRowSelected),
- NULL);
- g_signal_connect ((gpointer) tvPlaylist, "row_activated",
- G_CALLBACK (onPlaylistRow),
- NULL);
- g_signal_connect ((gpointer) UpdatePlaylist, "pressed",
- G_CALLBACK (onUpdatePlaylist),
- NULL);
- g_signal_connect ((gpointer) DeletePlaylist, "pressed",
- G_CALLBACK (onDeletePlaylist),
- NULL);
- g_signal_connect ((gpointer) ClearPlaylist, "pressed",
- G_CALLBACK (onClearPlaylist),
- NULL);
- g_signal_connect ((gpointer) PreferenceSave, "pressed",
- G_CALLBACK (onPreferenceSave),
- NULL);
- g_signal_connect ((gpointer) PreferenceApply, "pressed",
- G_CALLBACK (onPreferenceApply),
- NULL);
- g_signal_connect ((gpointer) PreferenceCancel, "pressed",
- G_CALLBACK (onPreferenceCancel),
- NULL);
-
- /* Store pointers to all widgets, for use by lookup_widget(). */
- GLADE_HOOKUP_OBJECT_NO_REF (pda, pda, "pda");
- GLADE_HOOKUP_OBJECT (pda, vbox, "vbox");
- GLADE_HOOKUP_OBJECT (pda, toolbar, "toolbar");
- GLADE_HOOKUP_OBJECT (pda, tbRewind, "tbRewind");
- GLADE_HOOKUP_OBJECT (pda, tbPause, "tbPause");
- GLADE_HOOKUP_OBJECT (pda, tbPlay, "tbPlay");
- GLADE_HOOKUP_OBJECT (pda, tbStop, "tbStop");
- GLADE_HOOKUP_OBJECT (pda, tbForward, "tbForward");
- GLADE_HOOKUP_OBJECT (pda, tbAbout, "tbAbout");
- GLADE_HOOKUP_OBJECT (pda, timeLabel, "timeLabel");
- GLADE_HOOKUP_OBJECT (pda, timeSlider, "timeSlider");
- GLADE_HOOKUP_OBJECT (pda, notebook, "notebook");
- GLADE_HOOKUP_OBJECT (pda, scrolledwindow6, "scrolledwindow6");
- GLADE_HOOKUP_OBJECT (pda, viewport3, "viewport3");
- GLADE_HOOKUP_OBJECT (pda, vbox8, "vbox8");
- GLADE_HOOKUP_OBJECT (pda, scrolledwindow7, "scrolledwindow7");
- GLADE_HOOKUP_OBJECT (pda, tvFileList, "tvFileList");
- GLADE_HOOKUP_OBJECT (pda, hbox, "hbox");
- GLADE_HOOKUP_OBJECT (pda, AddFileToPlaylist, "AddFileToPlaylist");
- GLADE_HOOKUP_OBJECT (pda, File, "File");
- GLADE_HOOKUP_OBJECT (pda, vbox5, "vbox5");
- GLADE_HOOKUP_OBJECT (pda, hbox12, "hbox12");
- GLADE_HOOKUP_OBJECT (pda, labelNetworkMRL, "labelNetworkMRL");
- GLADE_HOOKUP_OBJECT (pda, comboMRL, "comboMRL");
- GLADE_HOOKUP_OBJECT (pda, entryMRL, "entryMRL");
- GLADE_HOOKUP_OBJECT (pda, hseparator15, "hseparator15");
- GLADE_HOOKUP_OBJECT (pda, table2, "table2");
- GLADE_HOOKUP_OBJECT (pda, labelNetworkPort, "labelNetworkPort");
- GLADE_HOOKUP_OBJECT (pda, labelNetworkAddress, "labelNetworkAddress");
- GLADE_HOOKUP_OBJECT (pda, entryNetworkPort, "entryNetworkPort");
- GLADE_HOOKUP_OBJECT (pda, comboNetworkAddress, "comboNetworkAddress");
- GLADE_HOOKUP_OBJECT (pda, entryNetworkAddress, "entryNetworkAddress");
- GLADE_HOOKUP_OBJECT (pda, comboNetworkType, "comboNetworkType");
- GLADE_HOOKUP_OBJECT (pda, entryNetworkType, "entryNetworkType");
- GLADE_HOOKUP_OBJECT (pda, labelNetworkType, "labelNetworkType");
- GLADE_HOOKUP_OBJECT (pda, comboNetworkProtocolType, "comboNetworkProtocolType");
- GLADE_HOOKUP_OBJECT (pda, entryNetworkProtocolType, "entryNetworkProtocolType");
- GLADE_HOOKUP_OBJECT (pda, labelNetworkProtocol, "labelNetworkProtocol");
- GLADE_HOOKUP_OBJECT (pda, labelNetworkTranscode, "labelNetworkTranscode");
- GLADE_HOOKUP_OBJECT (pda, checkNetworkTranscode, "checkNetworkTranscode");
- GLADE_HOOKUP_OBJECT (pda, hbox13, "hbox13");
- GLADE_HOOKUP_OBJECT (pda, AddNetworkPlaylist, "AddNetworkPlaylist");
- GLADE_HOOKUP_OBJECT (pda, Network, "Network");
- GLADE_HOOKUP_OBJECT (pda, vbox7, "vbox7");
- GLADE_HOOKUP_OBJECT (pda, scrolledV4Lwindow, "scrolledV4Lwindow");
- GLADE_HOOKUP_OBJECT (pda, viewportV4L, "viewportV4L");
- GLADE_HOOKUP_OBJECT (pda, tableV4L, "tableV4L");
- GLADE_HOOKUP_OBJECT (pda, labelV4lVideDevice, "labelV4lVideDevice");
- GLADE_HOOKUP_OBJECT (pda, labelV4LAudioDevice, "labelV4LAudioDevice");
- GLADE_HOOKUP_OBJECT (pda, labelV4LChannel, "labelV4LChannel");
- GLADE_HOOKUP_OBJECT (pda, labelV4LNorm, "labelV4LNorm");
- GLADE_HOOKUP_OBJECT (pda, labelV4LSize, "labelV4LSize");
- GLADE_HOOKUP_OBJECT (pda, labelV4LFrequency, "labelV4LFrequency");
- GLADE_HOOKUP_OBJECT (pda, labelV4LSampleRate, "labelV4LSampleRate");
- GLADE_HOOKUP_OBJECT (pda, labelV4LQuality, "labelV4LQuality");
- GLADE_HOOKUP_OBJECT (pda, labelV4LTuner, "labelV4LTuner");
- GLADE_HOOKUP_OBJECT (pda, labelV4LSoundDirection, "labelV4LSoundDirection");
- GLADE_HOOKUP_OBJECT (pda, labelV4LMJPEG, "labelV4LMJPEG");
- GLADE_HOOKUP_OBJECT (pda, labelV4LDecimation, "labelV4LDecimation");
- GLADE_HOOKUP_OBJECT (pda, comboV4lVideoDevice, "comboV4lVideoDevice");
- GLADE_HOOKUP_OBJECT (pda, entryV4LVideoDevice, "entryV4LVideoDevice");
- GLADE_HOOKUP_OBJECT (pda, comboV4lAudioDevice, "comboV4lAudioDevice");
- GLADE_HOOKUP_OBJECT (pda, entryV4LAudioDevice, "entryV4LAudioDevice");
- GLADE_HOOKUP_OBJECT (pda, entryV4LChannel, "entryV4LChannel");
- GLADE_HOOKUP_OBJECT (pda, comboV4LNorm, "comboV4LNorm");
- GLADE_HOOKUP_OBJECT (pda, entryV4LNorm, "entryV4LNorm");
- GLADE_HOOKUP_OBJECT (pda, comboV4LSize, "comboV4LSize");
- GLADE_HOOKUP_OBJECT (pda, entryV4LSize, "entryV4LSize");
- GLADE_HOOKUP_OBJECT (pda, entryV4LFrequency, "entryV4LFrequency");
- GLADE_HOOKUP_OBJECT (pda, entryV4LSampleRate, "entryV4LSampleRate");
- GLADE_HOOKUP_OBJECT (pda, entryV4LQuality, "entryV4LQuality");
- GLADE_HOOKUP_OBJECT (pda, comboV4LSoundDirection, "comboV4LSoundDirection");
- GLADE_HOOKUP_OBJECT (pda, entryV4LSoundDirection, "entryV4LSoundDirection");
- GLADE_HOOKUP_OBJECT (pda, entryV4LTuner, "entryV4LTuner");
- GLADE_HOOKUP_OBJECT (pda, checkV4LMJPEG, "checkV4LMJPEG");
- GLADE_HOOKUP_OBJECT (pda, entryV4LDecimation, "entryV4LDecimation");
- GLADE_HOOKUP_OBJECT (pda, labelV4LTranscode, "labelV4LTranscode");
- GLADE_HOOKUP_OBJECT (pda, checkV4LTranscode, "checkV4LTranscode");
- GLADE_HOOKUP_OBJECT (pda, hbox16, "hbox16");
- GLADE_HOOKUP_OBJECT (pda, AddCameraToPlaylist, "AddCameraToPlaylist");
- GLADE_HOOKUP_OBJECT (pda, Camera, "Camera");
- GLADE_HOOKUP_OBJECT (pda, vbox1, "vbox1");
- GLADE_HOOKUP_OBJECT (pda, scrolledwindowTranscode, "scrolledwindowTranscode");
- GLADE_HOOKUP_OBJECT (pda, viewport5, "viewport5");
- GLADE_HOOKUP_OBJECT (pda, tableTranscode, "tableTranscode");
- GLADE_HOOKUP_OBJECT (pda, labelVideoCodec, "labelVideoCodec");
- GLADE_HOOKUP_OBJECT (pda, comboVideoCodec, "comboVideoCodec");
- GLADE_HOOKUP_OBJECT (pda, entryVideoCodec, "entryVideoCodec");
- GLADE_HOOKUP_OBJECT (pda, labelVideoBitrate, "labelVideoBitrate");
- GLADE_HOOKUP_OBJECT (pda, labelVideoBitrateTolerance, "labelVideoBitrateTolerance");
- GLADE_HOOKUP_OBJECT (pda, labelVideoKeyInterval, "labelVideoKeyInterval");
- GLADE_HOOKUP_OBJECT (pda, labelAudioCodec, "labelAudioCodec");
- GLADE_HOOKUP_OBJECT (pda, labelVideoDeinterlace, "labelVideoDeinterlace");
- GLADE_HOOKUP_OBJECT (pda, labelStdAccess, "labelStdAccess");
- GLADE_HOOKUP_OBJECT (pda, labelStdMuxer, "labelStdMuxer");
- GLADE_HOOKUP_OBJECT (pda, labelStdUrl, "labelStdUrl");
- GLADE_HOOKUP_OBJECT (pda, labelStdTimeToLive, "labelStdTimeToLive");
- GLADE_HOOKUP_OBJECT (pda, entryStdTTL, "entryStdTTL");
- GLADE_HOOKUP_OBJECT (pda, comboStdURL, "comboStdURL");
- GLADE_HOOKUP_OBJECT (pda, entryStdURL, "entryStdURL");
- GLADE_HOOKUP_OBJECT (pda, comboStdMuxer, "comboStdMuxer");
- GLADE_HOOKUP_OBJECT (pda, entryStdMuxer, "entryStdMuxer");
- GLADE_HOOKUP_OBJECT (pda, entryAudioBitrate, "entryAudioBitrate");
- GLADE_HOOKUP_OBJECT (pda, comboAudioCodec, "comboAudioCodec");
- GLADE_HOOKUP_OBJECT (pda, entryAudioCodec, "entryAudioCodec");
- GLADE_HOOKUP_OBJECT (pda, checkVideoDeinterlace, "checkVideoDeinterlace");
- GLADE_HOOKUP_OBJECT (pda, entryVideoKeyFrameInterval, "entryVideoKeyFrameInterval");
- GLADE_HOOKUP_OBJECT (pda, entryVideoBitrateTolerance, "entryVideoBitrateTolerance");
- GLADE_HOOKUP_OBJECT (pda, entryVideoBitrate, "entryVideoBitrate");
- GLADE_HOOKUP_OBJECT (pda, labelAudioBitrate, "labelAudioBitrate");
- GLADE_HOOKUP_OBJECT (pda, comboStdAccess, "comboStdAccess");
- GLADE_HOOKUP_OBJECT (pda, entryStdAccess, "entryStdAccess");
- GLADE_HOOKUP_OBJECT (pda, labelSAP, "labelSAP");
- GLADE_HOOKUP_OBJECT (pda, checkSAP, "checkSAP");
- GLADE_HOOKUP_OBJECT (pda, checkSLP, "checkSLP");
- GLADE_HOOKUP_OBJECT (pda, labelSLP_, "labelSLP_");
- GLADE_HOOKUP_OBJECT (pda, labelAnounceChannel, "labelAnounceChannel");
- GLADE_HOOKUP_OBJECT (pda, comboAnnounceChannel, "comboAnnounceChannel");
- GLADE_HOOKUP_OBJECT (pda, entryAnnounceChannel, "entryAnnounceChannel");
- GLADE_HOOKUP_OBJECT (pda, hbox14, "hbox14");
- GLADE_HOOKUP_OBJECT (pda, AddTranscodeToPlaylist, "AddTranscodeToPlaylist");
- GLADE_HOOKUP_OBJECT (pda, Transcode, "Transcode");
- GLADE_HOOKUP_OBJECT (pda, vbox4, "vbox4");
- GLADE_HOOKUP_OBJECT (pda, scrolledwindow5, "scrolledwindow5");
- GLADE_HOOKUP_OBJECT (pda, tvPlaylist, "tvPlaylist");
- GLADE_HOOKUP_OBJECT (pda, hbox11, "hbox11");
- GLADE_HOOKUP_OBJECT (pda, UpdatePlaylist, "UpdatePlaylist");
- GLADE_HOOKUP_OBJECT (pda, DeletePlaylist, "DeletePlaylist");
- GLADE_HOOKUP_OBJECT (pda, ClearPlaylist, "ClearPlaylist");
- GLADE_HOOKUP_OBJECT (pda, playlist, "playlist");
- GLADE_HOOKUP_OBJECT (pda, vbox2, "vbox2");
- GLADE_HOOKUP_OBJECT (pda, scrolledwindowPreference, "scrolledwindowPreference");
- GLADE_HOOKUP_OBJECT (pda, tvPreferences, "tvPreferences");
- GLADE_HOOKUP_OBJECT (pda, hbox2, "hbox2");
- GLADE_HOOKUP_OBJECT (pda, PreferenceSave, "PreferenceSave");
- GLADE_HOOKUP_OBJECT (pda, PreferenceApply, "PreferenceApply");
- GLADE_HOOKUP_OBJECT (pda, PreferenceCancel, "PreferenceCancel");
- GLADE_HOOKUP_OBJECT (pda, preferences, "preferences");
- GLADE_HOOKUP_OBJECT (pda, scrolledwindow3, "scrolledwindow3");
- GLADE_HOOKUP_OBJECT (pda, viewport1, "viewport1");
- GLADE_HOOKUP_OBJECT (pda, fixed2, "fixed2");
- GLADE_HOOKUP_OBJECT (pda, aboutImage, "aboutImage");
- GLADE_HOOKUP_OBJECT (pda, labelDescription, "labelDescription");
- GLADE_HOOKUP_OBJECT (pda, labelAuthors, "labelAuthors");
- GLADE_HOOKUP_OBJECT (pda, labelCopyright, "labelCopyright");
- GLADE_HOOKUP_OBJECT (pda, labelProgramName, "labelProgramName");
- GLADE_HOOKUP_OBJECT (pda, about, "about");
- GLADE_HOOKUP_OBJECT_NO_REF (pda, tooltips, "tooltips");
-
- return pda;
-}
-
+++ /dev/null
-/*
- * DO NOT EDIT THIS FILE - it is generated by Glade.
- */
-
-GtkWidget* create_pda (void);
+++ /dev/null
-/*
- * DO NOT EDIT THIS FILE - it is generated by Glade.
- */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <unistd.h>
-#include <string.h>
-
-#include <gtk/gtk.h>
-
-#include "pda_support.h"
-
-GtkWidget*
-lookup_widget (GtkWidget *widget,
- const gchar *widget_name)
-{
- GtkWidget *parent, *found_widget;
-
- for (;;)
- {
- if (GTK_IS_MENU (widget))
- parent = gtk_menu_get_attach_widget (GTK_MENU (widget));
- else
- parent = widget->parent;
- if (!parent)
- parent = (GtkWidget*) g_object_get_data (G_OBJECT (widget), "GladeParentKey");
- if (parent == NULL)
- break;
- widget = parent;
- }
-
- found_widget = (GtkWidget*) g_object_get_data (G_OBJECT (widget),
- widget_name);
- if (!found_widget)
- g_warning ("Widget not found: %s", widget_name);
- return found_widget;
-}
-
-static GList *pixmaps_directories = NULL;
-
-/* Use this function to set the directory containing installed pixmaps. */
-void
-add_pixmap_directory (const gchar *directory)
-{
- pixmaps_directories = g_list_prepend (pixmaps_directories,
- g_strdup (directory));
-}
-
-/* This is an internally used function to find pixmap files. */
-static gchar*
-find_pixmap_file (const gchar *filename)
-{
- GList *elem;
-
- /* We step through each of the pixmaps directory to find it. */
- elem = pixmaps_directories;
- while (elem)
- {
- gchar *pathname = g_strdup_printf ("%s%s%s", (gchar*)elem->data,
- G_DIR_SEPARATOR_S, filename);
- if (g_file_test (pathname, G_FILE_TEST_EXISTS))
- return pathname;
- g_free (pathname);
- elem = elem->next;
- }
- return NULL;
-}
-
-/* This is an internally used function to create pixmaps. */
-GtkWidget*
-create_pixmap (GtkWidget *widget,
- const gchar *filename)
-{
- (void) widget;
- gchar *pathname = NULL;
- GtkWidget *pixmap;
-
- if (!filename || !filename[0])
- return gtk_image_new ();
-
- pathname = find_pixmap_file (filename);
-
- if (!pathname)
- {
- g_warning (_("Couldn't find pixmap file: %s"), filename);
- return gtk_image_new ();
- }
-
- pixmap = gtk_image_new_from_file (pathname);
- g_free (pathname);
- return pixmap;
-}
-
-/* This is an internally used function to create pixmaps. */
-GdkPixbuf*
-create_pixbuf (const gchar *filename)
-{
- gchar *pathname = NULL;
- GdkPixbuf *pixbuf;
- GError *error = NULL;
-
- if (!filename || !filename[0])
- return NULL;
-
- pathname = find_pixmap_file (filename);
-
- if (!pathname)
- {
- g_warning (_("Couldn't find pixmap file: %s"), filename);
- return NULL;
- }
-
- pixbuf = gdk_pixbuf_new_from_file (pathname, &error);
- if (!pixbuf)
- {
- fprintf (stderr, "Failed to load pixbuf file: %s: %s\n",
- pathname, error->message);
- g_error_free (error);
- }
- g_free (pathname);
- return pixbuf;
-}
-
-/* This is used to set ATK action descriptions. */
-void
-glade_set_atk_action_description (AtkAction *action,
- const gchar *action_name,
- const gchar *description)
-{
- gint n_actions, i;
-
- n_actions = atk_action_get_n_actions (action);
- for (i = 0; i < n_actions; i++)
- {
- if (!strcmp (atk_action_get_name (action, i), action_name))
- atk_action_set_description (action, i, description);
- }
-}
-
+++ /dev/null
-/*
- * DO NOT EDIT THIS FILE - it is generated by Glade.
- */
-
-#include <gtk/gtk.h>
-
-/*
- * Standard gettext macros.
- */
-#ifdef ENABLE_NLS
-# include <libintl.h>
-# undef _
-# define _(String) dgettext (PACKAGE, String)
-#endif
-
-
-/*
- * Public Functions.
- */
-
-/*
- * This function returns a widget in a component created by Glade.
- * Call it with the toplevel widget in the component (i.e. a window/dialog),
- * or alternatively any widget in the component, and the name of the widget
- * you want returned.
- */
-GtkWidget* lookup_widget (GtkWidget *widget,
- const gchar *widget_name);
-
-
-/* Use this function to set the directory containing installed pixmaps. */
-void add_pixmap_directory (const gchar *directory);
-
-
-/*
- * Private Functions.
- */
-
-/* This is used to create the pixmaps used in the interface. */
-GtkWidget* create_pixmap (GtkWidget *widget,
- const gchar *filename);
-
-/* This is used to create the pixbufs used in the interface. */
-GdkPixbuf* create_pixbuf (const gchar *filename);
-
-/* This is used to set ATK action descriptions. */
-void glade_set_atk_action_description (AtkAction *action,
- const gchar *action_name,
- const gchar *description);
-
SUBDIRS += lua
endif
-SOURCES_gtk_main = gtk_main.c
-SOURCES_gnome_main = gtk_main.c
-SOURCES_gtk2_main = gtk_main.c
-SOURCES_gnome2_main = gtk_main.c
SOURCES_screensaver = screensaver.c
SOURCES_qte_main = qte_main.cpp
SOURCES_freetype = freetype.c text_renderer.h
+++ /dev/null
-/*****************************************************************************
- * gtk_main.c : Gtk+ wrapper for gtk_main
- *****************************************************************************
- * Copyright (C) 2002 the VideoLAN team
- * $Id$
- *
- * Authors: Samuel Hocevar <sam@zoy.org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
- *****************************************************************************/
-
-/*****************************************************************************
- * Preamble
- *****************************************************************************/
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
-#include <vlc_common.h>
-#include <vlc_plugin.h>
-
-
-#include <gtk/gtk.h>
-
-#if defined(MODULE_NAME_IS_gtk2_main)
-# include <glib.h>
-#endif
-
-#if defined(MODULE_NAME_IS_gnome_main) || defined(MODULE_NAME_IS_gnome2_main)
-# include <gnome.h>
-#endif
-
-/*****************************************************************************
- * Local prototypes.
- *****************************************************************************/
-static int Open ( vlc_object_t * );
-static void Close ( vlc_object_t * );
-
-static void* GtkMain ( vlc_object_t * );
-
-/*****************************************************************************
- * Local variables (mutex-protected).
- *****************************************************************************/
-static int i_refcount = 0;
-static vlc_object_t * p_gtk_main = NULL;
-
-/*****************************************************************************
- * Module descriptor
- *****************************************************************************/
-vlc_module_begin ()
- int i_cap;
- set_description( N_("Gtk+ GUI helper") )
-#if defined(MODULE_NAME_IS_gtk_main)
- i_cap = 90;
- add_shortcut( "gtk" )
-#elif defined(MODULE_NAME_IS_gnome_main)
- i_cap = 100;
- add_shortcut( "gtk" )
- add_shortcut( "gnome" )
-#elif defined(MODULE_NAME_IS_gtk2_main)
- i_cap = 95;
- add_shortcut( "gtk2" )
-#elif defined(MODULE_NAME_IS_gnome2_main)
- i_cap = 105;
- add_shortcut( "gtk2" )
- add_shortcut( "gnome2" )
-#endif
- set_capability( "gui-helper", i_cap )
- set_callbacks( Open, Close )
- linked_with_a_crap_library_which_uses_atexit ()
-vlc_module_end ()
-
-static vlc_mutex_t gtk_lock = VLC_STATIC_MUTEX;
-
-/*****************************************************************************
- * Open: initialize and create window
- *****************************************************************************/
-static int Open( vlc_object_t *p_this )
-{
- vlc_mutex_lock( >k_lock );
-
- if( i_refcount > 0 )
- {
- i_refcount++;
- vlc_mutex_unlock( >k_lock );
-
- return VLC_SUCCESS;
- }
-
- p_gtk_main = vlc_object_create( p_this, sizeof( vlc_object_t ) );
-
- /* Only initialize gthreads if it's the first time we do it */
- if( !g_thread_supported() )
- {
- g_thread_init( NULL );
- }
-
- /* Launch the gtk_main() thread. It will not return until it has
- * called gdk_threads_enter(), which ensures us thread safety. */
- if( vlc_thread_create( p_gtk_main, "gtk_main", GtkMain,
- VLC_THREAD_PRIORITY_LOW ) )
- {
- vlc_object_release( p_gtk_main );
- i_refcount--;
- vlc_mutex_unlock( >k_lock );
- return VLC_ENOMEM;
- }
-
- i_refcount++;
- vlc_mutex_unlock( >k_lock );
-
- return VLC_SUCCESS;
-}
-
-/*****************************************************************************
- * Close: destroy interface window
- *****************************************************************************/
-static void Close( vlc_object_t *p_this )
-{
- vlc_mutex_lock( >k_lock );
-
- i_refcount--;
-
- if( --i_refcount == 0 )
- {
- gtk_main_quit();
- vlc_thread_join( p_gtk_main );
-
- vlc_object_release( p_gtk_main );
- p_gtk_main = NULL;
- }
- vlc_mutex_unlock( >k_lock );
-}
-
-static gint foo( gpointer bar ) { return TRUE; }
-
-/*****************************************************************************
- * GtkMain: Gtk+ thread
- *****************************************************************************
- * this part of the interface is in a separate thread so that we can call
- * gtk_main() from within it without annoying the rest of the program.
- *****************************************************************************/
-static void* GtkMain( vlc_object_t *p_this )
-{
- /* gtk_init needs to know the command line. We don't care, so we
- * give it an empty one */
- static char *p_args[] = { "", NULL };
-#if defined(MODULE_NAME_IS_gtk_main) || defined(MODULE_NAME_IS_gtk2_main)
- static char **pp_args = p_args;
-#endif
- static int i_args = 1;
- int canc = vlc_savecancel ();
-
- /* FIXME: deprecated ? */
-#if defined(MODULE_NAME_IS_gtk2_main) || defined(MODULE_NAME_IS_gnome2_main)
- gdk_threads_init();
-#endif
-
-#if defined(MODULE_NAME_IS_gnome_main)
- gnome_init( PACKAGE, VERSION, i_args, p_args );
-#elif defined(MODULE_NAME_IS_gnome2_main)
- gnome_program_init( PACKAGE, VERSION, LIBGNOMEUI_MODULE,
- i_args, p_args,
- GNOME_PARAM_APP_DATADIR, "",//PACKAGE_DATA_DIR,
- NULL );
-#else
- gtk_set_locale();
- gtk_init( &i_args, &pp_args );
-#endif
-
- gdk_threads_enter();
-
- vlc_thread_ready( p_this );
-
- /* If we don't add this simple timeout, gtk_main remains stuck if
- * we try to close the window without having sent any gtk event. */
- gtk_timeout_add( INTF_IDLE_SLEEP / 1000, foo, p_this );
-
- /* Enter Gtk mode */
- gtk_main();
-
- gdk_threads_leave();
- vlc_restorecancel (canc);
- return NULL;
-}
modules/gui/minimal_macosx/voutgl.h
modules/gui/minimal_macosx/voutgl.m
modules/gui/ncurses.c
-modules/gui/pda/pda.c
-modules/gui/pda/pda.h
-modules/gui/pda/pda_callbacks.c
-modules/gui/pda/pda_callbacks.h
-modules/gui/pda/pda_interface.c
-modules/gui/pda/pda_interface.h
-modules/gui/pda/pda_support.c
-modules/gui/pda/pda_support.h
modules/gui/qnx/aout.c
modules/gui/qnx/qnx.c
modules/gui/qnx/vout.c
modules/misc/dummy/vout.c
modules/misc/freetype.c
modules/misc/gnutls.c
-modules/misc/gtk_main.c
modules/misc/inhibit.c
modules/misc/logger.c
modules/misc/lua/demux.c
EXTRA_DIST = \
$(skins2_default_vlt_FILES) \
$(DIST_rsrc) \
- $(DIST_pda) \
$(DIST_skins2) \
$(DIST_http) \
$(DIST_http_lua) \
nobase_vlcdata_DATA += skins2/default.vlt
nobase_vlcdata_DATA += $(DIST_skins2)
endif
-if BUILD_PDA
-nobase_vlcdata_DATA += $(DIST_pda)
-endif
if BUILD_HTTPD
nobase_vlcdata_DATA += $(DIST_http)
endif
vlc_win32_rc.rc.in \
libvlc_win32_rc.rc.in
-DIST_pda = \
- pda-forwardb16x16.xpm \
- pda-openb16x16.xpm \
- pda-pauseb16x16.xpm \
- pda-playb16x16.xpm \
- pda-playlistb16x16.xpm \
- pda-preferencesb16x16.xpm \
- pda-rewindb16x16.xpm \
- pda-stopb16x16.xpm
-
DIST_icons = vlc.ico
DIST_icons16 = vlc16x16.png vlc16x16.xpm
+++ /dev/null
-/* XPM */
-static const char *const familiar_forwardb16x16_xpm[] = {
-"16 16 2 1",
-" c None",
-". c #000000",
-" ",
-" ",
-" .. ... ",
-" ... ... ",
-" .... ... ",
-" ..... ... ",
-" ......... ",
-" ......... ",
-" ......... ",
-" ..... ... ",
-" .... ... ",
-" ... ... ",
-" .. ... ",
-" ",
-" ",
-" "};
+++ /dev/null
-/* XPM */
-static const char *const familiar_openb16x16_xpm[] = {
-"16 16 2 1",
-" c None",
-". c #000000",
-" ",
-" ",
-" .. ",
-" .... ",
-" ...... ",
-" ........ ",
-" .......... ",
-" ............ ",
-" ............ ",
-" ",
-" ............ ",
-" ............ ",
-" ............ ",
-" ............ ",
-" ",
-" "};
+++ /dev/null
-/* XPM */
-static const char *const familiar_pauseb16x16_xpm[] = {
-"16 16 2 1",
-" c None",
-". c #000000",
-" ",
-" ",
-" .... .... ",
-" .... .... ",
-" .... .... ",
-" .... .... ",
-" .... .... ",
-" .... .... ",
-" .... .... ",
-" .... .... ",
-" .... .... ",
-" .... .... ",
-" .... .... ",
-" .... .... ",
-" ",
-" "};
+++ /dev/null
-/* XPM */
-static const char *const familiar_playb16x16_xpm[] = {
-"16 16 2 1",
-" c None",
-". c #000000",
-" ",
-" ",
-" .. ",
-" .... ",
-" ...... ",
-" ........ ",
-" .......... ",
-" ........... ",
-" ........... ",
-" .......... ",
-" ........ ",
-" ...... ",
-" .... ",
-" .. ",
-" ",
-" "};
+++ /dev/null
-/* XPM */
-static const char *const familiar_playlistb16x16_xpm[] = {
-"16 16 2 1",
-" c None",
-". c #000000",
-" ",
-" ............ ",
-" ............ ",
-" .. .. ",
-" .. .. ",
-" ............ ",
-" ............ ",
-" .. .. ",
-" .. .. ",
-" ............ ",
-" ............ ",
-" .. .. ",
-" .. .. ",
-" ............ ",
-" ............ ",
-" "};
+++ /dev/null
-/* XPM */
-static const char *const familiar_preferencesb16x16_xpm[] = {
-"16 16 2 1",
-" c None",
-". c #000000",
-" ",
-" ",
-" ....... ",
-" ......... ",
-" ........... ",
-" ..... ..... ",
-" ..... ..... ",
-" ..... ..... ",
-" ..... ..... ",
-" ..... ..... ",
-" ..... ..... ",
-" ..... ..... ",
-" ........... ",
-" ......... ",
-" ....... ",
-" "};
+++ /dev/null
-/* XPM */
-static const char *const familiar_rewindb16x16_xpm[] = {
-"16 16 2 1",
-" c None",
-". c #000000",
-" ",
-" ",
-" ... .. ",
-" ... ... ",
-" ... .... ",
-" ... ..... ",
-" ......... ",
-" ......... ",
-" ......... ",
-" ... ..... ",
-" ... .... ",
-" ... ... ",
-" ... .. ",
-" ",
-" ",
-" "};
+++ /dev/null
-/* XPM */
-static const char *const familiar_stopb16x16_xpm[] = {
-"16 16 2 1",
-" c None",
-". c #000000",
-" ",
-" ",
-" ",
-" ........ ",
-" ........ ",
-" ........ ",
-" ........ ",
-" ........ ",
-" ........ ",
-" ........ ",
-" ........ ",
-" ........ ",
-" ........ ",
-" ",
-" ",
-" "};