[gnome-panel] applets: don't set background widgets
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] applets: don't set background widgets
- Date: Mon, 24 Nov 2014 03:35:45 +0000 (UTC)
commit 3a9de518a45326c1926f8f736e08e5fc4c3faec9
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Fri Nov 21 04:46:11 2014 +0200
applets: don't set background widgets
There is no need to set background widget for in process applets.
applets/clock/clock.c | 3 ---
applets/fish/fish.c | 3 ---
applets/notification_area/main.c | 3 ---
applets/wncklet/showdesktop.c | 3 ---
applets/wncklet/window-list.c | 3 ---
applets/wncklet/window-menu.c | 3 ---
applets/wncklet/workspace-switcher.c | 3 ---
7 files changed, 0 insertions(+), 21 deletions(-)
---
diff --git a/applets/clock/clock.c b/applets/clock/clock.c
index d9964ba..93cc0e9 100644
--- a/applets/clock/clock.c
+++ b/applets/clock/clock.c
@@ -1345,9 +1345,6 @@ fill_clock_applet (PanelApplet *applet)
G_CALLBACK (panel_button_change_pixel_size),
cd);
- panel_applet_set_background_widget (PANEL_APPLET (cd->applet),
- GTK_WIDGET (cd->applet));
-
action_group = g_simple_action_group_new ();
g_action_map_add_action_entries (G_ACTION_MAP (action_group),
clock_menu_actions,
diff --git a/applets/fish/fish.c b/applets/fish/fish.c
index c836b40..fdc73d3 100644
--- a/applets/fish/fish.c
+++ b/applets/fish/fish.c
@@ -1593,9 +1593,6 @@ fish_applet_init (FishApplet *fish)
panel_applet_set_flags (PANEL_APPLET (fish),
PANEL_APPLET_EXPAND_MINOR);
-
- panel_applet_set_background_widget (PANEL_APPLET (fish),
- GTK_WIDGET (fish));
}
static void
diff --git a/applets/notification_area/main.c b/applets/notification_area/main.c
index d871a2c..16b88dd 100644
--- a/applets/notification_area/main.c
+++ b/applets/notification_area/main.c
@@ -244,9 +244,6 @@ na_tray_applet_init (NaTrayApplet *applet)
panel_applet_set_flags (PANEL_APPLET (applet),
PANEL_APPLET_HAS_HANDLE|PANEL_APPLET_EXPAND_MINOR);
- panel_applet_set_background_widget (PANEL_APPLET (applet),
- GTK_WIDGET (applet));
-
force_no_focus_padding (GTK_WIDGET (applet));
}
diff --git a/applets/wncklet/showdesktop.c b/applets/wncklet/showdesktop.c
index 49f38aa..1790059 100644
--- a/applets/wncklet/showdesktop.c
+++ b/applets/wncklet/showdesktop.c
@@ -457,9 +457,6 @@ show_desktop_applet_fill (PanelApplet *applet)
G_CALLBACK (applet_change_orient),
sdd);
- panel_applet_set_background_widget (PANEL_APPLET (sdd->applet),
- GTK_WIDGET (sdd->applet));
-
g_signal_connect (G_OBJECT (sdd->applet),
"destroy",
G_CALLBACK (applet_destroyed),
diff --git a/applets/wncklet/window-list.c b/applets/wncklet/window-list.c
index 9496298..96d89cc 100644
--- a/applets/wncklet/window-list.c
+++ b/applets/wncklet/window-list.c
@@ -414,9 +414,6 @@ window_list_applet_fill (PanelApplet *applet)
G_CALLBACK (applet_change_background),
tasklist);
- panel_applet_set_background_widget (PANEL_APPLET (tasklist->applet),
- GTK_WIDGET (tasklist->applet));
-
action_group = g_simple_action_group_new ();
g_action_map_add_action_entries (G_ACTION_MAP (action_group),
tasklist_menu_actions,
diff --git a/applets/wncklet/window-menu.c b/applets/wncklet/window-menu.c
index b9dc587..2d5a745 100644
--- a/applets/wncklet/window-menu.c
+++ b/applets/wncklet/window-menu.c
@@ -211,9 +211,6 @@ window_menu_applet_fill (PanelApplet *applet)
gtk_container_add (GTK_CONTAINER (window_menu->applet),
window_menu->selector);
- panel_applet_set_background_widget (PANEL_APPLET (window_menu->applet),
- GTK_WIDGET (window_menu->selector));
-
g_signal_connect (window_menu->applet, "key_press_event",
G_CALLBACK (window_menu_key_press_event), window_menu);
g_signal_connect (window_menu->applet, "size-allocate",
diff --git a/applets/wncklet/workspace-switcher.c b/applets/wncklet/workspace-switcher.c
index dc3f1bf..51d7cec 100644
--- a/applets/wncklet/workspace-switcher.c
+++ b/applets/wncklet/workspace-switcher.c
@@ -374,9 +374,6 @@ workspace_switcher_applet_fill (PanelApplet *applet)
gtk_widget_show (pager->applet);
- panel_applet_set_background_widget (PANEL_APPLET (pager->applet),
- GTK_WIDGET (pager->applet));
-
action_group = g_simple_action_group_new ();
g_action_map_add_action_entries (G_ACTION_MAP (action_group),
pager_menu_actions,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]