diff options
-rw-r--r-- | src/window.c | 20 | ||||
-rw-r--r-- | src/window.h | 4 |
2 files changed, 12 insertions, 12 deletions
diff --git a/src/window.c b/src/window.c index e18967b..8456c9f 100644 --- a/src/window.c +++ b/src/window.c @@ -26,7 +26,7 @@ #include <gtk/gtk.h> #include "application.h" -#include "tab.h" +#include "tab-page.h" static void is_maximized_cb(GtkWindow *window, GParamSpec G_GNUC_UNUSED *param_spec, @@ -163,8 +163,8 @@ switch_page_cb(GtkNotebook G_GNUC_UNUSED *notebook, { window->current_tab = ++page_num; - set_title(window, mq_tab_get_title(mq_tab_seek(window->root_tab, - page_num))); + set_title(window, mq_tab_page_get_title( + mq_tab_page_seek(window->root_tab, page_num))); } static void @@ -223,14 +223,14 @@ mq_window_new(MqApplication *application, const gchar **uris) g_signal_connect(window->notebook, "page-reordered", G_CALLBACK(update_positions), window); - window->root_tab = mq_tab_new_root(window); + window->root_tab = mq_tab_page_new_root(window); if (uris && uris[0]) { for (i = 0; uris && uris[i]; ++i) { - mq_tab_new_relative(uris[i], window->root_tab); + mq_tab_page_new_relative(uris[i], window->root_tab); } } else { - mq_tab_new_relative(NULL, window->root_tab); + mq_tab_page_new_relative(NULL, window->root_tab); } gtk_widget_show_all(window->window); @@ -290,7 +290,7 @@ mq_window_get_current_tab(MqWindow *window) guint mq_window_get_num_tabs(MqWindow *window) { - return mq_tab_get_tree_size(window->root_tab) - 1; + return mq_tab_page_get_tree_size(window->root_tab) - 1; } void @@ -304,17 +304,17 @@ mq_window_update_tab_title(MqWindow *window, guint position, const gchar *title) void mq_window_scroll_tab_labels(MqWindow *window) { - mq_tab_scroll_tab_labels(window->root_tab); + mq_tab_page_scroll_tab_labels(window->root_tab); } void mq_window_begin_scrolling_tab_labels(MqWindow *window) { - mq_tab_begin_scrolling_tab_labels(window->root_tab); + mq_tab_page_begin_scrolling_tab_labels(window->root_tab); } void mq_window_end_scrolling_tab_labels(MqWindow *window) { - mq_tab_end_scrolling_tab_labels(window->root_tab); + mq_tab_page_end_scrolling_tab_labels(window->root_tab); } diff --git a/src/window.h b/src/window.h index 60c5738..bd98d23 100644 --- a/src/window.h +++ b/src/window.h @@ -29,14 +29,14 @@ typedef struct MqWindow MqWindow; #include "application.h" #include "config.h" -#include "tab.h" +#include "tab-page.h" struct MqWindow { MqApplication *application; MqConfig *config; GtkWidget *window; GtkWidget *notebook; - MqTab *root_tab; + MqTabPage *root_tab; guint current_tab; gboolean fullscreen; }; |