summaryrefslogtreecommitdiffstats
path: root/src/tab-chrome.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tab-chrome.c')
-rw-r--r--src/tab-chrome.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/tab-chrome.c b/src/tab-chrome.c
index c854401..316c674 100644
--- a/src/tab-chrome.c
+++ b/src/tab-chrome.c
@@ -40,21 +40,6 @@ forward_clicked_cb(GtkButton __attribute__((unused)) *toolbutton,
webkit_web_view_go_forward(chrome->web_view);
}
-static void
-back_forward_toggle_button_toggled_cb(GtkToggleButton *toggle_button,
- GtkStack *stack)
-{
- /* 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. */
- 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 *
back_forward_list_item_new(WebKitBackForwardListItem *list_item,
gint type)
@@ -116,6 +101,21 @@ back_forward_list_box_row_activated_cb(GtkListBox __attribute__((unused)) *box,
gtk_widget_hide(chrome->back_forward_popover);
}
+static void
+back_forward_toggle_button_toggled_cb(GtkToggleButton *toggle_button,
+ GtkStack *stack)
+{
+ /* 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. */
+ 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 gboolean
back_forward_box_button_press_cb(GtkWidget *widget, GdkEvent *event,
MqTabChrome *chrome)