aboutsummaryrefslogtreecommitdiff
path: root/libqmenumodel/src
diff options
context:
space:
mode:
authorNick Dedekind <nicholas.dedekind@gmail.com>2013-08-12 12:13:00 +0200
committerLars Uebernickel <lars.uebernickel@canonical.com>2013-08-12 12:13:00 +0200
commit3ded9bbbc0d26615c6d87d3de7159b87637559b5 (patch)
tree3d48dffe64a939576d287924e64fa8f9488743e2 /libqmenumodel/src
parent6bd9b6831e7046b5c414840f88aee8002be3cbb6 (diff)
parent62514129ef270f9fcc7c2be628fd2f7ec5c2199a (diff)
downloadqmenumodel-3ded9bbbc0d26615c6d87d3de7159b87637559b5.tar.gz
qmenumodel-3ded9bbbc0d26615c6d87d3de7159b87637559b5.tar.bz2
qmenumodel-3ded9bbbc0d26615c6d87d3de7159b87637559b5.zip
use correct qvariant types for sensitive and isSeparator roles
Diffstat (limited to 'libqmenumodel/src')
-rw-r--r--libqmenumodel/src/unitymenumodel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libqmenumodel/src/unitymenumodel.cpp b/libqmenumodel/src/unitymenumodel.cpp
index a164476..631a3c2 100644
--- a/libqmenumodel/src/unitymenumodel.cpp
+++ b/libqmenumodel/src/unitymenumodel.cpp
@@ -439,10 +439,10 @@ QVariant UnityMenuModel::data(const QModelIndex &index, int role) const
return gtk_menu_tracker_item_get_label (item);
case SensitiveRole:
- return gtk_menu_tracker_item_get_sensitive (item);
+ return gtk_menu_tracker_item_get_sensitive (item) == TRUE ? true : false;
case IsSeparatorRole:
- return gtk_menu_tracker_item_get_is_separator (item);
+ return gtk_menu_tracker_item_get_is_separator (item) == TRUE ? true : false;
case IconRole: {
GIcon *icon = gtk_menu_tracker_item_get_icon (item);