1
From 7307f54ea39f376d6938f81ea1712e8ce49f7af9 Mon Sep 17 00:00:00 2001
2
From: Lionel Le Folgoc <lionel@lefolgoc.net>
3
Date: Thu, 24 Feb 2011 22:03:29 +0100
4
Subject: set up indicators with only one function (some set here where missing a few signal handlers)
6
Patch slightly modified for Xubuntu to add the po/POTFILES.skip change.
8
panel-plugin/indicator.c | 19 +------------------
9
1 files changed, 1 insertions(+), 18 deletions(-)
11
diff --git a/panel-plugin/indicator.c b/panel-plugin/indicator.c
12
index 1c66999..52b8ece 100644
13
--- a/panel-plugin/indicator.c
14
+++ b/panel-plugin/indicator.c
15
@@ -377,24 +377,7 @@ load_module (const gchar * name, GtkWidget * menu)
17
for (entry = entries; entry != NULL; entry = g_list_next(entry)) {
18
IndicatorObjectEntry * entrydata = (IndicatorObjectEntry *)entry->data;
20
- GtkWidget * menuitem = gtk_menu_item_new();
21
- GtkWidget * hbox = gtk_hbox_new(FALSE, 3);
22
- if (entrydata->image != NULL) {
23
- gtk_box_pack_start(GTK_BOX(hbox), GTK_WIDGET(entrydata->image), FALSE, FALSE, 0);
25
- if (entrydata->label != NULL) {
26
- gtk_box_pack_start(GTK_BOX(hbox), GTK_WIDGET(entrydata->label), FALSE, FALSE, 0);
28
- gtk_container_add(GTK_CONTAINER(menuitem), hbox);
29
- gtk_widget_show(hbox);
31
- if (entrydata->menu != NULL) {
32
- gtk_menu_item_set_submenu(GTK_MENU_ITEM(menuitem), GTK_WIDGET(entrydata->menu));
35
- gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem);
36
- gtk_widget_show(menuitem);
37
+ entry_added(io, entrydata, menu);
41
--- xfce4-indicator-plugin-0.2.0.orig/po/POTFILES.skip
42
+++ xfce4-indicator-plugin-0.2.0/po/POTFILES.skip
44
.pc/0001-Add-entry_-added-removed-signal-handlers.patch/panel-plugin/indicator.c
45
+.pc/0002-set-up-indicators-with-only-one-function-some-set-he.patch/panel-plugin/indicator.c