Skip to content

Commit

Permalink
Cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent Monin committed Mar 31, 2009
1 parent dc03f50 commit f1b4951
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/bar_exif.c
Original file line number Diff line number Diff line change
Expand Up @@ -782,12 +782,11 @@ GtkWidget *bar_pane_exif_new_from_config(const gchar **attribute_names, const gc
void bar_pane_exif_update_from_config(GtkWidget *pane, const gchar **attribute_names, const gchar **attribute_values)
{
PaneExifData *ped;
gchar *title = NULL;

ped = g_object_get_data(G_OBJECT(pane), "pane_data");
if (!ped) return;

gchar *title = NULL;

while (*attribute_names)
{
const gchar *option = *attribute_names++;
Expand Down
6 changes: 2 additions & 4 deletions src/metadata.c
Original file line number Diff line number Diff line change
Expand Up @@ -473,14 +473,12 @@ GList *metadata_read_list(FileData *fd, const gchar *key, MetadataFormat format)
{
if (metadata_legacy_read(fd, &list, NULL)) return list;
}

if (strcmp(key, COMMENT_KEY) == 0)
else if (strcmp(key, COMMENT_KEY) == 0)
{
gchar *comment = NULL;
if (metadata_legacy_read(fd, NULL, &comment)) return g_list_append(NULL, comment);
}

if (strncmp(key, "file.", 5) == 0)
else if (strncmp(key, "file.", 5) == 0)
{
return g_list_append(NULL, metadata_file_info(fd, key, format));
}
Expand Down

0 comments on commit f1b4951

Please sign in to comment.