summaryrefslogtreecommitdiff
path: root/src/appfinder-model.c
diff options
context:
space:
mode:
authorAndrzej <ndrwrdck@gmail.com>2012-02-21 18:30:55 +0900
committerAndrzej <ndrwrdck@gmail.com>2012-02-21 18:30:55 +0900
commit5743612275c1b2828b11b3d665d2d787d193f782 (patch)
treea17fb0865cee3f293e3256d2c6971f023586c237 /src/appfinder-model.c
parent53830d5029e3537a851fbb733198a2268561f18a (diff)
downloadxfce4-appfinder-5743612275c1b2828b11b3d665d2d787d193f782.tar.gz
Bug #8490, set single line label for icon sizes < "small"
Effective only when icon_view=FALSE.
Diffstat (limited to 'src/appfinder-model.c')
-rw-r--r--src/appfinder-model.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/appfinder-model.c b/src/appfinder-model.c
index 9bce6e2..a1cc770 100644
--- a/src/appfinder-model.c
+++ b/src/appfinder-model.c
@@ -460,7 +460,12 @@ xfce_appfinder_model_get_value (GtkTreeModel *tree_model,
comment = garcon_menu_item_get_comment (item->item);
if (comment != NULL)
- item->abstract = g_markup_printf_escaped ("<b>%s</b>\n%s", name, comment);
+ {
+ if (model->icon_size < XFCE_APPFINDER_ICON_SIZE_SMALL)
+ item->abstract = g_markup_printf_escaped ("<b>%s</b> &#8212; %s", name, comment);
+ else
+ item->abstract = g_markup_printf_escaped ("<b>%s</b>\n%s", name, comment);
+ }
else
item->abstract = g_markup_printf_escaped ("<b>%s</b>", name);
}
@@ -2085,6 +2090,12 @@ xfce_appfinder_model_icon_theme_changed (XfceAppfinderModel *model)
item->icon_large = NULL;
item_changed = TRUE;
}
+ if (item->abstract != NULL)
+ {
+ g_free (item->abstract);
+ item->abstract = NULL;
+ item_changed = TRUE;
+ }
if (item->item == NULL)
{