[Xfce4-commits] <xfce4-panel:devel> * Remove tasklist .svn directory
Nick Schermer
nick at xfce.org
Tue Aug 11 20:22:22 CEST 2009
Updating branch refs/heads/devel
to 93ee09ed5050ee328ce77c21969278be1c58eb6a (commit)
from d609b5d0ca7c404926ebec6f709de49d56c1b7d6 (commit)
commit 93ee09ed5050ee328ce77c21969278be1c58eb6a
Author: Nick Schermer <nick at xfce.org>
Date: Sat Jun 21 11:12:19 2008 +0200
* Remove tasklist .svn directory
plugins/tasklist/.svn/all-wcprops | 41 --
plugins/tasklist/.svn/dir-prop-base | 10 -
plugins/tasklist/.svn/entries | 105 -----
plugins/tasklist/.svn/format | 1 -
.../tasklist/.svn/prop-base/Makefile.am.svn-base | 5 -
.../.svn/prop-base/tasklist-dialogs.c.svn-base | 5 -
.../.svn/prop-base/tasklist-dialogs.h.svn-base | 5 -
.../tasklist/.svn/prop-base/tasklist.c.svn-base | 5 -
.../tasklist/.svn/prop-base/tasklist.h.svn-base | 5 -
.../tasklist/.svn/text-base/Makefile.am.svn-base | 74 ---
.../.svn/text-base/tasklist-dialogs.c.svn-base | 232 ----------
.../.svn/text-base/tasklist-dialogs.h.svn-base | 25 -
.../tasklist/.svn/text-base/tasklist.c.svn-base | 477 --------------------
.../.svn/text-base/tasklist.desktop.in.in.svn-base | 9 -
.../tasklist/.svn/text-base/tasklist.h.svn-base | 63 ---
15 files changed, 0 insertions(+), 1062 deletions(-)
diff --git a/plugins/tasklist/.svn/all-wcprops b/plugins/tasklist/.svn/all-wcprops
deleted file mode 100644
index c6749ff..0000000
--- a/plugins/tasklist/.svn/all-wcprops
+++ /dev/null
@@ -1,41 +0,0 @@
-K 25
-svn:wc:ra_dav:version-url
-V 59
-/svn/xfce/!svn/ver/26626/xfce4-panel/trunk/plugins/tasklist
-END
-tasklist-dialogs.c
-K 25
-svn:wc:ra_dav:version-url
-V 78
-/svn/xfce/!svn/ver/26151/xfce4-panel/trunk/plugins/tasklist/tasklist-dialogs.c
-END
-tasklist.c
-K 25
-svn:wc:ra_dav:version-url
-V 70
-/svn/xfce/!svn/ver/26626/xfce4-panel/trunk/plugins/tasklist/tasklist.c
-END
-tasklist.desktop.in.in
-K 25
-svn:wc:ra_dav:version-url
-V 82
-/svn/xfce/!svn/ver/25077/xfce4-panel/trunk/plugins/tasklist/tasklist.desktop.in.in
-END
-tasklist-dialogs.h
-K 25
-svn:wc:ra_dav:version-url
-V 78
-/svn/xfce/!svn/ver/26151/xfce4-panel/trunk/plugins/tasklist/tasklist-dialogs.h
-END
-tasklist.h
-K 25
-svn:wc:ra_dav:version-url
-V 70
-/svn/xfce/!svn/ver/26196/xfce4-panel/trunk/plugins/tasklist/tasklist.h
-END
-Makefile.am
-K 25
-svn:wc:ra_dav:version-url
-V 71
-/svn/xfce/!svn/ver/26151/xfce4-panel/trunk/plugins/tasklist/Makefile.am
-END
diff --git a/plugins/tasklist/.svn/dir-prop-base b/plugins/tasklist/.svn/dir-prop-base
deleted file mode 100644
index fcca934..0000000
--- a/plugins/tasklist/.svn/dir-prop-base
+++ /dev/null
@@ -1,10 +0,0 @@
-K 10
-svn:ignore
-V 42
-Makefile
-Makefile.in
-.deps
-.libs
-*desktop
-
-END
diff --git a/plugins/tasklist/.svn/entries b/plugins/tasklist/.svn/entries
deleted file mode 100644
index 9befafc..0000000
--- a/plugins/tasklist/.svn/entries
+++ /dev/null
@@ -1,105 +0,0 @@
-8
-
-dir
-27067
-https://svn.xfce.org/svn/xfce/xfce4-panel/trunk/plugins/tasklist
-https://svn.xfce.org/svn/xfce
-
-
-
-2008-02-18T12:42:14.286349Z
-26626
-nick
-has-props
-
-svn:special svn:externals svn:needs-lock
-
-
-
-
-
-
-
-
-
-
-
-a0aa69c2-05f4-0310-b83c-d5d913b14636
-
-tasklist-dialogs.c
-file
-
-
-
-
-2008-06-15T12:56:00.000000Z
-f4dd58d0524ca5cc68d23ca4173997d5
-2007-10-20T10:33:12.393658Z
-26151
-nick
-has-props
-
-tasklist.c
-file
-
-
-
-
-2008-06-15T12:56:00.000000Z
-29dc6c90bd905757307790fed32ba3b7
-2008-02-18T12:42:14.286349Z
-26626
-nick
-has-props
-
-tasklist.desktop.in.in
-file
-
-
-
-
-2008-06-15T12:56:00.000000Z
-3983a8f3b117100e4e15d908345aa800
-2007-03-03T19:26:06.502344Z
-25077
-nick
-
-tasklist-dialogs.h
-file
-
-
-
-
-2008-06-15T12:56:00.000000Z
-088c89f1102afb320f664786053068bf
-2007-10-20T10:33:12.393658Z
-26151
-nick
-has-props
-
-tasklist.h
-file
-
-
-
-
-2008-06-15T12:56:00.000000Z
-c79ba6779946d02f19fa40dc8852ca2d
-2007-10-25T18:23:36.706614Z
-26196
-nick
-has-props
-
-Makefile.am
-file
-
-
-
-
-2008-06-15T12:56:00.000000Z
-4d19a72f6c0d13b2836336fafe78501c
-2007-10-20T10:33:12.393658Z
-26151
-nick
-has-props
-
diff --git a/plugins/tasklist/.svn/format b/plugins/tasklist/.svn/format
deleted file mode 100644
index 45a4fb7..0000000
--- a/plugins/tasklist/.svn/format
+++ /dev/null
@@ -1 +0,0 @@
-8
diff --git a/plugins/tasklist/.svn/prop-base/Makefile.am.svn-base b/plugins/tasklist/.svn/prop-base/Makefile.am.svn-base
deleted file mode 100644
index 92c8ad7..0000000
--- a/plugins/tasklist/.svn/prop-base/Makefile.am.svn-base
+++ /dev/null
@@ -1,5 +0,0 @@
-K 12
-svn:keywords
-V 2
-Id
-END
diff --git a/plugins/tasklist/.svn/prop-base/tasklist-dialogs.c.svn-base b/plugins/tasklist/.svn/prop-base/tasklist-dialogs.c.svn-base
deleted file mode 100644
index 92c8ad7..0000000
--- a/plugins/tasklist/.svn/prop-base/tasklist-dialogs.c.svn-base
+++ /dev/null
@@ -1,5 +0,0 @@
-K 12
-svn:keywords
-V 2
-Id
-END
diff --git a/plugins/tasklist/.svn/prop-base/tasklist-dialogs.h.svn-base b/plugins/tasklist/.svn/prop-base/tasklist-dialogs.h.svn-base
deleted file mode 100644
index 92c8ad7..0000000
--- a/plugins/tasklist/.svn/prop-base/tasklist-dialogs.h.svn-base
+++ /dev/null
@@ -1,5 +0,0 @@
-K 12
-svn:keywords
-V 2
-Id
-END
diff --git a/plugins/tasklist/.svn/prop-base/tasklist.c.svn-base b/plugins/tasklist/.svn/prop-base/tasklist.c.svn-base
deleted file mode 100644
index 92c8ad7..0000000
--- a/plugins/tasklist/.svn/prop-base/tasklist.c.svn-base
+++ /dev/null
@@ -1,5 +0,0 @@
-K 12
-svn:keywords
-V 2
-Id
-END
diff --git a/plugins/tasklist/.svn/prop-base/tasklist.h.svn-base b/plugins/tasklist/.svn/prop-base/tasklist.h.svn-base
deleted file mode 100644
index 92c8ad7..0000000
--- a/plugins/tasklist/.svn/prop-base/tasklist.h.svn-base
+++ /dev/null
@@ -1,5 +0,0 @@
-K 12
-svn:keywords
-V 2
-Id
-END
diff --git a/plugins/tasklist/.svn/text-base/Makefile.am.svn-base b/plugins/tasklist/.svn/text-base/Makefile.am.svn-base
deleted file mode 100644
index f330f63..0000000
--- a/plugins/tasklist/.svn/text-base/Makefile.am.svn-base
+++ /dev/null
@@ -1,74 +0,0 @@
-# $Id$
-
-INCLUDES = \
- -I$(top_srcdir) \
- -DG_LOG_DOMAIN=\"libtasklist\" \
- -DLOCALEDIR=\"$(localedir)\" \
- -DWNCK_I_KNOW_THIS_IS_UNSTABLE \
- $(PLATFORM_CPPFLAGS)
-
-plugindir = \
- $(libdir)/xfce4/panel-plugins
-
-plugin_LTLIBRARIES = \
- libtasklist.la
-
-libtasklist_la_SOURCES = \
- tasklist.c \
- tasklist.h \
- tasklist-dialogs.c \
- tasklist-dialogs.h
-
-libtasklist_la_CFLAGS = \
- $(GTK_CFLAGS) \
- $(LIBXFCE4UTIL_CFLAGS) \
- $(LIBXFCEGUI4_CFLAGS) \
- $(LIBWNCK_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) \
- $(LIBXFCEGUI4_LIBS) \
- $(LIBWNCK_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/.svn/text-base/tasklist-dialogs.c.svn-base b/plugins/tasklist/.svn/text-base/tasklist-dialogs.c.svn-base
deleted file mode 100644
index 05368b7..0000000
--- a/plugins/tasklist/.svn/text-base/tasklist-dialogs.c.svn-base
+++ /dev/null
@@ -1,232 +0,0 @@
-/* $Id$
- *
- * Copyright (c) 2005-2007 Jasper Huijsmans <jasper at xfce.org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Library 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 Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library 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.
- */
-
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include "tasklist.h"
-#include "tasklist-dialogs.h"
-
-
-
-/* prototypes */
-static void tasklist_all_workspaces_toggled (GtkToggleButton *tb,
- TasklistPlugin *tasklist);
-static void tasklist_grouping_changed (GtkComboBox *cb,
- TasklistPlugin *tasklist);
-static void tasklist_expand_toggled (GtkToggleButton *tb,
- TasklistPlugin *tasklist);
-static void tasklist_flat_buttons_toggled (GtkToggleButton *tb,
- TasklistPlugin *tasklist);
-static void tasklist_show_handle_toggled (GtkToggleButton *tb,
- TasklistPlugin *tasklist);
-static void tasklist_width_changed (GtkSpinButton *sb,
- TasklistPlugin *tasklist);
-static void tasklist_dialog_response (GtkWidget *dlg,
- gint reponse,
- TasklistPlugin *tasklist);
-
-
-
-static void
-tasklist_all_workspaces_toggled (GtkToggleButton *tb,
- TasklistPlugin *tasklist)
-{
- tasklist->all_workspaces = gtk_toggle_button_get_active (tb);
-
- wnck_tasklist_set_include_all_workspaces (WNCK_TASKLIST (tasklist->list),
- tasklist->all_workspaces);
-}
-
-
-
-static void
-tasklist_grouping_changed (GtkComboBox *cb,
- TasklistPlugin *tasklist)
-{
- tasklist->grouping = gtk_combo_box_get_active (cb);
-
- wnck_tasklist_set_grouping (WNCK_TASKLIST (tasklist->list),
- tasklist->grouping);
-}
-
-
-
-static void
-tasklist_expand_toggled (GtkToggleButton *tb,
- TasklistPlugin *tasklist)
-{
- tasklist->expand = gtk_toggle_button_get_active (tb);
-
- xfce_panel_plugin_set_expand (tasklist->panel_plugin, tasklist->expand);
-}
-
-
-
-static void
-tasklist_flat_buttons_toggled (GtkToggleButton *tb,
- TasklistPlugin *tasklist)
-{
- tasklist->flat_buttons = gtk_toggle_button_get_active (tb);
-
- wnck_tasklist_set_button_relief (WNCK_TASKLIST (tasklist->list),
- tasklist->flat_buttons ?
- GTK_RELIEF_NONE : GTK_RELIEF_NORMAL);
-}
-
-
-
-static void
-tasklist_show_handle_toggled (GtkToggleButton *tb,
- TasklistPlugin *tasklist)
-{
- tasklist->show_handles = gtk_toggle_button_get_active (tb);
-
- if (tasklist->show_handles)
- gtk_widget_show (tasklist->handle);
- else
- gtk_widget_hide (tasklist->handle);
-}
-
-
-
-static void
-tasklist_width_changed (GtkSpinButton *sb,
- TasklistPlugin *tasklist)
-{
- tasklist->width = gtk_spin_button_get_value_as_int (sb);
-
- gtk_widget_queue_resize (GTK_WIDGET (tasklist->panel_plugin));
-}
-
-
-
-static void
-tasklist_dialog_response (GtkWidget *dlg,
- gint reponse,
- TasklistPlugin *tasklist)
-{
- g_object_set_data (G_OBJECT (tasklist->panel_plugin), I_("dialog"), NULL);
-
- gtk_widget_destroy (dlg);
- xfce_panel_plugin_unblock_menu (tasklist->panel_plugin);
- tasklist_plugin_write (tasklist);
-}
-
-
-
-void
-tasklist_dialogs_configure (TasklistPlugin *tasklist)
-{
- GtkWidget *dlg, *mainvbox, *vbox, *frame, *cb,
- *hbox, *label, *spin;
-
- xfce_panel_plugin_block_menu (tasklist->panel_plugin);
-
- dlg = xfce_titled_dialog_new_with_buttons (_("Task List"), NULL,
- GTK_DIALOG_DESTROY_WITH_PARENT | GTK_DIALOG_NO_SEPARATOR,
- GTK_STOCK_CLOSE, GTK_RESPONSE_OK,
- NULL);
-
- gtk_window_set_screen (GTK_WINDOW (dlg), gtk_widget_get_screen (GTK_WIDGET (tasklist->panel_plugin)));
-
- g_object_set_data (G_OBJECT (tasklist->panel_plugin), I_("dialog"), dlg);
-
- gtk_window_set_position (GTK_WINDOW (dlg), GTK_WIN_POS_CENTER);
- gtk_window_set_icon_name (GTK_WINDOW (dlg), "xfce4-settings");
-
- g_signal_connect (G_OBJECT (dlg), "response",
- G_CALLBACK (tasklist_dialog_response), tasklist);
-
- gtk_container_set_border_width (GTK_CONTAINER (dlg), 2);
-
- mainvbox = gtk_vbox_new (FALSE, 8);
- gtk_container_set_border_width (GTK_CONTAINER (mainvbox), 5);
- gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dlg)->vbox), mainvbox,
- TRUE, TRUE, 0);
-
- /* Size */
- vbox = gtk_vbox_new (FALSE, 8);
-
- frame = xfce_create_framebox_with_content (_("Appearance"), vbox);
- gtk_box_pack_start (GTK_BOX (mainvbox), frame, FALSE, FALSE, 0);
-
- hbox = gtk_hbox_new (FALSE, 8);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
-
- label = gtk_label_new (_("Minimum Width:"));
- gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5);
- gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
-
- /* an arbitrary max of 4000 should be future proof, right? */
- spin = gtk_spin_button_new_with_range (100, 4000, 10);
- gtk_box_pack_start (GTK_BOX (hbox), spin, FALSE, FALSE, 0);
- gtk_spin_button_set_value (GTK_SPIN_BUTTON (spin), tasklist->width);
- g_signal_connect (G_OBJECT (spin), "value-changed",
- G_CALLBACK (tasklist_width_changed), tasklist);
-
- if (tasklist_using_xinerama (tasklist->panel_plugin))
- {
- cb = gtk_check_button_new_with_mnemonic (_("Use all available space"));
- gtk_box_pack_start (GTK_BOX (vbox), cb, FALSE, FALSE, 0);
- gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (cb), tasklist->expand);
- g_signal_connect (G_OBJECT (cb), "toggled",
- G_CALLBACK (tasklist_expand_toggled), tasklist);
- }
-
- cb = gtk_check_button_new_with_mnemonic (_("Use flat buttons"));
- gtk_box_pack_start (GTK_BOX (vbox), cb, FALSE, FALSE, 0);
- gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (cb), tasklist->flat_buttons);
- g_signal_connect (G_OBJECT (cb), "toggled",
- G_CALLBACK (tasklist_flat_buttons_toggled), tasklist);
-
- cb = gtk_check_button_new_with_mnemonic (_("Show handle"));
- gtk_box_pack_start (GTK_BOX (vbox), cb, FALSE, FALSE, 0);
- gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (cb), tasklist->show_handles);
- g_signal_connect (G_OBJECT (cb), "toggled",
- G_CALLBACK (tasklist_show_handle_toggled), tasklist);
-
- /* Tasks */
- vbox = gtk_vbox_new (FALSE, 8);
-
- frame = xfce_create_framebox_with_content (_("Task List"), vbox);
- gtk_box_pack_start (GTK_BOX (mainvbox), frame, FALSE, FALSE, 0);
-
- cb = gtk_check_button_new_with_mnemonic (_("Show tasks from _all workspaces"));
- gtk_box_pack_start (GTK_BOX (vbox), cb, FALSE, FALSE, 0);
- gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (cb), tasklist->all_workspaces);
- g_signal_connect (G_OBJECT (cb), "toggled",
- G_CALLBACK (tasklist_all_workspaces_toggled), tasklist);
-
- cb = gtk_combo_box_new_text ();
- gtk_box_pack_start (GTK_BOX (vbox), cb, FALSE, FALSE, 0);
-
- /* keep order in sync with WnckTasklistGroupingType */
- gtk_combo_box_append_text (GTK_COMBO_BOX (cb), _("Never group tasks"));
- gtk_combo_box_append_text (GTK_COMBO_BOX (cb), _("Automatically group tasks"));
- gtk_combo_box_append_text (GTK_COMBO_BOX (cb), _("Always group tasks"));
-
- gtk_combo_box_set_active (GTK_COMBO_BOX (cb), tasklist->grouping);
-
- g_signal_connect (G_OBJECT (cb), "changed",
- G_CALLBACK (tasklist_grouping_changed), tasklist);
-
- gtk_widget_show_all (dlg);
-}
diff --git a/plugins/tasklist/.svn/text-base/tasklist-dialogs.h.svn-base b/plugins/tasklist/.svn/text-base/tasklist-dialogs.h.svn-base
deleted file mode 100644
index fc6491d..0000000
--- a/plugins/tasklist/.svn/text-base/tasklist-dialogs.h.svn-base
+++ /dev/null
@@ -1,25 +0,0 @@
-/* $Id$
- *
- * Copyright (c) 2005-2007 Jasper Huijsmans <jasper at xfce.org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Library 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 Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library 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_DIALOGS_H__
-#define __TASKLIST_DIALOGS_H__
-
-void tasklist_dialogs_configure (TasklistPlugin *tasklist) G_GNUC_INTERNAL;
-
-#endif /* !__TASKLIST_DIALOGS_H__ */
diff --git a/plugins/tasklist/.svn/text-base/tasklist.c.svn-base b/plugins/tasklist/.svn/text-base/tasklist.c.svn-base
deleted file mode 100644
index 6b4e330..0000000
--- a/plugins/tasklist/.svn/text-base/tasklist.c.svn-base
+++ /dev/null
@@ -1,477 +0,0 @@
-/* $Id$
- *
- * Copyright (c) 2005-2007 Jasper Huijsmans <jasper at xfce.org>
- * Copyright (c) 2007 Nick Schermer <nick at xfce.org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Library 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 Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library 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.
- */
-
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
-
-#include <libwnck/libwnck.h>
-#include <libxfce4util/libxfce4util.h>
-#include <libxfce4panel/xfce-hvbox.h>
-
-#include "tasklist.h"
-#include "tasklist-dialogs.h"
-
-#define TASKLIST_HANDLE_SIZE (8)
-
-
-/* prototypes */
-static gboolean tasklist_handle_exposed (GtkWidget *widget,
- GdkEventExpose *event,
- TasklistPlugin *tasklist);
-static GdkPixbuf *tasklist_icon_loader (const gchar *name,
- gint size,
- guint flags,
- TasklistPlugin *tasklist);
-static TasklistPlugin *tasklist_plugin_new (XfcePanelPlugin *panel_plugin);
-static void tasklist_plugin_screen_changed (TasklistPlugin *tasklist,
- GdkScreen *previous_screen);
-static void tasklist_plugin_orientation_changed (TasklistPlugin *tasklist,
- GtkOrientation orientation);
-static gboolean tasklist_plugin_size_changed (TasklistPlugin *tasklist,
- guint size);
-static void tasklist_plugin_size_request (TasklistPlugin *tasklist,
- GtkRequisition *requisition);
-static void tasklist_plugin_read (TasklistPlugin *tasklist);
-static void tasklist_plugin_free (TasklistPlugin *tasklist);
-static void tasklist_plugin_construct (XfcePanelPlugin *panel_plugin);
-
-
-
-/* register with the panel */
-XFCE_PANEL_PLUGIN_REGISTER_INTERNAL (tasklist_plugin_construct);
-
-
-
-gboolean
-tasklist_using_xinerama (XfcePanelPlugin *panel_plugin)
-{
- return (gdk_screen_get_n_monitors (gtk_widget_get_screen (GTK_WIDGET (panel_plugin))) > 1);
-}
-
-
-
-static gboolean
-tasklist_handle_exposed (GtkWidget *widget,
- GdkEventExpose *event,
- TasklistPlugin *tasklist)
-{
- GtkOrientation orientation;
- gint x, y, w, h;
-
- if (GTK_WIDGET_DRAWABLE (widget))
- {
- /* get the panel orientation */
- orientation = xfce_panel_plugin_get_orientation (tasklist->panel_plugin);
-
- /* set sizes */
- x = widget->allocation.x;
- y = widget->allocation.y;
- w = widget->allocation.width;
- h = widget->allocation.height;
-
- if (orientation == GTK_ORIENTATION_HORIZONTAL)
- {
- y += widget->style->ythickness;
- h -= 2 * widget->style->ythickness;
- }
- else
- {
- x += widget->style->xthickness;
- w -= 2 * widget->style->xthickness;
- }
-
- gtk_paint_handle (widget->style, widget->window,
- GTK_WIDGET_STATE (widget), GTK_SHADOW_NONE,
- &(event->area), widget, "handlebox",
- x, y, w, h, orientation);
-
- return TRUE;
- }
-
- return FALSE;
-}
-
-
-
-static GdkPixbuf *
-tasklist_icon_loader (const gchar *name,
- gint size,
- guint flags,
- TasklistPlugin *tasklist)
-{
- GdkPixbuf *pixbuf = NULL;
- gchar *base = NULL;
- const gchar *p;
-
- /* do nothing on invalid names */
- if (G_UNLIKELY (name == NULL || *name == '\0'))
- return NULL;
-
- if (g_path_is_absolute (name))
- {
- if (g_file_test (name, G_FILE_TEST_EXISTS))
- {
- /* directly load the file */
- pixbuf = gdk_pixbuf_new_from_file_at_size (name, size, size, NULL);
- }
- else
- {
- /* get the base name */
- base = g_path_get_basename (name);
-
- /* use this function to try again */
- pixbuf = tasklist_icon_loader (base, size, flags, tasklist);
-
- /* cleanup */
- g_free (base);
- }
- }
- else
- {
- /* strip prefix */
- p = strrchr (name, '.');
- if (G_UNLIKELY (p))
- base = g_strndup (name, p - name);
-
- /* load the icon */
- pixbuf = gtk_icon_theme_load_icon (tasklist->icon_theme, base ? base : name, size, 0, NULL);
-
- /* cleanup */
- g_free (base);
- }
-
- return pixbuf;
-}
-
-
-
-static TasklistPlugin *
-tasklist_plugin_new (XfcePanelPlugin *panel_plugin)
-{
- TasklistPlugin *tasklist;
- GdkScreen *screen;
- gint screen_n;
-
- /* allocate structure */
- tasklist = panel_slice_new0 (TasklistPlugin);
-
- /* init data */
- tasklist->panel_plugin = panel_plugin;
-
- /* read settings */
- tasklist_plugin_read (tasklist);
-
- /* create hvbox */
- tasklist->box = xfce_hvbox_new (xfce_panel_plugin_get_orientation (panel_plugin), FALSE, 0);
- gtk_container_add (GTK_CONTAINER (panel_plugin), tasklist->box);
- gtk_widget_show (tasklist->box);
-
- /* create handle */
- tasklist->handle = gtk_alignment_new (0.0, 0.0, 0.0, 0.0);
- gtk_widget_set_size_request (tasklist->handle, TASKLIST_HANDLE_SIZE, TASKLIST_HANDLE_SIZE);
- gtk_box_pack_start (GTK_BOX (tasklist->box), tasklist->handle, FALSE, FALSE, 0);
- g_signal_connect (tasklist->handle, "expose-event", G_CALLBACK (tasklist_handle_exposed), tasklist);
- if (tasklist->show_handles)
- gtk_widget_show (tasklist->handle);
-
- /* get the current screen number */
- screen = gtk_widget_get_screen (GTK_WIDGET (panel_plugin));
- screen_n = gdk_screen_get_number (screen);
-
- /* set the icon theme */
- tasklist->icon_theme = gtk_icon_theme_get_for_screen (screen);
-
- /* create tasklist */
- tasklist->list = wnck_tasklist_new (wnck_screen_get (screen_n));
- gtk_box_pack_start (GTK_BOX (tasklist->box), tasklist->list, FALSE, FALSE, 0);
- gtk_widget_show (tasklist->list);
-
- /* set the tasklist settings */
- wnck_tasklist_set_include_all_workspaces (WNCK_TASKLIST (tasklist->list), tasklist->all_workspaces);
- wnck_tasklist_set_grouping (WNCK_TASKLIST (tasklist->list), tasklist->grouping);
- wnck_tasklist_set_button_relief (WNCK_TASKLIST (tasklist->list), tasklist->flat_buttons ? GTK_RELIEF_NONE : GTK_RELIEF_NORMAL);
- wnck_tasklist_set_icon_loader (WNCK_TASKLIST (tasklist->list), (WnckLoadIconFunction) tasklist_icon_loader, tasklist, NULL);
-
- return tasklist;
-}
-
-
-
-static void
-tasklist_plugin_screen_changed (TasklistPlugin *tasklist,
- GdkScreen *previous_screen)
-{
- GdkScreen *screen;
- WnckScreen *wnck_screen;
-
- /* get the new screen */
- screen = gtk_widget_get_screen (GTK_WIDGET (tasklist->panel_plugin));
- if (G_UNLIKELY (screen == NULL))
- screen = gdk_screen_get_default ();
-
- /* get the wnck screen */
- wnck_screen = wnck_screen_get (gdk_screen_get_number (screen));
-
- /* set the new tasklist screen */
- wnck_tasklist_set_screen (WNCK_TASKLIST (tasklist->list), wnck_screen);
-
- /* set the icon theme */
- tasklist->icon_theme = gtk_icon_theme_get_for_screen (screen);
-}
-
-
-
-static void
-tasklist_plugin_orientation_changed (TasklistPlugin *tasklist,
- GtkOrientation orientation)
-{
- /* set the new orientation of the hvbox */
- xfce_hvbox_set_orientation (XFCE_HVBOX (tasklist->box), orientation);
-
- /* redraw the handle */
- gtk_widget_queue_draw (tasklist->handle);
-}
-
-
-
-gboolean
-tasklist_plugin_size_changed (TasklistPlugin *tasklist,
- guint size)
-{
- /* size is handled in the size_request function */
- return TRUE;
-}
-
-
-
-static void
-tasklist_plugin_size_request (TasklistPlugin *tasklist,
- GtkRequisition *requisition)
-{
- const gint *size_hints;
- gint length;
- gint size;
- GtkOrientation orientation;
-
- /* get the size hints */
- size_hints = wnck_tasklist_get_size_hint_list (WNCK_TASKLIST (tasklist->list), &length);
-
- /* check for pairs of 2 */
- if (G_LIKELY (length > 0))
- {
- /* get the first size */
- size = size_hints[0];
-
- /* add the handle size */
- if (tasklist->show_handles)
- size += TASKLIST_HANDLE_SIZE;
-
- /* use the requested size when it is bigger then the prefered size */
- if (tasklist->width > size)
- size = tasklist->width;
-
- /* get plugin orientation */
- orientation = xfce_panel_plugin_get_orientation (tasklist->panel_plugin);
-
- /* set the panel size */
- requisition->width = requisition->height = xfce_panel_plugin_get_size (tasklist->panel_plugin);
-
- /* set the requested plugin size */
- if (orientation == GTK_ORIENTATION_HORIZONTAL)
- requisition->width = size;
- else
- requisition->height = size;
-
- /* save the requested size */
- tasklist->req_size = size;
- }
-}
-
-
-static void
-tasklist_plugin_size_allocate (TasklistPlugin *tasklist,
- GtkAllocation *allocation)
-{
- GtkOrientation orientation;
- gint a_size, p_size;
-
- /* get orientation */
- orientation = xfce_panel_plugin_get_orientation (tasklist->panel_plugin);
-
- /* get plugin size */
- p_size = xfce_panel_plugin_get_size (tasklist->panel_plugin);
-
- if (orientation == GTK_ORIENTATION_HORIZONTAL)
- a_size = MIN (tasklist->req_size, allocation->width);
- else
- a_size = MIN (tasklist->req_size, allocation->height);
-
- if (tasklist->show_handles)
- a_size -= TASKLIST_HANDLE_SIZE;
-
- /* force the size request of the taskbar */
- if (orientation == GTK_ORIENTATION_HORIZONTAL)
- gtk_widget_set_size_request (GTK_WIDGET (tasklist->list), a_size, p_size);
- else
- gtk_widget_set_size_request (GTK_WIDGET (tasklist->list), p_size, a_size);
-}
-
-
-static void
-tasklist_plugin_read (TasklistPlugin *tasklist)
-{
- gchar *file;
- XfceRc *rc;
-
- /* set defaults */
- tasklist->grouping = WNCK_TASKLIST_AUTO_GROUP;
- tasklist->all_workspaces = FALSE;
- tasklist->expand = TRUE;
- tasklist->flat_buttons = TRUE;
- tasklist->show_handles = TRUE;
- tasklist->width = 300;
-
- /* get rc file name */
- file = xfce_panel_plugin_lookup_rc_file (tasklist->panel_plugin);
-
- if (G_LIKELY (file))
- {
- /* open the file, readonly */
- rc = xfce_rc_simple_open (file, TRUE);
-
- /* cleanup */
- g_free (file);
-
- if (G_LIKELY (rc))
- {
- /* read settings */
- tasklist->grouping = xfce_rc_read_int_entry (rc, "grouping", tasklist->grouping);
- tasklist->all_workspaces = xfce_rc_read_bool_entry (rc, "all_workspaces", tasklist->all_workspaces);
- tasklist->flat_buttons = xfce_rc_read_bool_entry (rc, "flat_buttons", tasklist->flat_buttons);
- tasklist->show_handles = xfce_rc_read_bool_entry (rc, "show_handles", tasklist->show_handles);
- tasklist->width = xfce_rc_read_int_entry (rc, "width",tasklist->width);
-
- /* only set expand flag if xinerama is used */
- if (tasklist_using_xinerama (tasklist->panel_plugin))
- tasklist->expand = xfce_rc_read_bool_entry (rc, "expand", tasklist->expand);
-
- /* close the rc file */
- xfce_rc_close (rc);
- }
- }
-}
-
-
-
-void
-tasklist_plugin_write (TasklistPlugin *tasklist)
-{
- gchar *file;
- XfceRc *rc;
-
- /* get rc file name, create it if needed */
- file = xfce_panel_plugin_save_location (tasklist->panel_plugin, TRUE);
-
- if (G_LIKELY (file))
- {
- /* open the file, writable */
- rc = xfce_rc_simple_open (file, FALSE);
-
- /* cleanup */
- g_free (file);
-
- if (G_LIKELY (rc))
- {
- /* write settings */
- xfce_rc_write_int_entry (rc, "grouping", tasklist->grouping);
- xfce_rc_write_int_entry (rc, "width", tasklist->width);
- xfce_rc_write_bool_entry (rc, "all_workspaces", tasklist->all_workspaces);
- xfce_rc_write_bool_entry (rc, "expand", tasklist->expand);
- xfce_rc_write_bool_entry (rc, "flat_buttons", tasklist->flat_buttons);
- xfce_rc_write_bool_entry (rc, "show_handles", tasklist->show_handles);
-
- /* close the rc file */
- xfce_rc_close (rc);
- }
- }
-}
-
-
-
-static void
-tasklist_plugin_free (TasklistPlugin *tasklist)
-{
- GtkWidget *dialog;
-
- /* destroy the dialog */
- dialog = g_object_get_data (G_OBJECT (tasklist->panel_plugin), I_("dialog"));
- if (dialog)
- gtk_widget_destroy (dialog);
-
- /* disconnect screen changed signal */
- g_signal_handler_disconnect (G_OBJECT (tasklist->panel_plugin), tasklist->screen_changed_id);
-
- /* free slice */
- panel_slice_free (TasklistPlugin, tasklist);
-}
-
-
-
-static void
-tasklist_plugin_construct (XfcePanelPlugin *panel_plugin)
-{
- TasklistPlugin *tasklist;
-
- /* create the tray panel plugin */
- tasklist = tasklist_plugin_new (panel_plugin);
-
- /* set the action widgets and show configure */
- xfce_panel_plugin_add_action_widget (panel_plugin, tasklist->handle);
- xfce_panel_plugin_menu_show_configure (panel_plugin);
-
- /* whether to expand the plugin */
- xfce_panel_plugin_set_expand (panel_plugin, tasklist->expand);
-
- /* connect plugin signals */
- g_signal_connect_swapped (G_OBJECT (panel_plugin), "orientation-changed",
- G_CALLBACK (tasklist_plugin_orientation_changed), tasklist);
- g_signal_connect_swapped (G_OBJECT (panel_plugin), "size-changed",
- G_CALLBACK (tasklist_plugin_size_changed), tasklist);
- g_signal_connect_swapped (G_OBJECT (panel_plugin), "size-request",
- G_CALLBACK (tasklist_plugin_size_request), tasklist);
- g_signal_connect_swapped (G_OBJECT (panel_plugin), "size-allocate",
- G_CALLBACK (tasklist_plugin_size_allocate), tasklist);
- g_signal_connect_swapped (G_OBJECT (panel_plugin), "save",
- G_CALLBACK (tasklist_plugin_write), tasklist);
- g_signal_connect_swapped (G_OBJECT (panel_plugin), "free-data",
- G_CALLBACK (tasklist_plugin_free), tasklist);
- g_signal_connect_swapped (G_OBJECT (panel_plugin), "configure-plugin",
- G_CALLBACK (tasklist_dialogs_configure), tasklist);
-
- /* screen changed signal */
- tasklist->screen_changed_id =
- g_signal_connect_swapped (G_OBJECT (panel_plugin), "screen-changed",
- G_CALLBACK (tasklist_plugin_screen_changed), tasklist);
-}
diff --git a/plugins/tasklist/.svn/text-base/tasklist.desktop.in.in.svn-base b/plugins/tasklist/.svn/text-base/tasklist.desktop.in.in.svn-base
deleted file mode 100644
index dcb6ca4..0000000
--- a/plugins/tasklist/.svn/text-base/tasklist.desktop.in.in.svn-base
+++ /dev/null
@@ -1,9 +0,0 @@
-[Xfce Panel]
-Type=X-XFCE-PanelPlugin
-Encoding=UTF-8
-_Name=Task List
-_Comment=Show all running applications
-Icon=xfce4-taskbar
-X-XFCE-Module=tasklist
-X-XFCE-Module-Path=@libdir@/xfce4/panel-plugins
-
diff --git a/plugins/tasklist/.svn/text-base/tasklist.h.svn-base b/plugins/tasklist/.svn/text-base/tasklist.h.svn-base
deleted file mode 100644
index 2f6fba8..0000000
--- a/plugins/tasklist/.svn/text-base/tasklist.h.svn-base
+++ /dev/null
@@ -1,63 +0,0 @@
-/* $Id$
- *
- * Copyright (c) 2005-2007 Jasper Huijsmans <jasper at xfce.org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Library 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 Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library 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_H__
-#define __TASKLIST_H__
-
-#include <gtk/gtk.h>
-#include <libwnck/libwnck.h>
-#include <libxfcegui4/libxfcegui4.h>
-#include <libxfce4panel/xfce-panel-plugin.h>
-
-typedef struct _TasklistPlugin TasklistPlugin;
-
-struct _TasklistPlugin
-{
- /* the panel plugin */
- XfcePanelPlugin *panel_plugin;
-
- /* widgets */
- GtkWidget *box;
- GtkWidget *handle;
- GtkWidget *list;
-
- /* signals */
- gint screen_changed_id;
-
- /* icon theme */
- GtkIconTheme *icon_theme;
-
- /* requested width */
- gint req_size;
-
- /* settings */
- gint width;
- WnckTasklistGroupingType grouping;
- guint all_workspaces : 1;
- guint show_label : 1;
- guint expand : 1;
- guint flat_buttons : 1;
- guint show_handles : 1;
-};
-
-
-void tasklist_plugin_write (TasklistPlugin *tasklist) G_GNUC_INTERNAL;
-gboolean tasklist_using_xinerama (XfcePanelPlugin *panel_plugin) G_GNUC_INTERNAL;
-
-#endif /* !__TASKLIST_H__ */
More information about the Xfce4-commits
mailing list