[gnome-panel] wncklet: don't connect to change_background signal



commit 4d1d6044f3306b8a297e501f1b62158c7ab2ea07
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Wed Jul 27 00:43:33 2016 +0300

    wncklet: don't connect to change_background signal
    
    It is emitted only for out-of-process applets.

 applets/wncklet/window-list.c        |   14 --------------
 applets/wncklet/workspace-switcher.c |   13 -------------
 2 files changed, 0 insertions(+), 27 deletions(-)
---
diff --git a/applets/wncklet/window-list.c b/applets/wncklet/window-list.c
index c4cb990..d6e3367 100644
--- a/applets/wncklet/window-list.c
+++ b/applets/wncklet/window-list.c
@@ -120,16 +120,6 @@ applet_change_orient (PanelApplet       *applet,
 }
 
 static void
-applet_change_background (PanelApplet     *applet,
-                         cairo_pattern_t *pattern,
-                         TasklistData    *tasklist)
-{
-        wnck_tasklist_set_button_relief (WNCK_TASKLIST (tasklist->tasklist),
-                                         pattern != NULL ? GTK_RELIEF_NONE
-                                                         : GTK_RELIEF_NORMAL);
-}
-
-static void
 destroy_tasklist(GtkWidget * widget, TasklistData *tasklist)
 {
        g_object_unref (tasklist->settings);
@@ -409,10 +399,6 @@ window_list_applet_fill (PanelApplet *applet)
                          "change_orient",
                          G_CALLBACK (applet_change_orient),
                          tasklist);
-       g_signal_connect (G_OBJECT (tasklist->applet),
-                         "change_background",
-                         G_CALLBACK (applet_change_background),
-                         tasklist);
 
        action_group = g_simple_action_group_new ();
        g_action_map_add_action_entries (G_ACTION_MAP (action_group),
diff --git a/applets/wncklet/workspace-switcher.c b/applets/wncklet/workspace-switcher.c
index 51d7cec..fb1bb01 100644
--- a/applets/wncklet/workspace-switcher.c
+++ b/applets/wncklet/workspace-switcher.c
@@ -199,15 +199,6 @@ applet_change_orient (PanelApplet       *applet,
 }
 
 static void
-applet_change_background (PanelApplet               *applet,
-                          cairo_pattern_t           *pattern,
-                         PagerData                 *pager)
-{
-        wnck_pager_set_shadow_type (WNCK_PAGER (pager->pager),
-                                    pattern != NULL ? GTK_SHADOW_NONE : GTK_SHADOW_IN);
-}
-
-static void
 destroy_pager(GtkWidget * widget, PagerData *pager)
 {
        g_object_unref (G_OBJECT (pager->settings));
@@ -367,10 +358,6 @@ workspace_switcher_applet_fill (PanelApplet *applet)
                          "change_orient",
                          G_CALLBACK (applet_change_orient),
                          pager);
-       g_signal_connect (G_OBJECT (pager->applet),
-                         "change_background",
-                         G_CALLBACK (applet_change_background),
-                         pager);
 
        gtk_widget_show (pager->applet);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]