[Xfce4-commits] <parole:master> Dropped Stream Properties plugin, obsoleted by audiobox widget.

Sean Davis noreply at xfce.org
Thu Dec 20 00:38:01 CET 2012


Updating branch refs/heads/master
         to f538f9c6f939a959c98ecbafa647653f22f7514b (commit)
       from 7a84c5464f721ab7c4b412425eb6d78019b14a4b (commit)

commit f538f9c6f939a959c98ecbafa647653f22f7514b
Author: Sean Davis <smd.seandavis at gmail.com>
Date:   Wed Dec 19 18:37:37 2012 -0500

    Dropped Stream Properties plugin, obsoleted by audiobox widget.

 configure.ac.in                                    |   14 -
 po/POTFILES.in                                     |    4 -
 src/plugins/Makefile.am                            |    4 -
 src/plugins/properties/Makefile.am                 |   51 --
 src/plugins/properties/stream-properties-plugin.c  |   45 --
 .../properties/stream-properties-provider.c        |  556 --------------------
 .../properties/stream-properties-provider.h        |   44 --
 .../properties/stream-properties.desktop.in        |    6 -
 8 files changed, 0 insertions(+), 724 deletions(-)

diff --git a/configure.ac.in b/configure.ac.in
index 143b089..5331f4a 100644
--- a/configure.ac.in
+++ b/configure.ac.in
@@ -179,14 +179,6 @@ fi
 #              Check plugins to build                   #
 #=======================================================#
 
-# Stream Properties plugin.
-#--------------------------
-AC_ARG_ENABLE([properties-plugin], AC_HELP_STRING([--disable-properties-plugin], [Don't build parole stream properties plugin]),
-  [ac_properties_plugin=$enableval], [ac_properties_plugin=yes])
-AC_MSG_CHECKING([whether to build the Parole stream properties plugin])
-AM_CONDITIONAL([PAROLE_PROPERTIES_PLUGIN], [test x"$ac_properties_plugin" = x"yes"])
-AC_MSG_RESULT([$ac_properties_plugin])
-
 # Tray plugin.
 #--------------------------
 AC_ARG_ENABLE([tray-plugin], AC_HELP_STRING([--disable-tray-plugin], [Don't build parole tray icon plugin]),
@@ -242,7 +234,6 @@ src/gst/Makefile
 src/dbus/Makefile
 src/plugins/Makefile
 src/plugins/sample/Makefile
-src/plugins/properties/Makefile
 src/plugins/tray/Makefile
 src/plugins/power-manager/Makefile
 docs/Makefile
@@ -270,11 +261,6 @@ echo "
 	
 	Plugins to build:
 	=================
-	Stream Properties:       	${ac_properties_plugin}" 
-	if test x${ac_properties_plugin} = x"yes"; then 
-	echo "	(With taglib $TAGLIB_FOUND)" 
-	fi 
-	echo "	
 	System Tray icon:       	${ac_tray_plugin}" 
 	if test x${ac_tray_plugin} = x"yes"; then 
 	echo " 	(With notification $LIBNOTIFY_FOUND)" 
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 25d68ae..03fcd22 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -20,10 +20,6 @@ src/parole-open-location.c
 src/parole-plugins-manager.c
 src/misc/parole-filters.c
 src/misc/parole-pl-parser.c
-src/plugins/properties/stream-properties-plugin.c
-src/plugins/properties/stream-properties-provider.c
-src/plugins/properties/stream-properties-provider.h
-src/plugins/properties/stream-properties.desktop.in
 src/plugins/tray/tray-plugin.c
 src/plugins/tray/tray-provider.c
 src/plugins/tray/tray-provider.h
diff --git a/src/plugins/Makefile.am b/src/plugins/Makefile.am
index e5de6c1..753feaf 100644
--- a/src/plugins/Makefile.am
+++ b/src/plugins/Makefile.am
@@ -1,9 +1,5 @@
 SUBDIRS = sample
 
-if PAROLE_PROPERTIES_PLUGIN
-SUBDIRS+=properties
-endif
-
 if PAROLE_TRAY_PLUGIN
 SUBDIRS+=tray
 endif
diff --git a/src/plugins/properties/Makefile.am b/src/plugins/properties/Makefile.am
deleted file mode 100644
index 0ee2ec8..0000000
--- a/src/plugins/properties/Makefile.am
+++ /dev/null
@@ -1,51 +0,0 @@
-INCLUDES =					\
-	-I$(top_builddir)			\
-	-I$(top_srcdir)				\
-	-I$(top_srcdir)/src			\
-	-DG_LOG_DOMAIN=\"stream_properties\"    \
-	-DLIBEXECDIR=\"$(libexecdir)\"		\
-	-DPACKAGE_LOCALE_DIR=\"$(localedir)\"
-
-pluginsdir = 					\
-	$(libdir)/parole-$(PAROLE_VERSION_API)
-
-plugins_LTLIBRARIES =				\
-	stream-properties.la
-
-stream_properties_la_SOURCES =			\
-	stream-properties-plugin.c		\
-	stream-properties-provider.c		\
-	stream-properties-provider.h
-
-stream_properties_la_CFLAGS =			\
-	$(PLATFORM_CFLAGS)			\
-	$(GTK_CFLAGS)				\
-	$(TAGLIBC_CFLAGS)			\
-	$(LIBXFCE4UTIL_CFLAGS)
-
-stream_properties_la_LIBADD =			\
-	$(top_builddir)/src/misc/libparole.la	\
-	$(GMODULE_LIBS)				\
-	$(GTK_LIBS)				\
-	$(LIBXFCE4UTIL_LIBS)			\
-	$(TAGLIBC_LIBS)
-
-stream_properties_la_LDFLAGS =			\
-	-avoid-version				\
-	-export-dynamic				\
-	-module					\
-	$(PLATFORM_LDFLAGS)
-
-#
-# .desktop file
-#
-desktop_in_files = stream-properties.desktop.in
-desktopdir = $(datadir)/parole/parole-plugins-$(PAROLE_VERSION_API)
-desktop_DATA =  $(desktop_in_files:.desktop.in=.desktop)
- at INTLTOOL_DESKTOP_RULE@
-
-EXTRA_DIST = 		  	\
-	$(desktop_in_files)
-    
-DISTCLEANFILES = 		\
-	$(desktop_DATA)
diff --git a/src/plugins/properties/stream-properties-plugin.c b/src/plugins/properties/stream-properties-plugin.c
deleted file mode 100644
index 0a29cea..0000000
--- a/src/plugins/properties/stream-properties-plugin.c
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * * Copyright (C) 2009-2011 Ali <aliov at xfce.org>
- *
- * Licensed under the GNU General Public License Version 2
- *
- * 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
- */
-
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <libxfce4util/libxfce4util.h>
-
-#include "stream-properties-provider.h"
-
-G_MODULE_EXPORT GType	parole_plugin_initialize (ParoleProviderPlugin *plugin);
-						  
-G_MODULE_EXPORT void	parole_plugin_shutdown   (void);
-
-G_MODULE_EXPORT GType
-parole_plugin_initialize (ParoleProviderPlugin *plugin)
-{
-    xfce_textdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR, "UTF-8");
-    stream_properties_register_type (plugin);
-    return STREAM_TYPE_PROPERTIES_PROVIDER;
-}
-
-G_MODULE_EXPORT void
-parole_plugin_shutdown (void)
-{
-    
-}
diff --git a/src/plugins/properties/stream-properties-provider.c b/src/plugins/properties/stream-properties-provider.c
deleted file mode 100644
index d6ab5be..0000000
--- a/src/plugins/properties/stream-properties-provider.c
+++ /dev/null
@@ -1,556 +0,0 @@
-/*
- * * Copyright (C) 2009-2011 Ali <aliov at xfce.org>
- *
- * Licensed under the GNU General Public License Version 2
- *
- * 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
- */
-
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <stdio.h>
-#include <stdlib.h>
-
-#include <glib.h>
-
-#ifdef HAVE_TAGLIBC
-#include <taglib/tag_c.h>
-#endif
-
-#include <libxfce4util/libxfce4util.h>
-
-#include "stream-properties-provider.h"
-
-static void   stream_properties_iface_init 	   (ParoleProviderPluginIface *iface);
-static void   stream_properties_finalize             (GObject 	              *object);
-
-
-struct _StreamPropertiesClass
-{
-    GObjectClass parent_class;
-};
-
-struct _StreamProperties
-{
-    GObject      parent;
-    ParoleProviderPlayer *player;
-    GtkWidget *title;
-    GtkWidget *artist;
-    GtkWidget *album;
-    GtkWidget *year;
-    
-#ifdef HAVE_TAGLIBC
-    GtkWidget   *save;
-    TagLib_File *tag_file;
-    gchar       *filename;
-    guint        changed;
-    gboolean	 need_save;
-#endif
-    gboolean     block_edit_signal;
-    
-};
-
-PAROLE_DEFINE_TYPE_WITH_CODE (StreamProperties, 
-			      stream_properties, 
-			      G_TYPE_OBJECT,
-			      PAROLE_IMPLEMENT_INTERFACE (PAROLE_TYPE_PROVIDER_PLUGIN, 
-							  stream_properties_iface_init));
-
-enum
-{
-    TITLE_ENTRY_EDITED	= (1 << 1),
-    ARTIST_ENTRY_EDITED	= (1 << 2),
-    ALBUM_ENTRY_EDITED	= (1 << 3),
-    YEAR_ENTRY_EDITED	= (1 << 4)
-};
-
-static void
-set_widget_text (StreamProperties *data, GtkWidget *widget, const gchar *text)
-{
-    data->block_edit_signal = TRUE;
-#ifdef HAVE_TAGLIBC
-    gtk_entry_set_text (GTK_ENTRY (widget), text);
-#else
-    gtk_label_set_text (GTK_LABEL (widget), text);
-#endif
-    data->block_edit_signal = FALSE;
-}
-						
-#ifdef HAVE_TAGLIBC
-static void
-title_entry_edited (StreamProperties *prop)
-{
-    if (!prop->block_edit_signal)
-	prop->changed |= TITLE_ENTRY_EDITED;
-}
-
-static void
-artist_entry_edited (StreamProperties *prop)
-{
-    if (!prop->block_edit_signal)
-	prop->changed |= ARTIST_ENTRY_EDITED;
-}
-
-static void
-album_entry_edited (StreamProperties *prop)
-{
-    if (!prop->block_edit_signal)
-	prop->changed |= ALBUM_ENTRY_EDITED;
-}
-
-static void
-year_entry_edited (StreamProperties *prop)
-{
-    if (!prop->block_edit_signal)
-	prop->changed |= YEAR_ENTRY_EDITED;
-}
-#endif
-
-
-static GtkWidget *
-new_tag_widget (void)
-{
-    GtkWidget *widget;
-    
-#ifdef HAVE_TAGLIBC
-    widget = gtk_entry_new ();
-#else
-    widget = gtk_label_new (NULL);
-#endif
-    return widget;
-}
-
-static void
-init_media_tag_entries (StreamProperties *data)
-{
-    set_widget_text (data, data->title, _("Unknown"));
-    set_widget_text (data, data->artist, _("Unknown"));
-    set_widget_text (data, data->album, _("Unknown"));
-    set_widget_text (data, data->year, _("Unknown"));
-    
-#ifdef HAVE_TAGLIBC
-    gtk_widget_set_tooltip_text (data->save, NULL);
-    data->changed = 0;
-    data->need_save = FALSE;
-    if ( data->filename )
-    {
-	g_free (data->filename);
-	data->filename = NULL;
-    }
-    
-    if ( data->tag_file )
-    {
-	taglib_file_free (data->tag_file);
-	data->tag_file = NULL;
-    }
-#endif
-}
-
-#ifdef HAVE_TAGLIBC
-static void
-save_media_tags (StreamProperties *data)
-{
-    TagLib_Tag *tag;
-    const gchar *entry;
-    gboolean save = FALSE;
-
-    if ( !data->tag_file )
-	return;
-	    
-    if ( !data->need_save )
-	return;
-    
-    tag = taglib_file_tag (data->tag_file);
-    
-    if ( !tag )
-	return;
-    
-    if ( data->changed & TITLE_ENTRY_EDITED )
-    {
-	g_debug ("Saving Title");
-	entry = gtk_entry_get_text (GTK_ENTRY (data->title));
-	taglib_tag_set_title (tag, entry);
-	save = TRUE;
-    }
-    
-    if ( data->changed & ARTIST_ENTRY_EDITED )
-    {
-	g_debug ("Saving Artist");
-	entry = gtk_entry_get_text (GTK_ENTRY (data->artist));
-	taglib_tag_set_artist (tag, entry);
-	save = TRUE;
-    }
-    
-    if ( data->changed & ALBUM_ENTRY_EDITED )
-    {
-	g_debug ("Saving Album");
-	entry = gtk_entry_get_text (GTK_ENTRY (data->album));
-	taglib_tag_set_album (tag, entry);
-	save = TRUE;
-    }
-    
-    if ( data->changed & YEAR_ENTRY_EDITED )
-    {
-	g_debug ("Saving Year");
-	entry = gtk_entry_get_text (GTK_ENTRY (data->year));
-	taglib_tag_set_year (tag, (guint) atoi (entry));
-	save = TRUE;
-    }
-    
-    if ( save )
-	taglib_file_save (data->tag_file);
-    
-    data->changed = 0;
-    data->need_save = FALSE;
-    
-    taglib_tag_free_strings ();
-}
-#endif
-
-
-#ifdef HAVE_TAGLIBC
-static void 
-save_media_clicked_cb (StreamProperties *data)
-{
-    data->need_save = TRUE;
-}
-#endif
-
-static GtkWidget *
-stream_properties_create_widgets (StreamProperties *prop)
-{
-    PangoFontDescription *pfd;
-    
-    GtkWidget *frame;
-    GtkWidget *label;
-    GtkWidget *vbox;
-    GtkWidget *table;
-    GtkWidget *align;
-    guint i = 0;
-    
-    vbox = gtk_vbox_new (FALSE, 0);
-    table = gtk_table_new (5, 2, FALSE);
-    pfd = pango_font_description_from_string("bold");
-    
-    /*
-     * Title
-     */
-    align = gtk_alignment_new (0.0, 0.5, 0, 0);
-    
-    label = gtk_label_new (_("Title:"));
-    gtk_container_add (GTK_CONTAINER(align), label);
-    gtk_widget_modify_font (label, pfd);
-    
-    gtk_table_attach (GTK_TABLE(table), align,
-		      0, 1, i, i+1, 
-                      GTK_SHRINK, GTK_SHRINK,
-                      2, 8);
-
-    prop->title = new_tag_widget ();
-    align = gtk_alignment_new (0.0, 0.5, 0, 0);
-    gtk_container_add (GTK_CONTAINER (align), prop->title);
-    gtk_table_attach (GTK_TABLE (table), align,
-                      1, 2, i, i+1, 
-                      GTK_SHRINK, GTK_SHRINK,
-                      2, 8);
-    i++;
-
-    /*
-     * Artist
-     */
-    align = gtk_alignment_new (0.0, 0.5, 0, 0);
-    
-    label = gtk_label_new (_("Artist:"));
-    gtk_container_add (GTK_CONTAINER(align), label);
-    gtk_widget_modify_font (label, pfd);
-    
-    gtk_table_attach (GTK_TABLE(table), align,
-		      0, 1, i, i+1, 
-                      GTK_SHRINK, GTK_SHRINK,
-                      2, 8);
-
-    prop->artist = new_tag_widget ();
-    align = gtk_alignment_new (0.0, 0.5, 0, 0);
-    gtk_container_add (GTK_CONTAINER (align), prop->artist);
-    gtk_table_attach (GTK_TABLE (table), align,
-                      1, 2, i, i+1, 
-                      GTK_SHRINK, GTK_SHRINK,
-                      2, 8);
-    i++;
-
-    /*
-     * Album
-     */
-    align = gtk_alignment_new (0.0, 0.5, 0, 0);
-    
-    label = gtk_label_new (_("Album:"));
-    gtk_container_add (GTK_CONTAINER(align), label);
-    gtk_widget_modify_font (label, pfd);
-    
-    gtk_table_attach (GTK_TABLE(table), align,
-		      0, 1, i, i+1, 
-                      GTK_SHRINK, GTK_SHRINK,
-                      2, 8);
-
-    prop->album = new_tag_widget ();
-    align = gtk_alignment_new (0.0, 0.5, 0, 0);
-    gtk_container_add (GTK_CONTAINER (align), prop->album);
-    gtk_table_attach (GTK_TABLE (table), align,
-                      1, 2, i, i+1, 
-                      GTK_SHRINK, GTK_SHRINK,
-                      2, 8);
-    i++;
-    
-    /*
-     * Year
-     */
-    align = gtk_alignment_new (0.0, 0.5, 0, 0);
-    
-    label = gtk_label_new (_("Year:"));
-    gtk_container_add (GTK_CONTAINER (align), label);
-    gtk_widget_modify_font (label, pfd);
-    
-    gtk_table_attach (GTK_TABLE(table), align,
-		      0, 1, i, i+1, 
-                      GTK_SHRINK, GTK_SHRINK,
-                      2, 8);
-
-    prop->year = new_tag_widget ();
-    align = gtk_alignment_new (0.0, 0.5, 0, 0);
-    gtk_container_add (GTK_CONTAINER (align), prop->year);
-    gtk_table_attach (GTK_TABLE (table), align,
-                      1, 2, i, i+1, 
-                      GTK_SHRINK, GTK_SHRINK,
-                      2, 8);
-    i++;
-    
-    frame = gtk_frame_new (_("General"));
-    gtk_container_add (GTK_CONTAINER (frame), table);
-    gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE, 0);
-    
-#ifdef HAVE_TAGLIBC
-    prop->save = gtk_button_new_from_stock (GTK_STOCK_APPLY);
-    i++;
-    align = gtk_alignment_new (0.0, 0.5, 0, 0);
-    gtk_container_add (GTK_CONTAINER (align), prop->save);
-    gtk_table_attach (GTK_TABLE (table), align,
-                      1, 2, i, i+1, 
-                      GTK_SHRINK, GTK_SHRINK,
-                      2, 8);
-
-    g_signal_connect_swapped (prop->save, "clicked",
-			      G_CALLBACK (save_media_clicked_cb), prop);
-    
-    g_signal_connect_swapped (prop->title, "changed",
-			      G_CALLBACK (title_entry_edited), prop);
-    
-    g_signal_connect_swapped (prop->artist, "changed",
-			      G_CALLBACK (artist_entry_edited), prop);
-			      
-    g_signal_connect_swapped (prop->album, "changed",
-			      G_CALLBACK (album_entry_edited), prop);
-			    
-    g_signal_connect_swapped (prop->year, "changed",
-			      G_CALLBACK (year_entry_edited), prop);
-			      
-#endif
-    init_media_tag_entries (prop);
-    return vbox;
-}
-
-static void
-state_changed_cb (ParoleProviderPlayer *player, const ParoleStream *stream, 
-		  ParoleState state, StreamProperties *prop)
-{
-#ifdef HAVE_TAGLIBC
-    save_media_tags (prop);
-#endif
-
-    if ( state <= PAROLE_STATE_PLAYBACK_FINISHED )
-	init_media_tag_entries (prop);
-}
-
-#ifdef HAVE_TAGLIBC
-static void
-disable_tag_save (GtkWidget *widget)
-{
-    gtk_widget_set_sensitive (widget, FALSE);
-    gtk_widget_set_tooltip_text (widget, _("Stream doesn't support tags changes"));
-}
-
-static void
-enable_tag_save (GtkWidget *widget)
-{
-    gtk_widget_set_sensitive (widget, TRUE);
-    gtk_widget_set_tooltip_text (widget, _("Save media tags changes"));
-}
-#endif
-
-static void
-tag_message_cb (ParoleProviderPlayer *player, const ParoleStream *stream, StreamProperties *prop)
-{
-    gchar *str = NULL;
-#ifdef HAVE_TAGLIBC
-    ParoleMediaType media_type;
-    gchar *uri = NULL;
-    GError *error = NULL;
-    gboolean sensitive;
-#endif
-    
-    g_object_get (G_OBJECT (stream),
-		  "title", &str,
-#ifdef HAVE_TAGLIBC
-		  "uri", &uri,
-		  "media-type", &media_type,
-#endif
-		  NULL);
-    
-#ifdef HAVE_TAGLIBC
-    if ( prop->filename )
-    {
-	g_free (prop->filename);
-	prop->filename = NULL;
-    }
-    
-    if ( prop->tag_file )
-    {
-	taglib_file_free (prop->tag_file);
-	prop->tag_file = NULL;
-    }
-    
-    if ( media_type == PAROLE_MEDIA_TYPE_LOCAL_FILE )
-    {
-	prop->filename = g_filename_from_uri (uri, NULL, &error);
-	
-	if ( G_UNLIKELY (error) )
-	{
-	    g_critical ("Unablet to convert uri : %s to filename : %s", uri, error->message);
-	    g_error_free (error);
-	    disable_tag_save (prop->save);
-	}
-	else
-	{
-	    prop->tag_file = taglib_file_new (prop->filename);
-	    
-	    if ( !prop->tag_file )
-		disable_tag_save (prop->save);
-	    else
-		enable_tag_save (prop->save);
-	}
-    }
-    
-    sensitive = media_type = PAROLE_MEDIA_TYPE_LOCAL_FILE;
-    gtk_widget_set_sensitive (prop->title, sensitive);
-    gtk_widget_set_sensitive (prop->artist, sensitive);
-    gtk_widget_set_sensitive (prop->album, sensitive);
-    gtk_widget_set_sensitive (prop->year, sensitive);
-    gtk_widget_set_sensitive (prop->save, sensitive);
-#endif
-
-    if ( str )
-    {
-	set_widget_text (prop, prop->title, str);
-	g_free (str);
-    }
-    
-    g_object_get (G_OBJECT (stream),
-		  "artist", &str,
-		  NULL);
-		  
-    if ( str )
-    {
-	set_widget_text (prop, prop->artist, str);
-	g_free (str);
-    }
-    
-    g_object_get (G_OBJECT (stream),
-		  "year", &str,
-		  NULL);
-		  
-    if ( str )
-    {
-	set_widget_text (prop, prop->year, str);
-	g_free (str);
-    }
-    
-    g_object_get (G_OBJECT (stream),
-		  "album", &str,
-		  NULL);
-		  
-    if ( str )
-    {
-	set_widget_text (prop, prop->album, str);
-	g_free (str);
-    }
-
-#ifdef HAVE_TAGLIBC
-    if ( uri )
-	g_free (uri);
-#endif
-    
-}
-
-static gboolean stream_properties_is_configurable (ParoleProviderPlugin *plugin)
-{
-    return FALSE;
-}
-
-static void
-stream_properties_set_player (ParoleProviderPlugin *plugin, ParoleProviderPlayer *player)
-{
-    StreamProperties *prop;
-    GtkWidget *vbox;
-    
-    prop = STREAM_PROPERTIES_PROVIDER (plugin);
-    
-    prop->player = player;
-    
-    vbox = stream_properties_create_widgets (prop);
-    
-    parole_provider_player_pack (player, vbox, _("Properties"), PAROLE_PLUGIN_CONTAINER_PLAYLIST);
- 
-    g_signal_connect (player, "state_changed", 
-		      G_CALLBACK (state_changed_cb), prop);
-		      
-    g_signal_connect (player, "tag-message",
-		      G_CALLBACK (tag_message_cb), prop);
-    
-}
-
-static void
-stream_properties_iface_init (ParoleProviderPluginIface *iface)
-{
-    iface->get_is_configurable = stream_properties_is_configurable;
-    iface->set_player = stream_properties_set_player;
-}
-
-static void stream_properties_class_init (StreamPropertiesClass *klass)
-{
-    GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
-    
-    gobject_class->finalize = stream_properties_finalize;
-}
-
-static void stream_properties_init (StreamProperties *provider)
-{
-    provider->player = NULL;
-}
-
-static void stream_properties_finalize (GObject *object)
-{
-    G_OBJECT_CLASS (stream_properties_parent_class)->finalize (object);
-}
diff --git a/src/plugins/properties/stream-properties-provider.h b/src/plugins/properties/stream-properties-provider.h
deleted file mode 100644
index 268cb44..0000000
--- a/src/plugins/properties/stream-properties-provider.h
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * * Copyright (C) 2009-2011 Ali <aliov at xfce.org>
- *
- * Licensed under the GNU General Public License Version 2
- *
- * 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
- */
-
-#ifndef STREAM_PROPERTIES_PROVIDER_H_
-#define STREAM_PROPERTIES_PROVIDER_H_
-
-#include <src/misc/parole.h>
-
-G_BEGIN_DECLS
-
-typedef struct _StreamPropertiesClass StreamPropertiesClass;
-typedef struct _StreamProperties      StreamProperties;
-
-#define STREAM_TYPE_PROPERTIES_PROVIDER             (stream_properties_get_type ())
-#define STREAM_PROPERTIES_PROVIDER(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), STREAM_TYPE_PROPERTIES_PROVIDER, StreamProperties))
-#define STREAM_PROPERTIES_PROVIDER_CLASS(klass)     (G_TYPE_CHECK_CLASS_CAST ((klass), STREAM_TYPE_PROPERTIES_PROVIDER, StreamPropertiesClass))
-#define STREAM_IS_PROPERTIES_PROVIDER(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), STREAM_TYPE_PROPERTIES_PROVIDER))
-#define STREAM_IS_PROPERTIES_PROVIDER_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE ((klass), STREAM_TYPE_PROPERTIES_PROVIDER))
-#define STREAM_PROPERTIES_PROVIDER_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), STREAM_TYPE_PROPERTIES_PROVIDER, StreamPropertiesClass))
-
-GType stream_properties_get_type      	(void) G_GNUC_CONST G_GNUC_INTERNAL;
-
-void  stream_properties_register_type   (ParoleProviderPlugin *plugin);
-
-G_END_DECLS
-
-#endif /*STREAM_PROPERTIES_PROVIDER_H_*/
diff --git a/src/plugins/properties/stream-properties.desktop.in b/src/plugins/properties/stream-properties.desktop.in
deleted file mode 100644
index 32c5736..0000000
--- a/src/plugins/properties/stream-properties.desktop.in
+++ /dev/null
@@ -1,6 +0,0 @@
-[Parole Plugin]
-Module=stream-properties
-_Name=Stream Properties
-_Description=Read media properties
-Authors=Ali Abdallah aliov at xfce.org
-Website=http://goodies.xfce.org/projects/applications/parole


More information about the Xfce4-commits mailing list