summaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-18 00:17:02 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-18 00:17:02 (EDT)
commit80bbf932e7eee44e7b5fa327731589d1c676e0ac (patch)
treeecd625576e85aa07a4a2e8d04fe161a4618e56a9 /src/window.c
parent8f9525ec9867c83ef8871a7289dde6127c78f0f8 (diff)
downloadmarquee-80bbf932e7eee44e7b5fa327731589d1c676e0ac.zip
marquee-80bbf932e7eee44e7b5fa327731589d1c676e0ac.tar.gz
marquee-80bbf932e7eee44e7b5fa327731589d1c676e0ac.tar.bz2
MqWindow: Use MqTabPage
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c20
1 files changed, 10 insertions, 10 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);
}