summaryrefslogtreecommitdiffstats
path: root/src/tab-page.c
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-17 22:12:57 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-17 22:12:57 (EDT)
commit4f7fa059f6fb02d4571614ccf54a9c0d535427a4 (patch)
tree0011b2d4b05eca18804331eecf1b54eb1958c06b /src/tab-page.c
parent41318923b2e942ea419ba40aec193e27d103385e (diff)
downloadmarquee-4f7fa059f6fb02d4571614ccf54a9c0d535427a4.zip
marquee-4f7fa059f6fb02d4571614ccf54a9c0d535427a4.tar.gz
marquee-4f7fa059f6fb02d4571614ccf54a9c0d535427a4.tar.bz2
MqTabPage: Rename a struct member
Diffstat (limited to 'src/tab-page.c')
-rw-r--r--src/tab-page.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/tab-page.c b/src/tab-page.c
index ae6113b..2ae7eff 100644
--- a/src/tab-page.c
+++ b/src/tab-page.c
@@ -59,7 +59,7 @@ struct _MqTabPage {
guint tree_size;
MqApplication *application;
GtkWidget *container;
- GtkWidget *tab;
+ GtkWidget *label;
const gchar *title;
WebKitWebView *web_view;
};
@@ -178,7 +178,7 @@ init_non_root(MqTabPage *tab_page)
g_signal_connect(tab_page->web_view, "notify::title",
G_CALLBACK(title_cb), tab_page);
- tab_page->tab = mq_tab_label_new(tab_page,
+ tab_page->label = mq_tab_label_new(tab_page,
MQ_WEB_VIEW(tab_page->web_view));
find_toolbar = mq_find_toolbar_new(MQ_WEB_VIEW(tab_page->web_view));
@@ -385,8 +385,8 @@ mq_tab_page_update_positions(MqTabPage *node, gint step)
{
if (node) {
node->position += step;
- if (node->tab) {
- mq_tab_label_set_position(MQ_TAB_LABEL(node->tab),
+ if (node->label) {
+ mq_tab_label_set_position(MQ_TAB_LABEL(node->label),
node->position);
}
if (node->next) {
@@ -401,7 +401,7 @@ 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->tab), position);
+ mq_tab_label_set_position(MQ_TAB_LABEL(tab_page->label), position);
}
guint
@@ -500,8 +500,8 @@ void
mq_tab_page_scroll_tab_labels(MqTabPage *node)
{
for (; node; node = node->next) {
- if (node->tab) {
- mq_tab_label_scroll(MQ_TAB_LABEL(node->tab));
+ if (node->label) {
+ mq_tab_label_scroll(MQ_TAB_LABEL(node->label));
}
mq_tab_scroll_tab_labels(node->first_child);
}
@@ -511,8 +511,8 @@ void
mq_tab_page_begin_scrolling_tab_labels(MqTabPage *node)
{
for (; node; node = node->next) {
- if (node->tab) {
- mq_tab_label_begin_scrolling(MQ_TAB_LABEL(node->tab));
+ if (node->label) {
+ mq_tab_label_begin_scrolling(MQ_TAB_LABEL(node->label));
}
mq_tab_begin_scrolling_tab_labels(node->first_child);
}
@@ -522,8 +522,8 @@ void
mq_tab_page_end_scrolling_tab_labels(MqTabPage *node)
{
for (; node; node = node->next) {
- if (node->tab) {
- mq_tab_label_end_scrolling(MQ_TAB_LABEL(node->tab));
+ if (node->label) {
+ mq_tab_label_end_scrolling(MQ_TAB_LABEL(node->label));
}
mq_tab_end_scrolling_tab_labels(node->first_child);
}