summaryrefslogtreecommitdiff
path: root/shell/ev-sidebar-attachments.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2020-08-26 09:49:59 +0200
committerRobert Antoni Buj Gelonch <[email protected]>2020-08-28 19:33:49 +0200
commitd0487cfcd9231a02cc78f78e0dc06885cbedcf63 (patch)
tree32f35e4e6ca7be8243efda52271569072a264346 /shell/ev-sidebar-attachments.c
parent9f86b203c1a411dd24b3219c104db16b6ecedc95 (diff)
downloadatril-d0487cfcd9231a02cc78f78e0dc06885cbedcf63.tar.bz2
atril-d0487cfcd9231a02cc78f78e0dc06885cbedcf63.tar.xz
ev-sidebar-attachments: do not add add a Gtk_Container
Fixes a runtime warning caused by https://github.com/mate-desktop/atril/commit/70f42da See https://github.com/mate-desktop/atril/pull/476#issuecomment-667701035 for more info.
Diffstat (limited to 'shell/ev-sidebar-attachments.c')
-rw-r--r--shell/ev-sidebar-attachments.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/shell/ev-sidebar-attachments.c b/shell/ev-sidebar-attachments.c
index 389d1693..81aee149 100644
--- a/shell/ev-sidebar-attachments.c
+++ b/shell/ev-sidebar-attachments.c
@@ -566,8 +566,7 @@ ev_sidebar_attachments_init (EvSidebarAttachments *ev_attachbar)
ev_attachbar->priv->icon_view);
gtk_box_pack_start (GTK_BOX (ev_attachbar), swindow, TRUE, TRUE, 0);
- gtk_container_add (GTK_CONTAINER (ev_attachbar),
- swindow);
+
gtk_widget_show_all (GTK_WIDGET (ev_attachbar));
/* Icon Theme */