Revision: 1162
http://geeqie.svn.sourceforge.net/geeqie/?rev=1162&view=rev
Author: nadvornik
Date: 2008-10-18 08:40:32 +0000 (Sat, 18 Oct 2008)
Log Message:
-----------
reordered advanced exif columns
Modified Paths:
--------------
trunk/src/bar_exif.c
Modified: trunk/src/bar_exif.c
===================================================================
--- trunk/src/bar_exif.c 2008-10-18 08:31:25 UTC (rev 1161)
+++ trunk/src/bar_exif.c 2008-10-18 08:40:32 UTC (rev 1162)
@@ -250,7 +250,11 @@
g_free(text);
description = exif_get_tag_description_by_key(name);
- if (!description) description = g_strdup(name);
+ if (!description || *description == '\0')
+ {
+ g_free(description);
+ description = g_strdup(name);
+ }
buf = g_strconcat(description, ":", NULL);
g_free(description);
@@ -306,7 +310,11 @@
g_free(text);
elements = g_strdup_printf("%d",
exif_item_get_elements(item));
description = exif_item_get_description(item);
- if (!description) description = g_strdup(tag_name);
+ if (!description || *description == '\0')
+ {
+ g_free(description);
+ description = g_strdup(tag_name);
+ }
gtk_list_store_append(store, &iter);
gtk_list_store_set(store, &iter,
@@ -492,12 +500,12 @@
bar_exif_add_column_check(eb->listview, "", EXIF_ADVCOL_ENABLED);
+ bar_exif_add_column(eb->listview, _("Description"),
EXIF_ADVCOL_DESCRIPTION, FALSE);
+ bar_exif_add_column(eb->listview, _("Value"), EXIF_ADVCOL_VALUE, TRUE);
+ bar_exif_add_column(eb->listview, _("Name"), EXIF_ADVCOL_NAME, FALSE);
bar_exif_add_column(eb->listview, _("Tag"), EXIF_ADVCOL_TAG, FALSE);
- bar_exif_add_column(eb->listview, _("Name"), EXIF_ADVCOL_NAME, FALSE);
- bar_exif_add_column(eb->listview, _("Value"), EXIF_ADVCOL_VALUE, TRUE);
bar_exif_add_column(eb->listview, _("Format"), EXIF_ADVCOL_FORMAT,
FALSE);
bar_exif_add_column(eb->listview, _("Elements"), EXIF_ADVCOL_ELEMENTS,
FALSE);
- bar_exif_add_column(eb->listview, _("Description"),
EXIF_ADVCOL_DESCRIPTION, FALSE);
eb->advanced_scrolled = gtk_scrolled_window_new(NULL, NULL);
gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(eb->advanced_scrolled),
GTK_SHADOW_IN);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geeqie-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geeqie-svn