From 4f7fa059f6fb02d4571614ccf54a9c0d535427a4 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Tue, 17 Oct 2017 22:12:57 -0400 Subject: MqTabPage: Rename a struct member --- (limited to 'src/tab-page.c') 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); } -- cgit v0.9.1