summaryrefslogtreecommitdiff
path: root/trashapplet
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2017-01-10 00:37:51 -0500
committerraveit65 <[email protected]>2017-01-14 21:08:28 +0100
commit91032fbd07dee7ecb33113b2a8d52eb401163aa7 (patch)
treee788c5ba7df4dccc395e0e1ba4a22985ebc0eed5 /trashapplet
parent8c978612d0047ee258edc569acabfcb60d36f3bb (diff)
downloadmate-applets-91032fbd07dee7ecb33113b2a8d52eb401163aa7.tar.bz2
mate-applets-91032fbd07dee7ecb33113b2a8d52eb401163aa7.tar.xz
Trash: fix size allocation warning
This code was copied from button-widget.c, which did not throw allocation warnings. Only real difference was position of the "size_allocate" function. Moving it stopped the warnings on restarting mate-panel
Diffstat (limited to 'trashapplet')
-rw-r--r--trashapplet/src/trashapplet.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/trashapplet/src/trashapplet.c b/trashapplet/src/trashapplet.c
index 3d56d013..119f3111 100644
--- a/trashapplet/src/trashapplet.c
+++ b/trashapplet/src/trashapplet.c
@@ -166,6 +166,9 @@ trash_applet_size_allocate (GtkWidget *widget,
{
TrashApplet *applet = TRASH_APPLET (widget);
+ GTK_WIDGET_CLASS (trash_applet_parent_class)
+ ->size_allocate (widget, allocation);
+
switch (mate_panel_applet_get_orient (MATE_PANEL_APPLET (applet)))
{
case MATE_PANEL_APPLET_ORIENT_LEFT:
@@ -179,8 +182,6 @@ trash_applet_size_allocate (GtkWidget *widget,
break;
}
- GTK_WIDGET_CLASS (trash_applet_parent_class)
- ->size_allocate (widget, allocation);
}
static void