Revision: 1564
http://geeqie.svn.sourceforge.net/geeqie/?rev=1564&view=rev
Author: nadvornik
Date: 2009-03-20 17:02:00 +0000 (Fri, 20 Mar 2009)
Log Message:
-----------
added tooltips to external editors on toolbar
- patch by Colin Clark
Modified Paths:
--------------
trunk/src/editors.c
trunk/src/editors.h
trunk/src/layout_util.c
Modified: trunk/src/editors.c
===================================================================
--- trunk/src/editors.c 2009-03-20 16:28:43 UTC (rev 1563)
+++ trunk/src/editors.c 2009-03-20 17:02:00 UTC (rev 1564)
@@ -84,6 +84,7 @@
g_free(editor->exec);
g_free(editor->menu_path);
g_free(editor->hotkey);
+ g_free(editor->comment);
string_list_free(editor->ext_list);
g_free(editor->file);
g_free(editor);
@@ -266,6 +267,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);
Modified: trunk/src/editors.h
===================================================================
--- trunk/src/editors.h 2009-03-20 16:28:43 UTC (rev 1563)
+++ trunk/src/editors.h 2009-03-20 17:02:00 UTC (rev 1564)
@@ -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;
};
Modified: trunk/src/layout_util.c
===================================================================
--- trunk/src/layout_util.c 2009-03-20 16:28:43 UTC (rev 1563)
+++ trunk/src/layout_util.c 2009-03-20 17:02:00 UTC (rev 1564)
@@ -1684,7 +1684,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))
{
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
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-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geeqie-svn