[yelp/wip/amigadave/webkit2-port: 19/23] yelp-window: Remove ScrolledWindow to hold WebView.
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp/wip/amigadave/webkit2-port: 19/23] yelp-window: Remove ScrolledWindow to hold WebView.
- Date: Mon, 16 Feb 2015 11:56:01 +0000 (UTC)
commit 5e1750ecc198dba5e53341e5e5ac6e95d9af431b
Author: Marcos ChavarrÃa Teijeiro <chavarria1991 gmail com>
Date: Wed Nov 19 10:33:14 2014 +0100
yelp-window: Remove ScrolledWindow to hold WebView.
WebKit2 WebView has its own scrollbars.
src/yelp-window.c | 9 +--------
1 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/src/yelp-window.c b/src/yelp-window.c
index 0d26ff2..8890aeb 100644
--- a/src/yelp-window.c
+++ b/src/yelp-window.c
@@ -285,7 +285,6 @@ yelp_window_set_property (GObject *object,
static void
window_construct (YelpWindow *window)
{
- GtkWidget *scroll;
GtkWidget *box, *button;
GtkWidget *frame;
GtkCssProvider *css;
@@ -500,12 +499,7 @@ window_construct (YelpWindow *window)
box = gtk_overlay_new ();
gtk_overlay_add_overlay (GTK_OVERLAY (box), GTK_WIDGET (priv->find_bar));
- scroll = gtk_scrolled_window_new (NULL, NULL);
- g_object_set (scroll, "width-request", 420, NULL);
- gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scroll),
- GTK_POLICY_AUTOMATIC,
- GTK_POLICY_AUTOMATIC);
- gtk_container_add (GTK_CONTAINER (box), scroll);
+ gtk_container_add (GTK_CONTAINER (box), GTK_WIDGET (priv->view));
gtk_box_pack_start (GTK_BOX (priv->vbox_view), box, TRUE, TRUE, 0);
g_signal_connect (priv->view, "new-view-requested", G_CALLBACK (view_new_window), window);
@@ -515,7 +509,6 @@ window_construct (YelpWindow *window)
G_CALLBACK (window_set_bookmark_buttons), window);
window_set_bookmark_buttons (window);
g_signal_connect (priv->view, "notify::root-title", G_CALLBACK (view_root_title), window);
- gtk_container_add (GTK_CONTAINER (scroll), GTK_WIDGET (priv->view));
gtk_widget_grab_focus (GTK_WIDGET (priv->view));
gtk_drag_dest_set (GTK_WIDGET (window),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]