Returns the #GeditApp object. This object is a singleton and
represents the running gedit instance.
the #GeditApp pointer
Create a new #GeditWindow part of @app.
the new #GeditWindow
Retrives the #GeditWindow currently active.
the active #GeditWindow
Returns all the documents currently open in #GeditApp.
a newly allocated list of #GeditDocument objects
Gets the lockdown mask (see #GeditLockdownMask) for the application.
The lockdown mask determines which functions are locked down using
the GNOME-wise lockdown GConf keys.
Returns all the views currently present in #GeditApp.
a newly allocated list of #GeditView objects
Returns all the windows currently present in #GeditApp.
The list should not be freed
the list of #GeditWindows objects.
Load a document. This results in the "load" signal to be emitted.
the location where to load the document from.
the #GeditEncoding to encode the document, or %NULL.
the line to show.
the column to show.
whether the document should be created if it doesn't exist.
a copy of the internal #GFile
Gets the metadata assigned to @key.
the value assigned to @key.
name of the key
Load a document. This results in the "load" signal to be emitted.
the location where to load the document from.
the #GeditEncoding to encode the document, or %NULL.
the line to show.
the column to show.
whether the document should be created if it doesn't exist.
Cancel load of a document.
Save the document to its previous location. This results in the "save"
signal to be emitted.
optionnal #GeditDocumentSaveFlags.
Save the document to a new location. This results in the "save" signal
to be emitted.
the location where to save the document.
the #GeditEncoding to encode the document.
the #GeditDocumentNewlineType for the document.
optionnal #GeditDocumentSaveFlags.
Sets metadata on a document.
name of the first key to set
the location where to load the document from.
the #GeditEncoding to encode the document, or %NULL.
the line to show.
the column to show.
whether the document should be created if it doesn't exist.
Returns whether @object_path is a valid object path
%TRUE if @object_path is a valid object path
the object path
Get the string identifier for @method at @object_path.
the identifier for @method at @object_path
the object path
the method
Get the message method.
the message method
Get the message object path.
the message object path
Check if a message has a certain property.
%TRUE if message has @propname, %FALSE otherwise
the property name
Create a new message bus. Use gedit_message_bus_get_default() to get the
default, application wide, message bus. Creating a new bus is useful for
associating a specific bus with for instance a #GeditWindow.
a new #GeditMessageBus
Get the default application #GeditMessageBus.
the default #GeditMessageBus
Blocks evoking the callback specified by @id. Unblock the callback by
using gedit_message_bus_unblock().
the callback id
Blocks evoking the callback that matches provided @callback and @user_data.
Unblock the callback using gedit_message_unblock_by_func().
the object path
the method
the callback to block
the user_data with which the callback was connected
Connect a callback handler to be evoked when message @method at @object_path
is sent over the bus.
the callback identifier
the object path
the method
function to be called when message @method at @object_path is sent
user_data to use for the callback
function to evoke with @user_data as argument when @user_data needs to be freed
Disconnects a previously connected message callback.
the callback id as returned by gedit_message_bus_connect()
Disconnects a previously connected message callback by matching the
provided callback function and user_data. See also
gedit_message_bus_disconnect().
the object path
the method
the connected callback
the user_data with which the callback was connected
Calls @func for each message type registered on the bus
the callback function
the user data to supply to the callback function
Check whether a message type @method at @object_path is registered on the
bus.
type on the bus
%TRUE if the @method at @object_path is a registered message
the object path
the method
Get the registered #GeditMessageType for @method at @object_path. The
returned #GeditMessageType is owned by the bus and should not be unreffed.
is registered for @method at @object_path
the registered #GeditMessageType or %NULL if no message type
the object path
the method
Register a message on the bus. A message must be registered on the bus before
it can be send. This function registers the type for @method at
This function emits a #GeditMessageBus::registered signal.
the message type
the object path
the method to register
This provides a convenient way to quickly send a message @method at
specifies key (string) value pairs used to construct the message arguments.
To send a message synchronously use gedit_message_bus_send_sync().
the object path
the method
This sends the provided @message asynchronously over the bus. To send
a message synchronously, use gedit_message_bus_send_message_sync(). The
convenience function gedit_message_bus_send() can be used to easily send
a message without constructing the message object explicitly first.
the message to send
This sends the provided @message synchronously over the bus. To send
a message asynchronously, use gedit_message_bus_send_message(). The
convenience function gedit_message_bus_send_sync() can be used to easily send
a message without constructing the message object explicitly first.
the message to send
This provides a convenient way to quickly send a message @method at
specifies key (string) value pairs used to construct the message
arguments. To send a message asynchronously use gedit_message_bus_send().
The caller owns a reference to the #GeditMessage and should
call g_object_unref() when it is no longer needed.
the constructed #GeditMessage.
the object path
the method
Unblocks the callback specified by @id.
the callback id
Unblocks the callback that matches provided @callback and @user_data.
the object path
the method
the callback to block
the user_data with which the callback was connected
Unregisters a previously registered message type. This is especially useful
for plugins which should unregister message types when they are deactivated.
This function emits the #GeditMessageBus::unregistered signal.
the object path
the method
Unregisters all message types for @object_path. This is especially useful for
plugins which should unregister message types when they are deactivated.
This function emits the #GeditMessageBus::unregistered signal for all
unregistered message types.
the object path
Callback signature used for connecting callback functions to be called
when a message is received (see gedit_message_bus_connect()).
the #GeditMessageBus on which the message was sent
the #GeditMessage which was sent
the supplied user data when connecting the callback
Creates a new #GeditPanel with the given @orientation. You shouldn't create
a new panel use gedit_window_get_side_panel() or gedit_window_get_bottom_panel()
instead.
a new #GeditPanel object.
a #GtkOrientation
Switches to the page that contains @item.
%TRUE if it was activated
the item to be activated
Adds a new item to the @panel.
%TRUE is the item was successfully added.
the #GtkWidget to add to the @panel
unique name for the new item
the name to be shown in the @panel
the image to be shown in the @panel, or %NULL
Same as gedit_panel_add_item() but using an image from stock.
%TRUE is the item was successfully added.
the #GtkWidget to add to the @panel
unique name for the new item
the name to be shown in the @panel
a stock id, or %NULL
Gets the number of items in a @panel.
the number of items contained in #GeditPanel
Gets the orientation of the @panel.
the #GtkOrientation of #GeditPanel
Returns whether @item is the active widget in @panel
%TRUE if @item is the active widget
a #GtkWidget
Removes the widget @item from the panel if it is in the @panel and returns
%TRUE if there was not any problem.
%TRUE if it was well removed.
the item to be removed from the panel
Creates a new #GeditStatusbar.
the new #GeditStatusbar object
Flash a temporary message on the statusbar.
message context_id
message to flash on the statusbar
Sets the overwrite mode on the statusbar.
if the overwrite mode is set
Gets the #GeditTab associated with @doc.
the #GeditTab associated with @doc
a #GeditDocument
Gets the current state for the autosave feature
%TRUE if the autosave is enabled, else %FALSE
Gets the current interval for the autosaves
the value of the autosave
Gets the #GeditDocument associated to @tab.
the #GeditDocument associated to @tab
Gets the #GeditTabState of @tab.
the #GeditTabState of @tab
Gets the #GeditView inside @tab.
the #GeditView inside @tab
Enables or disables the autosave feature. It does not install an
autosave timeout if the document is new or is read-only
enable (%TRUE) or disable (%FALSE) auto save
Sets the interval for the autosave feature. It does nothing if the
interval is the same as the one already present. It removes the old
interval timeout and adds a new one with the autosave passed as
argument.
the new interval
Creates a new #GeditView object displaying the @doc document.
a new #GeditView
a #GeditDocument
Deletes the text currently selected in the #GtkTextBuffer associated
to the view and scroll to the cursor position.
Scrolls the @view to the cursor position.
Selects all the text displayed in the @view.
If @def is #TRUE, resets the font of the @view to the default font
otherwise sets it to @font_name.
whether to reset the default font
the name of the font to use
Closes all opened tabs.
Closes the @tab.
the #GeditTab to close
Closes all tabs specified by @tabs.
a list of #GeditTab
Creates a new #GeditTab and adds the new tab to the #GeditNotebook.
In case @jump_to is %TRUE the #GeditNotebook switches to that new #GeditTab.
a new #GeditTab
%TRUE to set the new #GeditTab as active
Creates a new #GeditTab loading the document specified by @uri.
In case @jump_to is %TRUE the #GeditNotebook swithes to that new #GeditTab.
Whether @create is %TRUE, creates a new empty document if location does
not refer to an existing file
a new #GeditTab
the location of the document
a #GeditEncoding, or %NULL
the line position to visualize
the column position to visualize
%TRUE to create a new document in case @uri does exist
%TRUE to set the new #GeditTab as active
a new #GeditTab
a #GInputStream
a #GeditEncoding, or %NULL
the line position to visualize
the column position to visualize
%TRUE to set the new #GeditTab as active
Gets the active #GeditDocument.
the active #GeditDocument
Gets the active #GeditTab in the @window.
the active #GeditTab in the @window.
Gets the active #GeditView.
the active #GeditView
Gets the bottom #GeditPanel of the @window.
the bottom #GeditPanel.
Gets a newly allocated list with all the documents in the window.
This list must be freed.
allocated list with all the documents in the window
a newly
Gets the #GtkWindowGroup in which @window resides.
the #GtkWindowGroup
Gets the #GeditMessageBus associated with @window. The returned reference
is owned by the window and should not be unreffed.
the #GeditMessageBus associated with @window
Gets the side #GeditPanel of the @window.
the side #GeditPanel.
Retrieves the state of the @window.
the current #GeditWindowState of the @window.
Gets the #GeditStatusbar of the @window.
the #GeditStatusbar of the @window.
Gets the #GeditTab that matches with the given @location.
the #GeditTab that matches with the given @location.
a #GFile
Gets the #GtkUIManager associated with the @window.
the #GtkUIManager of the @window.
Gets the list of documents that need to be saved before closing the window.
#GeditDocument that need to be saved before closing the window
a list of
Gets a list with all the views in the window. This list must be freed.
list with all the views in the window
a newly allocated
Switches to the tab that matches with @tab.
a #GeditTab
Loads @location. Ignores non-existing locations
a #GeditWindow
a #GFile to be loaded
the #GeditEncoding of @location
the line position to place the cursor when @location is loaded
the line column to place the cursor when @location is loaded
Loads @locations. Ignore non-existing locations
the locations that were loaded
a #GeditWindow
the locations to be loaded
the #GeditEncoding of @location
the line position to place the cursor when @location is loaded
the line column to place the cursor when @location is loaded
the basename of a file suitable for display to users.
location for which the basename should be displayed
Parse and break an uri apart in its individual components like the uri
scheme, user info, port, host and path. The return value pointer can be
%NULL to ignore certain parts of the uri. If the function returns %TRUE, then
all return value pointers should be freed using g_free
%TRUE if the uri could be properly decoded, %FALSE otherwise.
the uri to decode
return value pointer for the uri's scheme (e.g. http, sftp, ...), or %NULL
return value pointer for the uri user info, or %NULL
return value pointer for the uri port, or %NULL
return value pointer for the uri host, or %NULL
return value pointer for the uri path, or %NULL
Create a list of valid uri's from a uri-list drop.
%NULL if there were no valid uris. g_strfreev should be used when
the string array is no longer used
a string array which will hold the uris or
the #GtkSelectionData from drag_data_received
Get the currently visible viewport origin for the #GdkScreen.
If the X11 window property isn't found, (0, 0) is returned.
a #GdkScreen
x-axis point.
y-axis point.
Get the currently visible workspace for the #GdkScreen.
If the X11 window property isn't found, 0 (the first workspace)
is returned.
a #GdkScreen
This function gets the requested objects from a GtkBuilder ui file. In case
of error it returns %FALSE and sets error_widget to a GtkLabel containing
the error message to display.
%FALSE if an error occurs, %TRUE on success.
the path to the gtk builder file
a %NULL terminated list of root objects to load or NULL to load all objects
a pointer were a #GtkLabel
the name of the first object
Get the workspace the window is on
This function gets the workspace that the #GtkWindow is visible on,
it returns GEDIT_ALL_WORKSPACES if the window is sticky, or if
the window manager doesn support this function
Returns a string suitable to be displayed in the UI indicating
the name of the directory where the file is located.
For remote files it may also contain the hostname etc.
For local files it tries to replace the home dir with ~.
a string to display the dirname
the location
%TRUE if @location is a file: uri and is not a chained uri
This function sets up name and description
for a specified gtk widget.
The Gtk widget for which name/description to be set
Atk name string
Atk description string