From d0487cfcd9231a02cc78f78e0dc06885cbedcf63 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Wed, 26 Aug 2020 09:49:59 +0200 Subject: 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. --- shell/ev-sidebar-attachments.c | 3 +-- 1 file changed, 1 insertion(+), 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 */ -- cgit v1.2.1