source-dialog: improve URI handler

Now we have a more reliable way to detect whether
the passed URI is a file or a resource.

https://bugzilla.gnome.org/show_bug.cgi?id=780455
This commit is contained in:
Georges Basile Stavracas Neto
2017-04-13 09:17:52 -03:00
parent 78eb9a7435
commit fc074bcde3
4 changed files with 86 additions and 56 deletions
+2 -1
View File
@@ -121,7 +121,8 @@ void fix_popover_menu_icons (GtkPopover
gboolean uri_get_fields (const gchar *uri,
gchar **schema,
gchar **host,
gchar **path);
gchar **path,
gboolean *is_file);
void get_source_parent_name_color (GcalManager *manager,
ESource *source,