[Xfce4-commits] [xfce/xfdesktop] 04/05: Show 'No templates installed' when no templates are found
noreply at xfce.org
noreply at xfce.org
Wed Feb 18 17:21:25 CET 2015
This is an automated email from the git hooks/post-receive script.
eric pushed a commit to branch master
in repository xfce/xfdesktop.
commit c358fbe2ab2c13989099fc1ed1ea8d4e857a3e41
Author: Thaddaeus Tintenfisch <thad.fisch at gmail.com>
Date: Tue Feb 17 23:17:24 2015 +0100
Show 'No templates installed' when no templates are found
Signed-off-by: Eric Koegel <eric.koegel at gmail.com>
---
src/xfdesktop-file-icon-manager.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/xfdesktop-file-icon-manager.c b/src/xfdesktop-file-icon-manager.c
index d415412..de0bbba 100644
--- a/src/xfdesktop-file-icon-manager.c
+++ b/src/xfdesktop-file-icon-manager.c
@@ -1478,12 +1478,13 @@ xfdesktop_file_icon_manager_populate_context_menu(XfceDesktop *desktop,
templates_dir = g_file_new_for_path(templates_dir_path);
}
- if(templates_dir && !g_file_equal(home_dir, templates_dir))
- {
+ if(templates_dir && !g_file_equal(home_dir, templates_dir)) {
xfdesktop_file_icon_menu_fill_template_menu(tmpl_menu,
templates_dir,
fmanager);
- } else {
+ }
+
+ if(!gtk_container_get_children((GtkContainer*) tmpl_menu)) {
mi = gtk_menu_item_new_with_label(_("No templates installed"));
gtk_widget_set_sensitive(mi, FALSE);
gtk_widget_show(mi);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list