r992@localhost: muntyan | 2005-11-25 08:45:43 -0600

moo_edit_get_uri()
This commit is contained in:
Yevgen Muntyan 2005-11-25 20:48:39 +00:00
parent 0ffd92e61c
commit ae0633f9bd
2 changed files with 14 additions and 0 deletions

View File

@ -579,6 +579,18 @@ moo_edit_get_encoding (MooEdit *edit)
}
char*
moo_edit_get_uri (MooEdit *edit)
{
g_return_val_if_fail (MOO_IS_EDIT (edit), NULL);
if (edit->priv->filename)
return g_filename_to_uri (edit->priv->filename, NULL, NULL);
else
return NULL;
}
static GtkTextBuffer*
get_buffer (MooEdit *edit)
{

View File

@ -116,6 +116,8 @@ const char *moo_edit_get_display_basename (MooEdit *edit);
const char *moo_edit_get_encoding (MooEdit *edit);
char *moo_edit_get_uri (MooEdit *edit);
gboolean moo_edit_is_empty (MooEdit *edit);
void moo_edit_set_modified (MooEdit *edit,
gboolean modified);