summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-09-24 13:40:42 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-09-24 13:40:42 (EDT)
commit0cfe967819c1dc21b8697929cee3533013727a24 (patch)
treec77ba7695990afa476a57ede72f33b5fb2c12fe0 /src
parentf234be2bc51df704bd866fb69b3299766c3c9bcb (diff)
downloadmarquee-0cfe967819c1dc21b8697929cee3533013727a24.zip
marquee-0cfe967819c1dc21b8697929cee3533013727a24.tar.gz
marquee-0cfe967819c1dc21b8697929cee3533013727a24.tar.bz2
MqTab: Rename "tab_position" member to "position"
Diffstat (limited to 'src')
-rw-r--r--src/tab.c4
-rw-r--r--src/tab.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/tab.c b/src/tab.c
index 9d0ad94..47d048c 100644
--- a/src/tab.c
+++ b/src/tab.c
@@ -206,7 +206,7 @@ update_tab_label(MqTab *tab)
{
gchar *label;
- label = g_strdup_printf("%d. %s", tab->tab_position + 1, tab->title);
+ label = g_strdup_printf("%d. %s", tab->position + 1, tab->title);
gtk_label_set_text(GTK_LABEL(tab->tab_label), label);
gtk_widget_set_tooltip_text(tab->tab, label);
g_free(label);
@@ -291,6 +291,6 @@ mq_tab_get_container(MqTab *tab)
void
mq_tab_update_position(MqTab *tab, guint position)
{
- tab->tab_position = position;
+ tab->position = position;
update_tab_label(tab);
}
diff --git a/src/tab.h b/src/tab.h
index 1036dbe..c577daf 100644
--- a/src/tab.h
+++ b/src/tab.h
@@ -36,6 +36,7 @@ struct MqTab {
MqTab *next;
MqTab *first_child;
MqTab *last_child;
+ guint position;
guint tree_size;
MqApplication *application;
GtkWidget *container;
@@ -46,7 +47,6 @@ struct MqTab {
GtkWidget *tab_label;
cairo_surface_t *favicon;
const gchar *title;
- guint tab_position;
WebKitWebView *web_view;
GtkWidget *popover;
};