gedit Reference Manual: GeditCommands

## GeditCommands GeditCommands |

## Functions

void | gedit_commands_load_location ()
GSList * | gedit_commands_load_locations ()
void | gedit_commands_save_document ()
void | gedit_commands_save_all_documents ()

## Description

## Functions

### gedit_commands_load_location ()

    void
    gedit_commands_load_location (GeditWindow *window,
                                  GFile *location,
                                  const GtkSourceEncoding *encoding,
                                  gint line_pos,
                                  gint column_pos);

Loads `location` . Ignores non-existing locations

#### Parameters

window | a GeditWindow |
location | a GFile to be loaded |
encoding | the GtkSourceEncoding of `location` . | [allow-none]
line_pos | the line position to place the cursor when `location` is loaded |
column_pos | the line column to place the cursor when `location` is loaded |

### gedit_commands_load_locations ()

    GSList *
    gedit_commands_load_locations (GeditWindow *window,
                                   const GSList *locations,
                                   const GtkSourceEncoding *encoding,
                                   gint line_pos,
                                   gint column_pos);

Loads `locations` . Ignore non-existing locations

#### Parameters

window | a GeditWindow |
locations | the locations to be loaded. | [element-type Gio.File]
encoding | the GtkSourceEncoding of `location` . | [allow-none]
line_pos | the line position to place the cursor when `location` is loaded |
column_pos | the line column to place the cursor when `location` is loaded |

#### Returns

the locations that were loaded.

[element-type Gedit.Document][transfer container]

### gedit_commands_save_document ()

    void
    gedit_commands_save_document (GeditWindow *window,
                                  GeditDocument *document);

### gedit_commands_save_all_documents ()

    void
    gedit_commands_save_all_documents (GeditWindow *window);

## Types and Values