[gnome-panel] [panel] Display GenericName in tooltip if there's no Comment
- From: Vincent Untz <vuntz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] [panel] Display GenericName in tooltip if there's no Comment
- Date: Mon, 8 Mar 2010 13:07:28 +0000 (UTC)
commit 91e58f76c4ef371529192b5f494f1642f2bac4a4
Author: Vincent Untz <vuntz gnome org>
Date: Mon Mar 8 14:00:37 2010 +0100
[panel] Display GenericName in tooltip if there's no Comment
This can help users get a good idea of what the application is about.
https://bugzilla.gnome.org/show_bug.cgi?id=605817
gnome-panel/menu.c | 18 +++++++++++-------
1 files changed, 11 insertions(+), 7 deletions(-)
---
diff --git a/gnome-panel/menu.c b/gnome-panel/menu.c
index 9154d52..004a279 100644
--- a/gnome-panel/menu.c
+++ b/gnome-panel/menu.c
@@ -1498,14 +1498,18 @@ create_menuitem (GtkWidget *menu,
alias_directory ? gmenu_tree_directory_get_name (alias_directory) :
gmenu_tree_entry_get_display_name (entry));
- if ((alias_directory &&
- gmenu_tree_directory_get_comment (alias_directory)) ||
- (!alias_directory &&
- gmenu_tree_entry_get_comment (entry)))
+ if (alias_directory &&
+ gmenu_tree_directory_get_comment (alias_directory))
panel_util_set_tooltip_text (menuitem,
- alias_directory ?
- gmenu_tree_directory_get_comment (alias_directory) :
- gmenu_tree_entry_get_comment (entry));
+ gmenu_tree_directory_get_comment (alias_directory));
+ else if (!alias_directory &&
+ gmenu_tree_entry_get_comment (entry))
+ panel_util_set_tooltip_text (menuitem,
+ gmenu_tree_entry_get_comment (entry));
+ else if (!alias_directory &&
+ gmenu_tree_entry_get_generic_name (entry))
+ panel_util_set_tooltip_text (menuitem,
+ gmenu_tree_entry_get_generic_name (entry));
g_signal_connect_after (menuitem, "button_press_event",
G_CALLBACK (menuitem_button_press_event), NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]