aboutsummaryrefslogtreecommitdiff
path: root/src/idoscalemenuitem.c
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2013-06-07 16:55:11 -0400
committerLars Uebernickel <lars.uebernickel@canonical.com>2013-06-07 16:55:11 -0400
commit8db174af12924e1800de19df436fe8592ea50f23 (patch)
treee4375eb66a604898835fe7efc1c7886d746b8ad5 /src/idoscalemenuitem.c
parentc23cdfcb1536e1ed01b728c629ec1ee9ff0d8f01 (diff)
downloadayatana-ido-8db174af12924e1800de19df436fe8592ea50f23.tar.gz
ayatana-ido-8db174af12924e1800de19df436fe8592ea50f23.tar.bz2
ayatana-ido-8db174af12924e1800de19df436fe8592ea50f23.zip
idoscalemenuitem: look "{min,max}-icon" on the GMenuItem
'primary' and 'secondary' might be confusing.
Diffstat (limited to 'src/idoscalemenuitem.c')
-rw-r--r--src/idoscalemenuitem.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/idoscalemenuitem.c b/src/idoscalemenuitem.c
index 8fca9f6..7aaf9d6 100644
--- a/src/idoscalemenuitem.c
+++ b/src/idoscalemenuitem.c
@@ -1030,8 +1030,8 @@ ido_scale_menu_item_new_from_model (GMenuItem *menuitem,
gdouble min = 0.0;
gdouble max = 100.0;
gdouble step = 1.0;
- GIcon *primary_icon;
- GIcon *secondary_icon;
+ GIcon *min_icon;
+ GIcon *max_icon;
g_menu_item_get_attribute (menuitem, "min-value", "d", &min);
g_menu_item_get_attribute (menuitem, "max-value", "d", &max);
@@ -1057,14 +1057,14 @@ ido_scale_menu_item_new_from_model (GMenuItem *menuitem,
g_free (action);
}
- primary_icon = menu_item_get_icon (menuitem, "primary-icon");
- secondary_icon = menu_item_get_icon (menuitem, "secondary-icon");
- ido_scale_menu_item_set_icons (IDO_SCALE_MENU_ITEM (item), primary_icon, secondary_icon);
+ min_icon = menu_item_get_icon (menuitem, "min-icon");
+ max_icon = menu_item_get_icon (menuitem, "max-icon");
+ ido_scale_menu_item_set_icons (IDO_SCALE_MENU_ITEM (item), min_icon, max_icon);
- if (primary_icon)
- g_object_unref (primary_icon);
- if (secondary_icon)
- g_object_unref (secondary_icon);
+ if (min_icon)
+ g_object_unref (min_icon);
+ if (max_icon)
+ g_object_unref (max_icon);
return GTK_MENU_ITEM (item);
}