[gnome-applets] don't set background widget



commit e09e9b74d49db8c2d5cda8b638579f12a192a037
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Tue Apr 14 12:01:20 2015 +0300

    don't set background widget
    
    Not needed since libpanel-applet 3.16.1 version.

 accessx-status/applet.c          |    2 --
 battstat/battstat_applet.c       |    4 ----
 charpick/charpick.c              |    2 --
 configure.ac                     |    2 +-
 cpufreq/src/cpufreq-applet.c     |    1 -
 drivemount/drivemount.c          |    1 -
 geyes/geyes.c                    |    3 ---
 gweather/gweather-applet.c       |    3 ---
 modemlights/modem-applet.c       |    3 ---
 multiload/main.c                 |    3 +--
 stickynotes/stickynotes_applet.c |    2 --
 trashapplet/src/trashapplet.c    |    4 ----
 windowpicker/src/applet.c        |    1 -
 13 files changed, 2 insertions(+), 29 deletions(-)
---
diff --git a/accessx-status/applet.c b/accessx-status/applet.c
index f28e936..e264f3e 100644
--- a/accessx-status/applet.c
+++ b/accessx-status/applet.c
@@ -1303,8 +1303,6 @@ accessx_status_applet_fill (PanelApplet *applet)
                accessx_status_applet_reset (sapplet);
        }
 
-       panel_applet_set_background_widget (sapplet->applet, GTK_WIDGET (sapplet->applet));
-
        return TRUE;
 }
 
diff --git a/battstat/battstat_applet.c b/battstat/battstat_applet.c
index 650a76b..715435d 100644
--- a/battstat/battstat_applet.c
+++ b/battstat/battstat_applet.c
@@ -1497,10 +1497,6 @@ create_layout(ProgressData *battstat)
 {
   if (DEBUG) g_print("create_layout()\n");
 
-  /* Have our background automatically painted. */
-  panel_applet_set_background_widget( PANEL_APPLET( battstat->applet ),
-                                      GTK_WIDGET( battstat->applet ) );
-
   /* Allocate the four widgets that we need. */
   battstat->table = gtk_table_new( 3, 3, FALSE );
   battstat->percent = gtk_label_new( "" );
diff --git a/charpick/charpick.c b/charpick/charpick.c
index 13d65de..03e9d92 100644
--- a/charpick/charpick.c
+++ b/charpick/charpick.c
@@ -732,8 +732,6 @@ charpicker_applet_fill (PanelApplet *applet)
   
   gtk_window_set_default_icon_name ("accessories-character-map");
 
-  panel_applet_set_background_widget (applet, GTK_WIDGET (applet));
-
   panel_applet_set_flags (applet, PANEL_APPLET_EXPAND_MINOR);
    
   curr_data = g_new0 (charpick_data, 1);
diff --git a/configure.ac b/configure.ac
index 25f91f4..52e6403 100644
--- a/configure.ac
+++ b/configure.ac
@@ -15,7 +15,7 @@ dnl ***************************************************************************
 GTK_REQUIRED=3.15.2
 GLIB_REQUIRED=2.44.0
 GIO_REQUIRED=2.26.0
-LIBPANEL_REQUIRED=3.15.2
+LIBPANEL_REQUIRED=3.16.1
 LIBGTOP_REQUIRED=2.11.92
 LIBXKLAVIER_REQUIRED=4.0
 LIBWNCK_REQUIRED=2.91.0
diff --git a/cpufreq/src/cpufreq-applet.c b/cpufreq/src/cpufreq-applet.c
index 437ec81..967da83 100644
--- a/cpufreq/src/cpufreq-applet.c
+++ b/cpufreq/src/cpufreq-applet.c
@@ -185,7 +185,6 @@ cpufreq_applet_init (CPUFreqApplet *applet)
        applet->need_refresh = TRUE;
 
         panel_applet_set_flags (PANEL_APPLET (applet), PANEL_APPLET_EXPAND_MINOR);
-       panel_applet_set_background_widget (PANEL_APPLET (applet), GTK_WIDGET (applet));
 
         applet->orient = panel_applet_get_orient (PANEL_APPLET (applet));
 
diff --git a/drivemount/drivemount.c b/drivemount/drivemount.c
index 1396f00..acbee38 100644
--- a/drivemount/drivemount.c
+++ b/drivemount/drivemount.c
@@ -166,7 +166,6 @@ applet_factory (PanelApplet *applet,
        gtk_window_set_default_icon_name ("media-floppy");
 
        panel_applet_set_flags (applet, PANEL_APPLET_EXPAND_MINOR);
-       panel_applet_set_background_widget (applet, GTK_WIDGET (applet));
 
        drive_list = drive_list_new ();
        gtk_container_add (GTK_CONTAINER (applet), drive_list);
diff --git a/geyes/geyes.c b/geyes/geyes.c
index f1c066b..31dbee8 100644
--- a/geyes/geyes.c
+++ b/geyes/geyes.c
@@ -408,9 +408,6 @@ geyes_applet_fill (PanelApplet *applet)
        set_atk_name_description (GTK_WIDGET (eyes_applet->applet), _("Eyes"), 
                        _("The eyes look in the direction of the mouse pointer"));
 
-        /* FIXMEchpe this is a bit weird; make this cleaner in libpanel-applet? */
-        panel_applet_set_background_widget (eyes_applet->applet, GTK_WIDGET (eyes_applet->applet));
-
        g_signal_connect (eyes_applet->vbox,
                          "destroy",
                          G_CALLBACK (destroy_cb),
diff --git a/gweather/gweather-applet.c b/gweather/gweather-applet.c
index 78add15..bf73792 100644
--- a/gweather/gweather-applet.c
+++ b/gweather/gweather-applet.c
@@ -333,9 +333,6 @@ void gweather_applet_create (GWeatherApplet *gw_applet)
 
     panel_applet_set_flags (gw_applet->applet, PANEL_APPLET_EXPAND_MINOR);
 
-    panel_applet_set_background_widget(gw_applet->applet,
-                                       GTK_WIDGET(gw_applet->applet));
-
     g_set_application_name (_("Weather Report"));
 
     gtk_window_set_default_icon_name ("weather-storm");
diff --git a/modemlights/modem-applet.c b/modemlights/modem-applet.c
index bfc3c5a..7f8468c 100644
--- a/modemlights/modem-applet.c
+++ b/modemlights/modem-applet.c
@@ -1021,9 +1021,6 @@ modem_applet_fill (ModemApplet *applet)
   gtk_widget_insert_action_group (GTK_WIDGET (applet), "modem",
                                   G_ACTION_GROUP (priv->action_group));
 
-  panel_applet_set_background_widget (PANEL_APPLET (applet),
-                                      GTK_WIDGET (applet));
-
   g_signal_connect (GTK_WIDGET (applet), "size-allocate",
                     G_CALLBACK (modem_applet_size_allocate), applet);
 
diff --git a/multiload/main.c b/multiload/main.c
index 5b2161f..dbd33f0 100644
--- a/multiload/main.c
+++ b/multiload/main.c
@@ -490,8 +490,7 @@ multiload_applet_new(PanelApplet *applet, const gchar *iid, gpointer data)
        g_set_application_name (_("System Monitor"));
 
        gtk_window_set_default_icon_name ("utilities-system-monitor");
-       panel_applet_set_background_widget (applet, GTK_WIDGET(applet));
-       
+
        ma->settings = panel_applet_settings_new (applet, MULTILOAD_SCHEMA);
        panel_applet_set_flags (applet, PANEL_APPLET_EXPAND_MINOR);
 
diff --git a/stickynotes/stickynotes_applet.c b/stickynotes/stickynotes_applet.c
index 9f7dd9b..1d81b95 100644
--- a/stickynotes/stickynotes_applet.c
+++ b/stickynotes/stickynotes_applet.c
@@ -376,8 +376,6 @@ stickynotes_applet_new (PanelApplet *panel_applet)
        g_signal_connect(G_OBJECT(applet->w_applet), "destroy",
                        G_CALLBACK(stickynotes_destroy), NULL);
 
-       panel_applet_set_background_widget (panel_applet, applet->w_applet);
-
        atk_obj = gtk_widget_get_accessible (applet->w_applet);
        atk_object_set_name (atk_obj, _("Sticky Notes"));
 
diff --git a/trashapplet/src/trashapplet.c b/trashapplet/src/trashapplet.c
index a29f294..6cf9b72 100644
--- a/trashapplet/src/trashapplet.c
+++ b/trashapplet/src/trashapplet.c
@@ -210,10 +210,6 @@ trash_applet_init (TrashApplet *applet)
   /* needed to clamp ourselves to the panel size */
   panel_applet_set_flags (PANEL_APPLET (applet), PANEL_APPLET_EXPAND_MINOR);
 
-  /* enable transparency hack */
-  panel_applet_set_background_widget (PANEL_APPLET (applet),
-                                      GTK_WIDGET (applet));
-
   /* setup the image */
   applet->image = g_object_ref_sink (gtk_image_new ());
   gtk_container_add (GTK_CONTAINER (applet),
diff --git a/windowpicker/src/applet.c b/windowpicker/src/applet.c
index 251ee46..847cfee 100644
--- a/windowpicker/src/applet.c
+++ b/windowpicker/src/applet.c
@@ -182,7 +182,6 @@ load_window_picker (PanelApplet *applet) {
         flags |= PANEL_APPLET_EXPAND_MAJOR;
 
     panel_applet_set_flags(applet, flags);
-    panel_applet_set_background_widget (applet, GTK_WIDGET(applet));
 
     gtk_widget_show_all(GTK_WIDGET (applet));
 


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