[Xfce4-commits] <xfce4-panel:devel> * Remove test taskbar code.
Nick Schermer
nick at xfce.org
Tue Aug 11 20:24:32 CEST 2009
Updating branch refs/heads/devel
to a7e0e7c17a2ccb99bcbb9a2c30d7493efea9c5a4 (commit)
from f8fc340490ee9ec90dcaaf34cc9dc37c85035175 (commit)
commit a7e0e7c17a2ccb99bcbb9a2c30d7493efea9c5a4
Author: Nick Schermer <nick at xfce.org>
Date: Wed Oct 8 23:06:13 2008 +0200
* Remove test taskbar code.
plugins/tasklist.new/Makefile.am | 72 -------------
plugins/tasklist.new/tasklist-box.c | 152 ---------------------------
plugins/tasklist.new/tasklist-box.h | 39 -------
plugins/tasklist.new/tasklist-plugin.c | 137 ------------------------
plugins/tasklist.new/tasklist-plugin.h | 39 -------
plugins/tasklist.new/tasklist.desktop.in.in | 9 --
6 files changed, 0 insertions(+), 448 deletions(-)
diff --git a/plugins/tasklist.new/Makefile.am b/plugins/tasklist.new/Makefile.am
deleted file mode 100644
index bd7ad92..0000000
--- a/plugins/tasklist.new/Makefile.am
+++ /dev/null
@@ -1,72 +0,0 @@
-# $Id$
-
-INCLUDES = \
- -I$(top_srcdir) \
- -I$(top_builddir) \
- -DBINDIR=\"$(bindir)\" \
- -DG_LOG_DOMAIN=\"libtasklist\" \
- $(PLATFORM_CPPFLAGS)
-
-plugindir = \
- $(libdir)/xfce4/panel-plugins
-
-plugin_LTLIBRARIES = \
- libtasklist.la
-
-libtasklist_la_SOURCES = \
- tasklist-box.c \
- tasklist-box.h \
- tasklist-plugin.c \
- tasklist-plugin.h
-
-libtasklist_la_CFLAGS = \
- $(GTK_CFLAGS) \
- $(LIBXFCE4UTIL_CFLAGS) \
- $(LIBXFCE4UI_CFLAGS) \
- $(PLATFORM_CFLAGS)
-
-libtasklist_la_LDFLAGS = \
- -avoid-version \
- -module \
- $(PLATFORM_LDFLAGS)
-
-if HAVE_CYGWIN
-libtasklist_la_LDFLAGS += \
- -no-undefined
-endif
-
-libtasklist_la_LIBADD = \
- $(top_builddir)/libxfce4panel/libxfce4panel.la \
- $(GTK_LIBS) \
- $(LIBXFCE4UTIL_LIBS) \
- $(LIBXFCE4UI_LIBS)
-
-libtasklist_la_DEPENDENCIES = \
- $(top_builddir)/libxfce4panel/libxfce4panel.la
-
-#
-# .desktop file
-#
-desktopdir = \
- $(datadir)/xfce4/panel-plugins
-
-desktop_in_in_files = \
- tasklist.desktop.in.in
-
-desktop_in_files = \
- $(desktop_in_in_files:.desktop.in.in=.desktop.in)
-
-%.desktop.in: %.desktop.in.in
- sed -e "s,\@libdir\@,$(libdir),g" < $< > $@
-
-desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
- at INTLTOOL_DESKTOP_RULE@
-
-EXTRA_DIST = \
- $(desktop_in_in_files)
-
-DISTCLEANFILES = \
- $(desktop_DATA) \
- $(desktop_in_files)
-
-# vi:set ts=8 sw=8 noet ai nocindent syntax=automake:
diff --git a/plugins/tasklist.new/tasklist-box.c b/plugins/tasklist.new/tasklist-box.c
deleted file mode 100644
index d33e9d1..0000000
--- a/plugins/tasklist.new/tasklist-box.c
+++ /dev/null
@@ -1,152 +0,0 @@
-/* $Id$ */
-/*
- * This library 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 library 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 Library General Public License
- * along with this library; if not, write to the Free Software Foundation,
- * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
- */
-
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <gtk/gtk.h>
-#include <libxfce4util/libxfce4util.h>
-
-#include "tasklist-box.h"
-
-
-
-struct _TasklistBoxClass
-{
- GtkContainerClass __parent__;
-};
-
-struct _TasklistBoxClass
-{
- GtkContainer __parent__;
-};
-
-
-
-static void tasklist_box_class_init (TasklistBoxClass *klass);
-static void tasklist_box_init (TasklistBox *box);
-static void tasklist_box_finalize (GObject *object);
-
-
-
-G_DEFINE_TYPE (TasklistBox, tasklist_box, GTK_TYPE_CONTAINER);
-
-
-static void
-tasklist_box_class_init (TasklistBoxClass *klass)
-{
- GObjectClass *gobject_class;
-
- gobject_class = G_OBJECT_CLASS (klass);
- gobject_class->finalize = tasklist_box_finalize;
-}
-
-
-
-static void
-tasklist_box_init (TasklistBox *box)
-{
-
-}
-
-static void
-tasklist_box_finalize (GObject *object)
-{
- //TasklistBox *box = TASKLIST_BOX (object);
-
- (*G_OBJECT_CLASS (tasklist_box_parent_class)->finalize) (object);
-}
-
-
-
-static void
-tasklist_box_connect_window (TasklistBox *box,
- WnckWindow *window)
-{
- panel_return_if_fail (TASKLIST_IS_BOX (box));
- panel_return_if_fail (WNCK_IS_WINDOW (window));
-
- /* monitor window changes */
- g_signal_connect (G_OBJECT (window), "workspace-changed", G_CALLBACK (tasklist_box_window_changed_workspace), box);
- g_signal_connect (G_OBJECT (window), "geometry-changed", G_CALLBACK (tasklist_box_window_changed_geometry), box);
-}
-
-
-
-static void
-tasklist_box_disconnect_window (TasklistBox *box,
- WnckWindow *window)
-{
- panel_return_if_fail (TASKLIST_IS_BOX (box));
- panel_return_if_fail (WNCK_IS_WINDOW (window));
-
- /* disconnect window monitor signals */
- g_signal_handlers_disconnect_by_func (G_OBJECT (window), G_CALLBACK (tasklist_box_window_changed_workspace), box);
- g_signal_handlers_disconnect_by_func (G_OBJECT (window), G_CALLBACK (tasklist_box_window_changed_geometry), box);
-}
-
-
-
-static void
-tasklist_box_connect_screen (TasklistBox *box,
- WnckScreen *screen)
-{
- GList *windows, *li;
-
- panel_return_if_fail (TASKLIST_IS_BOX (box));
- panel_return_if_fail (WNCK_IS_SCREEN (screen));
-
- /* monitor screen changes */
- g_signal_connect (G_OBJECT (screen), "active-window-changed", G_CALLBACK (tasklist_box_active_window_changed), box);
- g_signal_connect (G_OBJECT (screen), "active-workspace-changed", G_CALLBACK (tasklist_box_active_workspace_changed), box);
- g_signal_connect (G_OBJECT (screen), "window-opened", G_CALLBACK (tasklist_box_window_added), box);
- g_signal_connect (G_OBJECT (screen), "window-closed", G_CALLBACK (tasklist_box_window_removed), box);
- g_signal_connect (G_OBJECT (screen), "viewports-changed", G_CALLBACK (tasklist_box_viewports_changed), box);
-
- /* get screen windows */
- windows = wnck_screen_get_windows (screen);
-
- /* monitor window changes */
- for (li = windows; li != NULL; li = li->next)
- tasklist_box_connect_window (box, li->data);
-}
-
-
-static void
-tasklist_box_disconnect_screen (TasklistBox *box,
- WnckScreen *screen)
-{
- GList *windows, *li;
-
- panel_return_if_fail (TASKLIST_IS_BOX (box));
- panel_return_if_fail (WNCK_IS_SCREEN (screen));
-
- /* get screen windows */
- windows = wnck_screen_get_windows (screen);
-
- /* disconnect window signals */
- for (li = windows; li != NULL; li = li->next)
- tasklist_box_disconnect_window (box, li->data);
-
- /* disconnect monitor signals */
- g_signal_handlers_disconnect_by_func (G_OBJECT (screen), G_CALLBACK (tasklist_box_active_window_changed), box);
- g_signal_handlers_disconnect_by_func (G_OBJECT (screen), G_CALLBACK (tasklist_box_active_workspace_changed), box);
- g_signal_handlers_disconnect_by_func (G_OBJECT (screen), G_CALLBACK (tasklist_box_window_added), box);
- g_signal_handlers_disconnect_by_func (G_OBJECT (screen), G_CALLBACK (tasklist_box_window_removed), box);
- g_signal_handlers_disconnect_by_func (G_OBJECT (screen), G_CALLBACK (tasklist_box_viewports_changed), box);
-}
diff --git a/plugins/tasklist.new/tasklist-box.h b/plugins/tasklist.new/tasklist-box.h
deleted file mode 100644
index 4fcccc2..0000000
--- a/plugins/tasklist.new/tasklist-box.h
+++ /dev/null
@@ -1,39 +0,0 @@
-/* $Id$ */
-/*
- * 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., 59 Temple
- * Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-#ifndef __TASKLIST_BOX_H__
-#define __TASKLIST_BOX_H__
-
-#include <gtk/gtk.h>
-
-G_BEGIN_DECLS
-
-typedef struct _TasklistBoxClass TasklistBoxClass;
-typedef struct _TasklistBox TasklistBox;
-
-#define TASKLIST_TYPE_BOX (tasklist_box_get_type ())
-#define TASKLIST_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TASKLIST_TYPE_BOX, TasklistBox))
-#define TASKLIST_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TASKLIST_TYPE_BOX, TasklistBoxClass))
-#define TASKLIST_IS_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TASKLIST_TYPE_BOX))
-#define TASKLIST_IS_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TASKLIST_TYPE_BOX))
-#define TASKLIST_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TASKLIST_TYPE_BOX, TasklistBoxClass))
-
-GType tasklist_box_get_type (void) G_GNUC_CONST;
-
-G_END_DECLS
-
-#endif /* !__TASKLIST_BOX_H__ */
diff --git a/plugins/tasklist.new/tasklist-plugin.c b/plugins/tasklist.new/tasklist-plugin.c
deleted file mode 100644
index ee7dd07..0000000
--- a/plugins/tasklist.new/tasklist-plugin.c
+++ /dev/null
@@ -1,137 +0,0 @@
-/* $Id$ */
-/*
- * This library 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 library 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 Library General Public License
- * along with this library; if not, write to the Free Software Foundation,
- * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
- */
-
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <libxfce4util/libxfce4util.h>
-#include <libxfce4panel/libxfce4panel.h>
-
-#include "tasklist-plugin.h"
-
-struct _TasklistPluginClass
-{
- XfcePanelPluginClass __parent__;
-};
-
-struct _TasklistPlugin
-{
- XfcePanelPlugin __parent__;
-};
-
-
-
-static void tasklist_plugin_class_init (TasklistPluginClass *klass);
-static void tasklist_plugin_init (TasklistPlugin *plugin);
-static void tasklist_plugin_orientation_changed (XfcePanelPlugin *plugin,
- GtkOrientation orientation);
-static void tasklist_plugin_size_changed (XfcePanelPlugin *plugin,
- gint size);
-static void tasklist_plugin_about (XfcePanelPlugin *plugin);
-static void tasklist_plugin_save (XfcePanelPlugin *plugin);
-static void tasklist_plugin_configure_plugin (XfcePanelPlugin *plugin);
-static void tasklist_plugin_screen_position_changed (XfcePanelPlugin *plugin,
- gint position);
-
-
-
-XFCE_PANEL_PLUGIN_DEFINE_TYPE (TasklistPlugin, tasklist_plugin);
-
-
-
-static void
-tasklist_plugin_class_init (TasklistPluginClass *klass)
-{
- GObjectClass *gobject_class;
- XfcePanelPluginClass *plugin_class;
-
- gobject_class = G_OBJECT_CLASS (klass);
-
- plugin_class = XFCE_PANEL_PLUGIN_CLASS (klass);
- plugin_class->orientation_changed = tasklist_plugin_orientation_changed;
- plugin_class->size_changed = tasklist_plugin_size_changed;
- plugin_class->about = tasklist_plugin_about;
- plugin_class->save = tasklist_plugin_save;
- plugin_class->configure_plugin = tasklist_plugin_configure_plugin;
- plugin_class->screen_position_changed = tasklist_plugin_screen_position_changed;
-}
-
-
-
-static void
-tasklist_plugin_init (TasklistPlugin *plugin)
-{
- GtkWidget *button;
-
- button = gtk_button_new_from_stock (GTK_STOCK_FLOPPY);
- gtk_container_add (GTK_CONTAINER (plugin), button);
- gtk_button_set_relief (GTK_BUTTON (button), GTK_RELIEF_NONE);
- xfce_panel_plugin_add_action_widget (XFCE_PANEL_PLUGIN (plugin), button);
- gtk_widget_show (button);
-}
-
-
-
-static void
-tasklist_plugin_orientation_changed (XfcePanelPlugin *plugin,
- GtkOrientation orientation)
-{
-
-}
-
-
-
-static void
-tasklist_plugin_size_changed (XfcePanelPlugin *plugin,
- gint size)
-{
-
-}
-
-
-
-static void
-tasklist_plugin_about (XfcePanelPlugin *plugin)
-{
-
-}
-
-
-
-static void
-tasklist_plugin_save (XfcePanelPlugin *plugin)
-{
-
-}
-
-
-
-static void
-tasklist_plugin_configure_plugin (XfcePanelPlugin *plugin)
-{
-
-}
-
-
-
-static void
-tasklist_plugin_screen_position_changed (XfcePanelPlugin *plugin,
- gint position)
-{
-
-}
diff --git a/plugins/tasklist.new/tasklist-plugin.h b/plugins/tasklist.new/tasklist-plugin.h
deleted file mode 100644
index 5821408..0000000
--- a/plugins/tasklist.new/tasklist-plugin.h
+++ /dev/null
@@ -1,39 +0,0 @@
-/* $Id$ */
-/*
- * 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., 59 Temple
- * Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-#ifndef __TASKLIST_PLUGIN_H__
-#define __TASKLIST_PLUGIN_H__
-
-#include <gtk/gtk.h>
-
-G_BEGIN_DECLS
-
-typedef struct _TasklistPluginClass TasklistPluginClass;
-typedef struct _TasklistPlugin TasklistPlugin;
-
-#define TASKLIST_TYPE_PLUGIN (tasklist_plugin_get_type ())
-#define TASKLIST_PLUGIN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TASKLIST_TYPE_PLUGIN, TasklistPlugin))
-#define TASKLIST_PLUGIN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TASKLIST_TYPE_PLUGIN, TasklistPluginClass))
-#define TASKLIST_IS_PLUGIN(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TASKLIST_TYPE_PLUGIN))
-#define TASKLIST_IS_PLUGIN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TASKLIST_TYPE_PLUGIN))
-#define TASKLIST_PLUGIN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TASKLIST_TYPE_PLUGIN, TasklistPluginClass))
-
-GType tasklist_plugin_get_type (void) G_GNUC_CONST;
-
-G_END_DECLS
-
-#endif /* !__TASKLIST_PLUGIN_H__ */
diff --git a/plugins/tasklist.new/tasklist.desktop.in.in b/plugins/tasklist.new/tasklist.desktop.in.in
deleted file mode 100644
index 2d6b77d..0000000
--- a/plugins/tasklist.new/tasklist.desktop.in.in
+++ /dev/null
@@ -1,9 +0,0 @@
-[Xfce Panel]
-Type=X-XFCE-PanelPlugin
-Encoding=UTF-8
-_Name=Task List
-_Comment=Switch between open windows using buttons
-Icon=preferences-system-windows
-X-XFCE-Module=tasklist
-X-XFCE-Module-Path=@libdir@/xfce4/panel-plugins
-X-XFCE-External=TRUE
More information about the Xfce4-commits
mailing list