From 5621685d9af9a35a5a600ae8b80e0ce0d24a8075 Mon Sep 17 00:00:00 2001 From: monsta Date: Mon, 8 May 2017 16:36:32 +0300 Subject: [GTK+3] fix breakage of toolbar editor on first drag-n-drop This reverts commit 6fc5013e3a61d1b86f077c611c20407a796c414c. --- cut-n-paste/toolbar-editor/egg-toolbar-editor.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cut-n-paste/toolbar-editor/egg-toolbar-editor.c b/cut-n-paste/toolbar-editor/egg-toolbar-editor.c index 407738d..fb46d99 100644 --- a/cut-n-paste/toolbar-editor/egg-toolbar-editor.c +++ b/cut-n-paste/toolbar-editor/egg-toolbar-editor.c @@ -738,10 +738,10 @@ update_editor_sheet (EggToolbarEditor *editor) gtk_bin_get_child (GTK_BIN (viewport))); } -#if GTK_CHECK_VERSION (3, 0, 0) +#if GTK_CHECK_VERSION (3, 4, 0) /* Add grid to window. */ - gtk_container_add - (GTK_CONTAINER (editor->priv->scrolled_window), grid); + gtk_scrolled_window_add_with_viewport + (GTK_SCROLLED_WINDOW (editor->priv->scrolled_window), grid); #else /* Add table to window. */ gtk_scrolled_window_add_with_viewport -- cgit v1.2.1