summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormbkma <[email protected]>2020-12-04 12:23:59 +0100
committerRobert Antoni Buj Gelonch <[email protected]>2020-12-06 10:12:32 +0100
commite08b24d4a5399c1cd57b3c902cdb28acbcb12f2f (patch)
tree80bbf56c85ea0e0a73a17b7c9cec94a06e3ded6d
parent3e60b7c1317eb7cfaf6079d2defb09bd07c93342 (diff)
downloadmate-applets-e08b24d4a5399c1cd57b3c902cdb28acbcb12f2f.tar.bz2
mate-applets-e08b24d4a5399c1cd57b3c902cdb28acbcb12f2f.tar.xz
remove dead function mate_panel_applet_set_background_widget
-rw-r--r--accessx-status/src/applet.c3
-rw-r--r--battstat/battstat_applet.c6
-rw-r--r--charpick/charpick.c58
-rw-r--r--command/src/command.c1
-rw-r--r--cpufreq/src/cpufreq-applet.c1
-rw-r--r--drivemount/drivemount.c1
-rw-r--r--geyes/src/geyes.c65
-rw-r--r--mateweather/mateweather-applet.c3
-rw-r--r--multiload/main.c1
-rw-r--r--netspeed/src/netspeed.c4
-rw-r--r--stickynotes/stickynotes_applet.c2
-rw-r--r--timerapplet/src/timerapplet.c1
-rw-r--r--trashapplet/src/trashapplet.c4
13 files changed, 61 insertions, 89 deletions
diff --git a/accessx-status/src/applet.c b/accessx-status/src/applet.c
index 40a45ecf..6b47bebd 100644
--- a/accessx-status/src/applet.c
+++ b/accessx-status/src/applet.c
@@ -1685,9 +1685,6 @@ accessx_status_applet_fill (MatePanelApplet* applet)
accessx_status_applet_reset (sapplet);
}
- mate_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 a369612c..8b366465 100644
--- a/battstat/battstat_applet.c
+++ b/battstat/battstat_applet.c
@@ -664,7 +664,7 @@ check_for_updates (gpointer data)
(battstat->red_value_is_time &&
battstat->last_minutes > battstat->red_val &&
info.minutes <= battstat->red_val)
- )
+ )
&& info.present)
{
/* Warn that battery dropped below red_val */
@@ -1062,10 +1062,6 @@ create_layout (ProgressData *battstat)
{
if (DEBUG) g_print ("create_layout ()\n");
- /* Have our background automatically painted. */
- mate_panel_applet_set_background_widget (MATE_PANEL_APPLET (battstat->applet),
- GTK_WIDGET (battstat->applet));
-
/* Allocate the four widgets that we need. */
battstat->grid = gtk_grid_new ();
battstat->percent = gtk_label_new ("");
diff --git a/charpick/charpick.c b/charpick/charpick.c
index 7c4170f5..54842ec2 100644
--- a/charpick/charpick.c
+++ b/charpick/charpick.c
@@ -25,7 +25,7 @@ static const gunichar def_code[] = {225, 224, 233, 237, 241, 243, 189, 169, 1579
/* static const gchar *a_list = "áàâãäåæª"; */
static const gunichar a_code[] = {225, 224, 226, 227, 228, 229, 230, 170, 0};
/* static const gchar *cap_a_list = "ÁÀÂÃÄÅƪ"; */
-static const gunichar cap_a_code[] = {192, 193, 194, 195, 196, 197, 198, 170, 0};
+static const gunichar cap_a_code[] = {192, 193, 194, 195, 196, 197, 198, 170, 0};
/* ccedil, cent, copy */
/* static const gchar *c_list = "çÇ¢©"; */
static const gunichar c_code[] = {231, 199, 162, 169, 0};
@@ -62,7 +62,7 @@ static const gunichar cap_u_code[] = {217, 218, 219, 220, 0};
/* static const gchar *y_list = "ýÝÿ¥"; */
static const gunichar y_code[] = {253, 221, 255, 165, 0};
-/* extra characters unrelated to the latin alphabet. All characters in
+/* extra characters unrelated to the latin alphabet. All characters in
ISO-8859-1 should now be accounted for.*/
/* not shy macr plusmn */
/* static const gchar *dash_list = "¬­¯±"; */
@@ -72,7 +72,7 @@ static const gunichar dash_code[] = {172, 173, 175, 177, 0};
static const gunichar quote_code[] = {171, 187, 168, 183, 215, 0};
/* curren, pound, yen, cent, dollar */
/* static const gchar *currency_list = "€£¥¢$"; */
-static const gunichar currency_code[] = {164, 163, 165, 162, 36, 8364, 0};
+static const gunichar currency_code[] = {164, 163, 165, 162, 36, 8364, 0};
/* sup1 frac12 */
/* static const gchar *one_list = "¹œŒ"; */
static const gunichar one_code[] = {185, 178, 179, 188, 189, 190, 0};
@@ -155,26 +155,26 @@ toggle_button_toggled_cb (GtkToggleButton *button,
gint button_index;
gboolean toggled;
- button_index = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (button), "index"));
- toggled = gtk_toggle_button_get_active (button);
+ button_index = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (button), "index"));
+ toggled = gtk_toggle_button_get_active (button);
if (toggled)
- {
+ {
gunichar unichar;
if (curr_data->last_toggle_button && (button != curr_data->last_toggle_button))
gtk_toggle_button_set_active (curr_data->last_toggle_button, FALSE);
- curr_data->last_toggle_button = button;
+ curr_data->last_toggle_button = button;
gtk_widget_grab_focus (curr_data->applet);
unichar = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (button), "unichar"));
curr_data->selected_unichar = unichar;
/* set this? widget as the selection owner */
gtk_selection_owner_set (curr_data->applet,
GDK_SELECTION_PRIMARY,
- GDK_CURRENT_TIME);
+ GDK_CURRENT_TIME);
gtk_selection_owner_set (curr_data->applet,
GDK_SELECTION_CLIPBOARD,
- GDK_CURRENT_TIME);
+ GDK_CURRENT_TIME);
curr_data->last_index = button_index;
}
return TRUE;
@@ -213,7 +213,7 @@ key_press_event (GtkWidget *widget,
break;
case 'A' : code = cap_a_code;
break;
- case 'c' :
+ case 'c' :
case 'C' : code = c_code;
break;
case 'e' : code = e_code;
@@ -224,7 +224,7 @@ key_press_event (GtkWidget *widget,
break;
case 'I' : code = cap_i_code;
break;
- case 'n' :
+ case 'n' :
case 'N' : code = n_code;
break;
case 'o' : code = o_code;
@@ -233,14 +233,14 @@ key_press_event (GtkWidget *widget,
break;
case 's' : code = s_code;
break;
- case 't' :
+ case 't' :
case 'T' : code = t_code;
break;
case 'u' : code = u_code;
break;
case 'U' : code = cap_u_code;
break;
- case 'y' :
+ case 'y' :
case 'Y' : code = y_code;
break;
case '-' : code = dash_code;
@@ -249,7 +249,7 @@ key_press_event (GtkWidget *widget,
break;
case '$' : code = currency_code;
break;
- case '1' :
+ case '1' :
case '2' :
case '3' : code = one_code;
break;
@@ -398,7 +398,7 @@ build_table (charpick_data *p_curr_data)
if (p_curr_data->panel_vertical)
box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
- else
+ else
box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_widget_show (box);
@@ -465,7 +465,7 @@ build_table (charpick_data *p_curr_data)
#else
name = g_strdup (_("Insert special character"));
#endif
-
+
toggle_button[i] = gtk_toggle_button_new_with_label (label);
atk_desc = g_strdup_printf (_("insert special character %s"), label);
@@ -485,14 +485,14 @@ build_table (charpick_data *p_curr_data)
max_width = MAX (max_width, req.width);
max_height = MAX (max_height, req.height-2);
- g_object_set_data (G_OBJECT (toggle_button[i]), "unichar",
+ g_object_set_data (G_OBJECT (toggle_button[i]), "unichar",
GINT_TO_POINTER (g_utf8_get_char (label)));
g_signal_connect (G_OBJECT (toggle_button[i]), "toggled",
G_CALLBACK (toggle_button_toggled_cb),
p_curr_data);
- g_signal_connect (G_OBJECT (toggle_button[i]), "button_press_event",
+ g_signal_connect (G_OBJECT (toggle_button[i]), "button_press_event",
G_CALLBACK (button_press_hack),
p_curr_data->applet);
}
@@ -646,7 +646,7 @@ applet_destroy (GtkWidget *widget,
g_return_if_fail (curr_data);
if (curr_data->about_dialog)
- gtk_widget_destroy (curr_data->about_dialog);
+ gtk_widget_destroy (curr_data->about_dialog);
if (curr_data->propwindow)
gtk_widget_destroy (curr_data->propwindow);
if (curr_data->box)
@@ -656,7 +656,7 @@ applet_destroy (GtkWidget *widget,
g_free (curr_data);
}
-void
+void
save_chartable (charpick_data *curr_data)
{
mate_panel_applet_settings_set_glist (curr_data->settings,
@@ -735,8 +735,6 @@ charpicker_applet_fill (MatePanelApplet *applet)
gtk_window_set_default_icon_name ("accessories-character-map");
- mate_panel_applet_set_background_widget (applet, GTK_WIDGET (applet));
-
mate_panel_applet_set_flags (applet, MATE_PANEL_APPLET_EXPAND_MINOR);
curr_data = g_new0 (charpick_data, 1);
@@ -746,7 +744,7 @@ charpicker_applet_fill (MatePanelApplet *applet)
curr_data->add_edit_dialog = NULL;
curr_data->settings = mate_panel_applet_settings_new (applet,
"org.mate.panel.applet.charpick");
-
+
get_chartable (curr_data);
string = g_settings_get_string (curr_data->settings, "current-list");
@@ -766,13 +764,13 @@ charpicker_applet_fill (MatePanelApplet *applet)
g_free (string);
}
else {
- curr_data->charlist = curr_data->chartable->data;
+ curr_data->charlist = curr_data->chartable->data;
}
curr_data->panel_size = mate_panel_applet_get_size (applet);
-
+
orientation = mate_panel_applet_get_orient (applet);
- curr_data->panel_vertical = (orientation == MATE_PANEL_APPLET_ORIENT_LEFT)
+ curr_data->panel_vertical = (orientation == MATE_PANEL_APPLET_ORIENT_LEFT)
|| (orientation == MATE_PANEL_APPLET_ORIENT_RIGHT);
build_table (curr_data);
@@ -781,11 +779,11 @@ charpicker_applet_fill (MatePanelApplet *applet)
utf8_atom = gdk_atom_intern ("UTF8_STRING", FALSE);
- gtk_selection_add_target (curr_data->applet,
+ gtk_selection_add_target (curr_data->applet,
GDK_SELECTION_PRIMARY,
utf8_atom, 0);
- gtk_selection_add_target (curr_data->applet,
+ gtk_selection_add_target (curr_data->applet,
GDK_SELECTION_CLIPBOARD,
utf8_atom, 0);
@@ -799,7 +797,7 @@ charpicker_applet_fill (MatePanelApplet *applet)
make_applet_accessible (GTK_WIDGET (applet));
- /* session save signal */
+ /* session save signal */
g_signal_connect (G_OBJECT (applet), "change_orient",
G_CALLBACK (applet_change_orient), curr_data);
@@ -844,7 +842,7 @@ charpicker_applet_factory (MatePanelApplet *applet,
gboolean retval = FALSE;
if (!strcmp (iid, "CharpickerApplet"))
- retval = charpicker_applet_fill (applet);
+ retval = charpicker_applet_fill (applet);
return retval;
}
diff --git a/command/src/command.c b/command/src/command.c
index f53bef43..824cb6e3 100644
--- a/command/src/command.c
+++ b/command/src/command.c
@@ -409,7 +409,6 @@ command_applet_fill (MatePanelApplet* applet)
gtk_window_set_default_icon_name (APPLET_ICON);
mate_panel_applet_set_flags (applet, MATE_PANEL_APPLET_EXPAND_MINOR);
- mate_panel_applet_set_background_widget (applet, GTK_WIDGET (applet));
command_applet = g_malloc0(sizeof(CommandApplet));
command_applet->applet = applet;
diff --git a/cpufreq/src/cpufreq-applet.c b/cpufreq/src/cpufreq-applet.c
index 4be70ba9..d965ed93 100644
--- a/cpufreq/src/cpufreq-applet.c
+++ b/cpufreq/src/cpufreq-applet.c
@@ -178,7 +178,6 @@ cpufreq_applet_init (CPUFreqApplet *applet)
applet->need_refresh = TRUE;
mate_panel_applet_set_flags (MATE_PANEL_APPLET (applet), MATE_PANEL_APPLET_EXPAND_MINOR);
- mate_panel_applet_set_background_widget (MATE_PANEL_APPLET (applet), GTK_WIDGET (applet));
applet->size = mate_panel_applet_get_size (MATE_PANEL_APPLET (applet));
applet->orient = mate_panel_applet_get_orient (MATE_PANEL_APPLET (applet));
diff --git a/drivemount/drivemount.c b/drivemount/drivemount.c
index 342ca623..d6a77f20 100644
--- a/drivemount/drivemount.c
+++ b/drivemount/drivemount.c
@@ -184,7 +184,6 @@ applet_factory (MatePanelApplet *applet,
gtk_window_set_default_icon_name ("media-floppy");
mate_panel_applet_set_flags (applet, MATE_PANEL_APPLET_EXPAND_MINOR);
- mate_panel_applet_set_background_widget (applet, GTK_WIDGET (applet));
drive_list = drive_list_new ();
diff --git a/geyes/src/geyes.c b/geyes/src/geyes.c
index 4adf7e87..b1d0177f 100644
--- a/geyes/src/geyes.c
+++ b/geyes/src/geyes.c
@@ -43,7 +43,7 @@ gtk_align_to_gfloat (GtkAlign align)
}
/* TODO - Optimize this a bit */
-static void
+static void
calculate_pupil_xy (EyesApplet *eyes_applet,
gint x, gint y,
gint *pupil_x, gint *pupil_y, GtkWidget* widget)
@@ -66,7 +66,7 @@ calculate_pupil_xy (EyesApplet *eyes_applet,
nx = x - MAX(width - eyes_applet->eye_width, 0) * xalign - eyes_applet->eye_width / 2;
ny = y - MAX(height- eyes_applet->eye_height, 0) * yalign - eyes_applet->eye_height / 2;
-
+
h = hypot (nx, ny);
if (h < 0.5 || fabs (h)
< (fabs (hypot (eyes_applet->eye_height / 2, eyes_applet->eye_width / 2)) - eyes_applet->wall_thickness - eyes_applet->pupil_height)) {
@@ -74,10 +74,10 @@ calculate_pupil_xy (EyesApplet *eyes_applet,
*pupil_y = ny + eyes_applet->eye_height / 2;
return;
}
-
- sina = nx / h;
+
+ sina = nx / h;
cosa = ny / h;
-
+
temp = hypot ((eyes_applet->eye_width / 2) * sina, (eyes_applet->eye_height / 2) * cosa);
temp -= hypot ((eyes_applet->pupil_width / 2) * sina, (eyes_applet->pupil_height / 2) * cosa);
temp -= hypot ((eyes_applet->wall_thickness / 2) * sina, (eyes_applet->wall_thickness / 2) * cosa);
@@ -86,10 +86,10 @@ calculate_pupil_xy (EyesApplet *eyes_applet,
*pupil_y = temp * cosa + (eyes_applet->eye_height / 2);
}
-static void
+static void
draw_eye (EyesApplet *eyes_applet,
- gint eye_num,
- gint pupil_x,
+ gint eye_num,
+ gint pupil_x,
gint pupil_y)
{
GdkPixbuf *pixbuf;
@@ -105,7 +105,7 @@ draw_eye (EyesApplet *eyes_applet,
r2.width = eyes_applet->eye_width;
r2.height = eyes_applet->eye_height;
gdk_rectangle_intersect (&r1, &r2, &rect);
- gdk_pixbuf_composite (eyes_applet->pupil_image, pixbuf,
+ gdk_pixbuf_composite (eyes_applet->pupil_image, pixbuf,
rect.x,
rect.y,
rect.width,
@@ -120,7 +120,7 @@ draw_eye (EyesApplet *eyes_applet,
}
-static gint
+static gint
timer_cb (EyesApplet *eyes_applet)
{
GdkDisplay *display;
@@ -138,11 +138,11 @@ timer_cb (EyesApplet *eyes_applet)
gdk_seat_get_pointer (seat),
&x, &y, NULL);
- if ((x != eyes_applet->pointer_last_x[i]) || (y != eyes_applet->pointer_last_y[i])) {
+ if ((x != eyes_applet->pointer_last_x[i]) || (y != eyes_applet->pointer_last_y[i])) {
calculate_pupil_xy (eyes_applet, x, y, &pupil_x, &pupil_y, eyes_applet->eyes[i]);
draw_eye (eyes_applet, i, pupil_x, pupil_y);
-
+
eyes_applet->pointer_last_x[i] = x;
eyes_applet->pointer_last_y[i] = y;
}
@@ -197,7 +197,7 @@ properties_load (EyesApplet *eyes_applet)
if (theme_path == NULL)
theme_path = g_strdup (GEYES_THEMES_DIR "Default-tiny");
-
+
if (load_theme (eyes_applet, theme_path) == FALSE) {
g_free (theme_path);
@@ -205,12 +205,12 @@ properties_load (EyesApplet *eyes_applet)
}
g_free (theme_path);
-
+
return TRUE;
}
void
-setup_eyes (EyesApplet *eyes_applet)
+setup_eyes (EyesApplet *eyes_applet)
{
int i;
@@ -225,19 +225,19 @@ setup_eyes (EyesApplet *eyes_applet)
eyes_applet->eyes[i] = gtk_image_new ();
if (eyes_applet->eyes[i] == NULL)
g_error ("Error creating geyes\n");
-
+
gtk_widget_set_size_request (GTK_WIDGET (eyes_applet->eyes[i]),
eyes_applet->eye_width,
eyes_applet->eye_height);
-
+
gtk_widget_show (eyes_applet->eyes[i]);
-
- gtk_box_pack_start (GTK_BOX (eyes_applet->hbox),
+
+ gtk_box_pack_start (GTK_BOX (eyes_applet->hbox),
eyes_applet->eyes [i],
TRUE,
TRUE,
0);
-
+
if ((eyes_applet->num_eyes != 1) && (i == 0)) {
gtk_widget_set_halign (eyes_applet->eyes[i], GTK_ALIGN_END);
gtk_widget_set_valign (eyes_applet->eyes[i], GTK_ALIGN_CENTER);
@@ -250,16 +250,16 @@ setup_eyes (EyesApplet *eyes_applet)
gtk_widget_set_halign (eyes_applet->eyes[i], GTK_ALIGN_CENTER);
gtk_widget_set_valign (eyes_applet->eyes[i], GTK_ALIGN_CENTER);
}
-
+
gtk_widget_realize (eyes_applet->eyes[i]);
-
+
eyes_applet->pointer_last_x[i] = G_MAXINT;
eyes_applet->pointer_last_y[i] = G_MAXINT;
-
+
draw_eye (eyes_applet, i,
eyes_applet->eye_width / 2,
eyes_applet->eye_height / 2);
-
+
}
gtk_widget_show (eyes_applet->hbox);
}
@@ -282,7 +282,7 @@ create_eyes (MatePanelApplet *applet)
eyes_applet->applet = applet;
eyes_applet->vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
- eyes_applet->settings =
+ eyes_applet->settings =
mate_panel_applet_settings_new (applet, "org.mate.panel.applet.geyes");
gtk_container_add (GTK_CONTAINER (applet), eyes_applet->vbox);
@@ -317,7 +317,7 @@ dispose_cb (GObject *object, EyesApplet *eyes_applet)
if (eyes_applet->pupil_filename)
g_free (eyes_applet->pupil_filename);
eyes_applet->pupil_filename = NULL;
-
+
if (eyes_applet->prop_box.pbox)
gtk_widget_destroy (eyes_applet->prop_box.pbox);
@@ -340,7 +340,7 @@ help_cb (GtkAction *action,
&error);
if (error) {
- GtkWidget *dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE,
+ GtkWidget *dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE,
_("There was an error displaying help: %s"), error->message);
g_signal_connect (G_OBJECT (dialog), "response", G_CALLBACK (gtk_widget_destroy), NULL);
gtk_window_set_resizable (GTK_WINDOW (dialog), FALSE);
@@ -369,7 +369,7 @@ set_atk_name_description (GtkWidget *widget, const gchar *name,
const gchar *description)
{
AtkObject *aobj;
-
+
aobj = gtk_widget_get_accessible (widget);
/* Check if gail is loaded */
if (GTK_IS_ACCESSIBLE (aobj) == FALSE)
@@ -389,7 +389,6 @@ geyes_applet_fill (MatePanelApplet *applet)
gtk_window_set_default_icon_name ("mate-eyes-applet");
mate_panel_applet_set_flags (applet, MATE_PANEL_APPLET_EXPAND_MINOR);
- mate_panel_applet_set_background_widget (applet, GTK_WIDGET (applet));
eyes_applet = create_eyes (applet);
@@ -418,7 +417,7 @@ geyes_applet_fill (MatePanelApplet *applet)
gtk_widget_set_tooltip_text (GTK_WIDGET (eyes_applet->applet), _("Eyes"));
- set_atk_name_description (GTK_WIDGET (eyes_applet->applet), _("Eyes"),
+ set_atk_name_description (GTK_WIDGET (eyes_applet->applet), _("Eyes"),
_("The eyes look in the direction of the mouse pointer"));
g_signal_connect (eyes_applet->vbox,
@@ -428,7 +427,7 @@ geyes_applet_fill (MatePanelApplet *applet)
gtk_widget_show_all (GTK_WIDGET (eyes_applet->applet));
- /* setup here and not in create eyes so the destroy signal is set so
+ /* setup here and not in create eyes so the destroy signal is set so
* that when there is an error within loading the theme
* we can emit this signal */
if (properties_load (eyes_applet) == FALSE)
@@ -449,8 +448,8 @@ geyes_applet_factory (MatePanelApplet *applet,
theme_dirs_create ();
if (!strcmp (iid, "GeyesApplet"))
- retval = geyes_applet_fill (applet);
-
+ retval = geyes_applet_fill (applet);
+
if (retval == FALSE) {
exit (-1);
}
diff --git a/mateweather/mateweather-applet.c b/mateweather/mateweather-applet.c
index 68041c59..7785744f 100644
--- a/mateweather/mateweather-applet.c
+++ b/mateweather/mateweather-applet.c
@@ -337,9 +337,6 @@ void mateweather_applet_create (MateWeatherApplet *gw_applet)
mate_panel_applet_set_flags (gw_applet->applet, MATE_PANEL_APPLET_EXPAND_MINOR);
- mate_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/multiload/main.c b/multiload/main.c
index 259bf0b5..7c2886f8 100644
--- a/multiload/main.c
+++ b/multiload/main.c
@@ -500,7 +500,6 @@ multiload_applet_new(MatePanelApplet *applet, const gchar *iid, gpointer data)
g_set_application_name (_("System Monitor"));
gtk_window_set_default_icon_name ("utilities-system-monitor");
- mate_panel_applet_set_background_widget (applet, GTK_WIDGET(applet));
ma->settings = mate_panel_applet_settings_new (applet, "org.mate.panel.applet.multiload");
mate_panel_applet_set_flags (applet, MATE_PANEL_APPLET_EXPAND_MINOR);
diff --git a/netspeed/src/netspeed.c b/netspeed/src/netspeed.c
index e692d7da..3d1e202c 100644
--- a/netspeed/src/netspeed.c
+++ b/netspeed/src/netspeed.c
@@ -1552,10 +1552,6 @@ mate_netspeed_applet_factory(MatePanelApplet *applet_widget, const gchar *iid, g
GtkWidget *spacer, *spacer_box;
GtkActionGroup *action_group;
- /* Have our background automatically painted. */
- mate_panel_applet_set_background_widget(MATE_PANEL_APPLET(applet_widget),
- GTK_WIDGET(applet_widget));
-
if (strcmp (iid, "NetspeedApplet"))
return FALSE;
diff --git a/stickynotes/stickynotes_applet.c b/stickynotes/stickynotes_applet.c
index e00ba0c9..c8453c88 100644
--- a/stickynotes/stickynotes_applet.c
+++ b/stickynotes/stickynotes_applet.c
@@ -406,8 +406,6 @@ stickynotes_applet_new(MatePanelApplet *mate_panel_applet)
g_signal_connect(G_OBJECT(applet->w_applet), "destroy",
G_CALLBACK(stickynotes_destroy), NULL);
- mate_panel_applet_set_background_widget (mate_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/timerapplet/src/timerapplet.c b/timerapplet/src/timerapplet.c
index 8d2d3cfe..411e3181 100644
--- a/timerapplet/src/timerapplet.c
+++ b/timerapplet/src/timerapplet.c
@@ -370,7 +370,6 @@ timer_applet_fill (MatePanelApplet* applet_widget)
notify_init ("timer-applet");
mate_panel_applet_set_flags (applet_widget, MATE_PANEL_APPLET_EXPAND_MINOR);
- mate_panel_applet_set_background_widget (MATE_PANEL_APPLET (applet_widget), GTK_WIDGET (applet_widget));
applet = g_malloc0(sizeof(TimerApplet));
applet->applet = applet_widget;
diff --git a/trashapplet/src/trashapplet.c b/trashapplet/src/trashapplet.c
index 8704b47f..d3c419ce 100644
--- a/trashapplet/src/trashapplet.c
+++ b/trashapplet/src/trashapplet.c
@@ -216,10 +216,6 @@ trash_applet_init (TrashApplet *applet)
/* needed to clamp ourselves to the panel size */
mate_panel_applet_set_flags (MATE_PANEL_APPLET (applet), MATE_PANEL_APPLET_EXPAND_MINOR);
- /* enable transparency hack */
- mate_panel_applet_set_background_widget (MATE_PANEL_APPLET (applet),
- GTK_WIDGET (applet));
-
/* setup the image */
applet->image = g_object_ref_sink (GTK_IMAGE (gtk_image_new ()));
gtk_container_add (GTK_CONTAINER (applet),