From 964d83cadd9b477ecdc1a10bc33a2a4b4e6d4992 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 21 Sep 2017 19:39:37 -0400 Subject: MqTabChrome: Move a function definition --- (limited to 'src') 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) -- cgit v0.9.1