GeditView

GeditView

Synopsis

                    GeditViewPrivate;
                    GeditView;
GtkWidget *         gedit_view_new                      (GeditDocument *doc);
void                gedit_view_cut_clipboard            (GeditView *view);
void                gedit_view_copy_clipboard           (GeditView *view);
void                gedit_view_paste_clipboard          (GeditView *view);
void                gedit_view_delete_selection         (GeditView *view);
void                gedit_view_select_all               (GeditView *view);
void                gedit_view_scroll_to_cursor         (GeditView *view);
void                gedit_view_set_font                 (GeditView *view,
                                                         gboolean def,
                                                         const gchar *font_name);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----GtkObject
               +----GtkWidget
                     +----GtkContainer
                           +----GtkTextView
                                 +----GtkSourceView
                                       +----GeditView

Implemented Interfaces

GeditView implements AtkImplementorIface and GtkBuildable.

Signals

  "drop-uris"                                      : Run Last / Action
  "reset-searched-text"                            : Run Last / Action
  "start-interactive-goto-line"                    : Run Last / Action
  "start-interactive-search"                       : Run Last / Action

Description

Details

GeditViewPrivate

typedef struct _GeditViewPrivate GeditViewPrivate;

GeditView

typedef struct _GeditView GeditView;

gedit_view_new ()

GtkWidget *         gedit_view_new                      (GeditDocument *doc);

Creates a new GeditView object displaying the doc document. doc cannot be NULL.

doc :

a GeditDocument

Returns :

a new GeditView

gedit_view_cut_clipboard ()

void                gedit_view_cut_clipboard            (GeditView *view);

gedit_view_copy_clipboard ()

void                gedit_view_copy_clipboard           (GeditView *view);

gedit_view_paste_clipboard ()

void                gedit_view_paste_clipboard          (GeditView *view);

gedit_view_delete_selection ()

void                gedit_view_delete_selection         (GeditView *view);

Deletes the text currently selected in the GtkTextBuffer associated to the view and scroll to the cursor position.

view :

a GeditView

gedit_view_select_all ()

void                gedit_view_select_all               (GeditView *view);

Selects all the text displayed in the view.

view :

a GeditView

gedit_view_scroll_to_cursor ()

void                gedit_view_scroll_to_cursor         (GeditView *view);

Scrolls the view to the cursor position.

view :

a GeditView

gedit_view_set_font ()

void                gedit_view_set_font                 (GeditView *view,
                                                         gboolean def,
                                                         const gchar *font_name);

If def is TRUE, resets the font of the view to the default font otherwise sets it to font_name.

view :

a GeditView

def :

whether to reset the default font

font_name :

the name of the font to use

Signal Details

The "drop-uris" signal

void                user_function                      (GeditView *geditview,
                                                        GStrv     *arg1,
                                                        gpointer   user_data)      : Run Last / Action

The "reset-searched-text" signal

gboolean            user_function                      (GeditView *geditview,
                                                        gpointer   user_data)      : Run Last / Action

The "start-interactive-goto-line" signal

gboolean            user_function                      (GeditView *geditview,
                                                        gpointer   user_data)      : Run Last / Action

The "start-interactive-search" signal

gboolean            user_function                      (GeditView *geditview,
                                                        gpointer   user_data)      : Run Last / Action