diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-09-21 18:49:37 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-09-21 18:49:37 (EDT) |
commit | e39b6d6ea4c4448b63ae63fe1ed56076baa6f4ca (patch) | |
tree | e2a4963aed250aafb76ea53e5e7ce6aa017f0322 /src | |
parent | a7ffadb7d89a6ce1aa30f5d751d5db121fdc892e (diff) | |
download | marquee-e39b6d6ea4c4448b63ae63fe1ed56076baa6f4ca.zip marquee-e39b6d6ea4c4448b63ae63fe1ed56076baa6f4ca.tar.gz marquee-e39b6d6ea4c4448b63ae63fe1ed56076baa6f4ca.tar.bz2 |
Revert "src/tab-chrome.c: Try to update scrollbar policies on toggle"
This reverts commit 42ca78390d46acf1a997634a6d1c59b8afc466fb.
Diffstat (limited to 'src')
-rw-r--r-- | src/tab-chrome.c | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/src/tab-chrome.c b/src/tab-chrome.c index a42ff26..d5de77b 100644 --- a/src/tab-chrome.c +++ b/src/tab-chrome.c @@ -54,23 +54,15 @@ static void back_forward_toggle_button_toggled_cb(GtkToggleButton *toggle_button, GtkStack *stack) { - GtkWidget *child; - /* Use gtk_widget_show() and gtk_widget_hide() instead of * gtk_stack_set_visible_child() so that the stack fits the size of only * the visible child. */ - - child = gtk_stack_get_child_by_name(stack, - gtk_toggle_button_get_active(toggle_button) ? "text" : "list"); - gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(child), - GTK_POLICY_NEVER, GTK_POLICY_NEVER); - gtk_widget_show_all(child); - - child = gtk_stack_get_child_by_name(stack, - gtk_toggle_button_get_active(toggle_button) ? "list" : "text"); - gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(child), - GTK_POLICY_NEVER, GTK_POLICY_NEVER); - gtk_widget_hide(child); + gtk_widget_show_all(gtk_stack_get_child_by_name(stack, + gtk_toggle_button_get_active(toggle_button) ? + "text" : "list")); + gtk_widget_hide(gtk_stack_get_child_by_name(stack, + gtk_toggle_button_get_active(toggle_button) ? + "list" : "text")); } static GtkWidget * |