summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-09-21 18:49:51 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-09-21 18:49:51 (EDT)
commitf192d3e955b9cf7f161427133b64de8646da51ae (patch)
treef752bb44808b466173b593cbd96bd1b77bcd7802
parente39b6d6ea4c4448b63ae63fe1ed56076baa6f4ca (diff)
downloadmarquee-f192d3e955b9cf7f161427133b64de8646da51ae.zip
marquee-f192d3e955b9cf7f161427133b64de8646da51ae.tar.gz
marquee-f192d3e955b9cf7f161427133b64de8646da51ae.tar.bz2
Revert "src/tab-chrome.c: Hack tab history scrollbar policies"
This reverts commit c534c7e1bedb56b0f2e44b45a9d1ac5fcb9cef68.
-rw-r--r--src/tab-chrome.c20
1 files changed, 2 insertions, 18 deletions
diff --git a/src/tab-chrome.c b/src/tab-chrome.c
index d5de77b..0e12da5 100644
--- a/src/tab-chrome.c
+++ b/src/tab-chrome.c
@@ -41,16 +41,6 @@ forward_clicked_cb(GtkButton __attribute__((unused)) *toolbutton,
}
static void
-back_forward_scrolled_window_size_allocate_cb(
- GtkScrolledWindow *scrolled_window,
- GdkRectangle __attribute__((unused)) *allocation,
- gpointer __attribute__((unused)) user_data)
-{
- gtk_scrolled_window_set_policy(scrolled_window,
- GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
-}
-
-static void
back_forward_toggle_button_toggled_cb(GtkToggleButton *toggle_button,
GtkStack *stack)
{
@@ -215,25 +205,19 @@ back_forward_box_button_press_cb(GtkWidget *widget, GdkEvent *event,
list_scrolled_window = gtk_scrolled_window_new(NULL, NULL);
gtk_scrolled_window_set_policy(
GTK_SCROLLED_WINDOW(list_scrolled_window),
- GTK_POLICY_NEVER, GTK_POLICY_NEVER);
+ GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
/* gtk_scrolled_window_set_propagate_natural_width(
GTK_SCROLLED_WINDOW(list_scrolled_window), TRUE); */
gtk_container_add(GTK_CONTAINER(list_scrolled_window), list_box);
- g_signal_connect(list_scrolled_window, "size-allocate",
- G_CALLBACK(back_forward_scrolled_window_size_allocate_cb),
- NULL);
/* Set up the text scrolled window. */
text_scrolled_window = gtk_scrolled_window_new(NULL, NULL);
gtk_scrolled_window_set_policy(
GTK_SCROLLED_WINDOW(text_scrolled_window),
- GTK_POLICY_NEVER, GTK_POLICY_NEVER);
+ GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
/* gtk_scrolled_window_set_propagate_natural_width(
GTK_SCROLLED_WINDOW(text_scrolled_window), TRUE); */
gtk_container_add(GTK_CONTAINER(text_scrolled_window), text_view);
- g_signal_connect(text_scrolled_window, "size-allocate",
- G_CALLBACK(back_forward_scrolled_window_size_allocate_cb),
- NULL);
/* Set up the stack. */
stack = gtk_stack_new();