Remove xed_utils_location_has_file_scheme
This commit is contained in:
@@ -1323,7 +1323,7 @@ document_loader_loaded (XedDocumentLoader *loader,
|
||||
/* special case creating a named new doc */
|
||||
else if (doc->priv->create &&
|
||||
(error->domain == G_IO_ERROR && error->code == G_IO_ERROR_NOT_FOUND) &&
|
||||
(xed_utils_location_has_file_scheme (doc->priv->location)))
|
||||
(g_file_has_uri_scheme (doc->priv->location, "file")))
|
||||
{
|
||||
reset_temp_loading_data (doc);
|
||||
|
||||
@@ -1655,7 +1655,7 @@ xed_document_is_local (XedDocument *doc)
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
return xed_utils_location_has_file_scheme (doc->priv->location);
|
||||
return g_file_has_uri_scheme (doc->priv->location, "file");
|
||||
}
|
||||
|
||||
static void
|
||||
|
@@ -60,17 +60,6 @@
|
||||
|
||||
#define STDIN_DELAY_MICROSECONDS 100000
|
||||
|
||||
/**
|
||||
* xed_utils_uris_has_file_scheme
|
||||
*
|
||||
* Returns: %TRUE if @location is a file: uri and is not a chained uri
|
||||
*/
|
||||
gboolean
|
||||
xed_utils_location_has_file_scheme (GFile *location)
|
||||
{
|
||||
return g_file_has_uri_scheme (location, "file");
|
||||
}
|
||||
|
||||
static void
|
||||
widget_get_origin (GtkWidget *widget,
|
||||
gint *x,
|
||||
@@ -1257,7 +1246,7 @@ xed_utils_basename_for_display (GFile *location)
|
||||
uri = g_file_get_uri (location);
|
||||
|
||||
/* First, try to query the display name, but only on local files */
|
||||
if (xed_utils_location_has_file_scheme (location))
|
||||
if (g_file_has_uri_scheme (location, "file"))
|
||||
{
|
||||
GFileInfo *info;
|
||||
info = g_file_query_info (location,
|
||||
|
@@ -49,8 +49,6 @@ G_BEGIN_DECLS
|
||||
|
||||
enum { XED_ALL_WORKSPACES = 0xffffffff };
|
||||
|
||||
gboolean xed_utils_location_has_file_scheme (GFile *location);
|
||||
|
||||
void xed_utils_menu_position_under_widget (GtkMenu *menu,
|
||||
gint *x,
|
||||
gint *y,
|
||||
|
Reference in New Issue
Block a user