[gimp] plug-ins: help-browser Web view does not need a scrolled window
- From: Michael Natterer <mitch src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gimp] plug-ins: help-browser Web view does not need a scrolled window
 
- Date: Sat,  7 Jul 2018 13:01:53 +0000 (UTC)
 
commit 9fae08595d7296639d759acb1147a92a933d993b
Author: Adrian Perez de Castro <aperez igalia com>
Date:   Tue Jun 26 23:56:39 2018 +0300
    plug-ins: help-browser Web view does not need a scrolled window
    
    In WebKitGTK+ 2.x the WebKitWebView widget handles scrolling itself
    and does not need to be contained inside a GtkScrolledWindow.
 plug-ins/help-browser/dialog.c | 12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)
---
diff --git a/plug-ins/help-browser/dialog.c b/plug-ins/help-browser/dialog.c
index 0dc3076e8b..ec2e811ba4 100644
--- a/plug-ins/help-browser/dialog.c
+++ b/plug-ins/help-browser/dialog.c
@@ -257,18 +257,12 @@ browser_dialog_open (const gchar *plug_in_binary)
   gtk_widget_show (main_vbox);
   gtk_paned_pack2 (GTK_PANED (paned), main_vbox, TRUE, TRUE);
 
-  scrolled = gtk_scrolled_window_new (NULL, NULL);
-  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled),
-                                  GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
-
-  gtk_widget_set_size_request (scrolled, 300, 200);
-  gtk_box_pack_start (GTK_BOX (main_vbox), scrolled, TRUE, TRUE, 0);
-  gtk_widget_show (scrolled);
-
   view = webkit_web_view_new ();
-  gtk_container_add (GTK_CONTAINER (scrolled), view);
+  gtk_widget_set_size_request (view, 300, 200);
   gtk_widget_show (view);
 
+  gtk_box_pack_start (GTK_BOX (main_vbox), view, TRUE, TRUE, 0);
+
   g_signal_connect (view, "realize",
                     G_CALLBACK (view_realize),
                     NULL);
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]