Mercurial > geeqie.yaz
comparison src/collect.c @ 1176:d3e51e1a02f8
Hide .gqv extension from collection name in collection window title and recent menu list.
author | zas_ |
---|---|
date | Sun, 23 Nov 2008 22:05:27 +0000 |
parents | 0bea79d87065 |
children | e2bbe90b0dcd |
comparison
equal
deleted
inserted
replaced
1175:2518a4a73d89 | 1176:d3e51e1a02f8 |
---|---|
981 collection_table_refresh(cw->table); | 981 collection_table_refresh(cw->table); |
982 } | 982 } |
983 | 983 |
984 static void collection_window_update_title(CollectWindow *cw) | 984 static void collection_window_update_title(CollectWindow *cw) |
985 { | 985 { |
986 gboolean free_name = FALSE; | |
987 gchar *name; | |
986 gchar *buf; | 988 gchar *buf; |
987 | 989 |
988 if (!cw) return; | 990 if (!cw) return; |
989 | 991 |
990 buf = g_strdup_printf(_("%s - Collection - %s"), cw->cd->name, GQ_APPNAME); | 992 if (file_extension_match(cw->cd->name, GQ_COLLECTION_EXT)) |
993 { | |
994 name = remove_extension_from_path(cw->cd->name); | |
995 free_name = TRUE; | |
996 } | |
997 else | |
998 { | |
999 name = cw->cd->name; | |
1000 } | |
1001 | |
1002 buf = g_strdup_printf(_("%s - Collection - %s"), name, GQ_APPNAME); | |
1003 if (free_name) g_free(name); | |
991 gtk_window_set_title(GTK_WINDOW(cw->window), buf); | 1004 gtk_window_set_title(GTK_WINDOW(cw->window), buf); |
992 g_free(buf); | 1005 g_free(buf); |
993 } | 1006 } |
994 | 1007 |
995 static void collection_window_update_info(CollectionData *cd, CollectInfo *ci, gpointer data) | 1008 static void collection_window_update_info(CollectionData *cd, CollectInfo *ci, gpointer data) |