summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/notebook.c2
-rw-r--r--src/tab-page.c14
-rw-r--r--src/tab-page.h6
3 files changed, 11 insertions, 11 deletions
diff --git a/src/notebook.c b/src/notebook.c
index 277117c..0c70a47 100644
--- a/src/notebook.c
+++ b/src/notebook.c
@@ -177,7 +177,7 @@ insert_page(MqNotebook *notebook, MqTabTree *node, const gchar *uri)
gtk_widget_show_all(GTK_WIDGET(node->page));
gtk_widget_show_all(GTK_WIDGET(node->label));
- mq_tab_page_update_position(node->page, MQ_TREE(node)->position);
+ mq_tab_page_set_position (node->page, MQ_TREE(node)->position);
mq_tab_label_set_position(node->label, MQ_TREE(node)->position);
}
diff --git a/src/tab-page.c b/src/tab-page.c
index 45c3c32..fa78091 100644
--- a/src/tab-page.c
+++ b/src/tab-page.c
@@ -242,19 +242,19 @@ mq_tab_page_get_label(MqTabPage *tab_page)
return MQ_TAB_LABEL(tab_page->label);
}
-void
-mq_tab_page_update_position(MqTabPage *tab_page, guint position)
-{
- tab_page->position = position;
- mq_tab_label_set_position(MQ_TAB_LABEL(tab_page->label), position);
-}
-
guint
mq_tab_page_get_position(MqTabPage *tab_page)
{
return tab_page->position;
}
+void
+mq_tab_page_set_position(MqTabPage *tab_page, guint position)
+{
+ tab_page->position = position;
+ mq_tab_label_set_position(MQ_TAB_LABEL(tab_page->label), position);
+}
+
const gchar *
mq_tab_page_get_title(MqTabPage *tab_page)
{
diff --git a/src/tab-page.h b/src/tab-page.h
index 6238015..0652e28 100644
--- a/src/tab-page.h
+++ b/src/tab-page.h
@@ -67,12 +67,12 @@ mq_tab_page_get_window(MqTabPage *tab_page);
MqTabLabel *
mq_tab_page_get_label(MqTabPage *tab_page);
-void
-mq_tab_page_update_position(MqTabPage *tab_page, guint position);
-
guint
mq_tab_page_get_position(MqTabPage *tab_page);
+void
+mq_tab_page_set_position(MqTabPage *tab_page, guint position);
+
const gchar *
mq_tab_page_get_title(MqTabPage *tab_page);