gnome-panel r11087 - branches/gnome-2-22/gnome-panel
- From: vuntz svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-panel r11087 - branches/gnome-2-22/gnome-panel
- Date: Wed, 7 May 2008 16:31:14 +0100 (BST)
Author: vuntz
Date: Wed May 7 15:31:14 2008
New Revision: 11087
URL: http://svn.gnome.org/viewvc/gnome-panel?rev=11087&view=rev
Log:
2008-05-07 Vincent Untz <vuntz gnome org>
* panel-recent.c: (show_uri): do not only look for applications that
can open URI; if the file is gio-native (file://), then it's fine to
get applications that can open paths.
Modified:
branches/gnome-2-22/gnome-panel/ChangeLog
branches/gnome-2-22/gnome-panel/panel-recent.c
Modified: branches/gnome-2-22/gnome-panel/panel-recent.c
==============================================================================
--- branches/gnome-2-22/gnome-panel/panel-recent.c (original)
+++ branches/gnome-2-22/gnome-panel/panel-recent.c Wed May 7 15:31:14 2008
@@ -41,11 +41,15 @@
GError **error)
{
char **env;
+ GFile *file;
GAppInfo *app;
GList *uris = NULL;
gboolean ret;
- app = g_app_info_get_default_for_type (mime_type, TRUE);
+ file = g_file_new_for_uri (uri);
+ app = g_app_info_get_default_for_type (mime_type, !g_file_is_native (file));
+ g_object_unref (file);
+
if (app == NULL) {
g_set_error (error, 0, 0,
_("Could not find a suitable application."));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]