Top |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkTextView ╰── GtkSourceView ╰── TeplView ╰── GeditView
GeditView is a subclass of TeplView and is the GtkWidget showing a document.
It contains a GeditDocument which can be retrieved with
gtk_text_view_get_buffer()
.
GtkWidget *
gedit_view_new (GeditDocument *doc
);
Creates a new GeditView object displaying doc
. doc
cannot be NULL
.
“drop-uris”
signalvoid user_function (GeditView *view, GStrv uri_list, gpointer user_data)
The “drop-uris” signal allows plugins to intercept the default drag-and-drop behaviour of 'text/uri-list'. GeditView handles drag-and-drop in the default handlers of “drag-drop”, “drag-motion” and “drag-data-received”. The view emits the “drop-uris” signal from “drag-data-received” if valid URIs have been dropped. Plugins should connect to “drag-motion”, “drag-drop” and “drag-data-received” to change this default behaviour. They should NOT use this signal because this will not prevent gedit from loading the URI.
Flags: Action