summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-17 19:22:34 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-17 19:22:34 (EDT)
commit12d11cc30c07ff99341a0e26300767a59b34d434 (patch)
tree18047afe9615738aa02481759d221a0ed3a4d354
parent60574acaa26bc50cd83a9aa8f2c044cdca94c3dc (diff)
downloadmarquee-12d11cc30c07ff99341a0e26300767a59b34d434.zip
marquee-12d11cc30c07ff99341a0e26300767a59b34d434.tar.gz
marquee-12d11cc30c07ff99341a0e26300767a59b34d434.tar.bz2
MqTab: Cast MqTabLabel for mq_tab_label_set_position()
-rw-r--r--src/tab.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tab.c b/src/tab.c
index 318d40b..74c9085 100644
--- a/src/tab.c
+++ b/src/tab.c
@@ -45,7 +45,8 @@ update_positions(MqTab *node, gint step)
if (node) {
node->position += step;
if (node->tab) {
- mq_tab_label_set_position(node->tab, node->position);
+ mq_tab_label_set_position(MQ_TAB_LABEL(node->tab),
+ node->position);
}
if (node->next) {
update_positions(node->next, step);
@@ -230,7 +231,7 @@ void
mq_tab_update_position(MqTab *tab, guint position)
{
tab->position = position;
- mq_tab_label_set_position(tab->tab, position);
+ mq_tab_label_set_position(MQ_TAB_LABEL(tab->tab), position);
}
guint