r992@localhost: muntyan | 2005-11-25 08:45:43 -0600
moo_edit_get_uri()
This commit is contained in:
parent
0ffd92e61c
commit
ae0633f9bd
@ -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*
|
static GtkTextBuffer*
|
||||||
get_buffer (MooEdit *edit)
|
get_buffer (MooEdit *edit)
|
||||||
{
|
{
|
||||||
|
@ -116,6 +116,8 @@ const char *moo_edit_get_display_basename (MooEdit *edit);
|
|||||||
|
|
||||||
const char *moo_edit_get_encoding (MooEdit *edit);
|
const char *moo_edit_get_encoding (MooEdit *edit);
|
||||||
|
|
||||||
|
char *moo_edit_get_uri (MooEdit *edit);
|
||||||
|
|
||||||
gboolean moo_edit_is_empty (MooEdit *edit);
|
gboolean moo_edit_is_empty (MooEdit *edit);
|
||||||
void moo_edit_set_modified (MooEdit *edit,
|
void moo_edit_set_modified (MooEdit *edit,
|
||||||
gboolean modified);
|
gboolean modified);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user