eog r4721 - in trunk: . src
- From: friemann svn gnome org
- To: svn-commits-list gnome org
- Subject: eog r4721 - in trunk: . src
- Date: Tue, 2 Sep 2008 15:43:28 +0000 (UTC)
Author: friemann
Date: Tue Sep 2 15:43:28 2008
New Revision: 4721
URL: http://svn.gnome.org/viewvc/eog?rev=4721&view=rev
Log:
2008-09-02 Felix Riemann <friemann svn gnome org>
* src/eog-window.c: (add_file_to_recent_files),
(eog_window_update_recent_files_menu):
Don't use "private" groups to filter our recent files.
Filter by application data and supply a group from the
desktop-bookmark-spec instead. Hardcode the app name
used for filtering to be locale independent.
Modified:
trunk/ChangeLog
trunk/src/eog-window.c
Modified: trunk/src/eog-window.c
==============================================================================
--- trunk/src/eog-window.c (original)
+++ trunk/src/eog-window.c Tue Sep 2 15:43:28 2008
@@ -88,7 +88,8 @@
#define EOG_WINDOW_FULLSCREEN_TIMEOUT 5 * 1000
#define EOG_WINDOW_FULLSCREEN_POPUP_THRESHOLD 5
-#define EOG_RECENT_FILES_GROUP "Eye of Gnome"
+#define EOG_RECENT_FILES_GROUP "Graphics"
+#define EOG_RECENT_FILES_APP_NAME "Eye of GNOME Image Viewer"
#define EOG_RECENT_FILES_LIMIT 5
typedef enum {
@@ -950,7 +951,7 @@
recent_data->display_name = NULL;
recent_data->description = NULL;
recent_data->mime_type = (gchar *) g_file_info_get_content_type (file_info);
- recent_data->app_name = (gchar *) g_get_application_name ();
+ recent_data->app_name = EOG_RECENT_FILES_APP_NAME;
recent_data->app_exec = g_strjoin(" ", g_get_prgname (), "%u", NULL);
recent_data->groups = groups;
recent_data->is_private = FALSE;
@@ -3529,7 +3530,7 @@
GtkRecentInfo *info = li->data;
gboolean is_rtl = (gtk_widget_get_default_direction () == GTK_TEXT_DIR_RTL);
- if (!gtk_recent_info_has_group (info, EOG_RECENT_FILES_GROUP))
+ if (!gtk_recent_info_has_application (info, EOG_RECENT_FILES_APP_NAME))
continue;
count_recent++;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]