From 91032fbd07dee7ecb33113b2a8d52eb401163aa7 Mon Sep 17 00:00:00 2001 From: lukefromdc Date: Tue, 10 Jan 2017 00:37:51 -0500 Subject: 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 --- trashapplet/src/trashapplet.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'trashapplet/src/trashapplet.c') 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 -- cgit v1.2.1