summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-09-21 19:39:37 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-09-21 19:39:37 (EDT)
commit964d83cadd9b477ecdc1a10bc33a2a4b4e6d4992 (patch)
treee7d114d6e6326facb12503bac0f857268cd18af2
parentc1e1890f11cf3d9166c5050fa1e0055671274bce (diff)
downloadmarquee-964d83cadd9b477ecdc1a10bc33a2a4b4e6d4992.zip
marquee-964d83cadd9b477ecdc1a10bc33a2a4b4e6d4992.tar.gz
marquee-964d83cadd9b477ecdc1a10bc33a2a4b4e6d4992.tar.bz2
MqTabChrome: Move a function definition
-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)