Hello Vladimir
Yes, this would be a correct implementation. It would be great if you could send a patch.

I have attached a patch file, hopefully the right format.

Colin Clark..

Index: editors.c
===================================================================
--- editors.c	(revision 1558)
+++ editors.c	(working copy)
@@ -264,6 +264,8 @@
 	
 	editor->hotkey = g_key_file_get_string(key_file, DESKTOP_GROUP, "X-Geeqie-Hotkey", NULL);
 
+	editor->comment = g_key_file_get_string(key_file, DESKTOP_GROUP, "Comment", NULL);
+
 	extensions = g_key_file_get_string(key_file, DESKTOP_GROUP, "X-Geeqie-File-Extensions", NULL);
 	if (extensions)
 		editor->ext_list = filter_to_list(extensions);
Index: layout_util.c
===================================================================
--- layout_util.c	(revision 1558)
+++ layout_util.c	(working copy)
@@ -1678,7 +1678,7 @@
 		{
 		GList *path;
 		EditorDescription *editor = work->data;
-		GtkActionEntry entry = { editor->key, NULL, editor->name, editor->hotkey, NULL, G_CALLBACK(layout_menu_edit_cb) };
+		GtkActionEntry entry = { editor->key, NULL, editor->name, editor->hotkey, editor->comment, G_CALLBACK(layout_menu_edit_cb) };
 		
 		if (editor->icon && register_theme_icon_as_stock(editor->key, editor->icon))
 			{
Index: editors.h
===================================================================
--- editors.h	(revision 1558)
+++ editors.h	(working copy)
@@ -45,6 +45,7 @@
 	gchar *hotkey;
 	GList *ext_list;
 	gchar *file;
+	gchar *comment;		/* .desktop Comment key, used to show a tooltip */
 	EditorFlags flags;
 	gboolean hidden;
 };
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Geeqie-devel mailing list
Geeqie-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geeqie-devel

Reply via email to