diff options
author | lukefromdc <[email protected]> | 2017-01-10 00:37:51 -0500 |
---|---|---|
committer | monsta <[email protected]> | 2017-01-29 15:20:38 +0300 |
commit | db05908ce557daa2814d1a4b3e9fea8823262725 (patch) | |
tree | 925817f623d368fb57a14b730859f0da8a965afe | |
parent | d3e226fb814684876a0d29c0224bc56913e5ea33 (diff) | |
download | mate-applets-db05908ce557daa2814d1a4b3e9fea8823262725.tar.bz2 mate-applets-db05908ce557daa2814d1a4b3e9fea8823262725.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
-rw-r--r-- | trashapplet/src/trashapplet.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/trashapplet/src/trashapplet.c b/trashapplet/src/trashapplet.c index e406dfb2..d2ad7d54 100644 --- a/trashapplet/src/trashapplet.c +++ b/trashapplet/src/trashapplet.c @@ -171,6 +171,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: @@ -184,8 +187,6 @@ trash_applet_size_allocate (GtkWidget *widget, break; } - GTK_WIDGET_CLASS (trash_applet_parent_class) - ->size_allocate (widget, allocation); } static void |