PlumaView

PlumaView

Synopsis

                    PlumaViewPrivate;
struct              PlumaView;
GtkWidget *         pluma_view_new                      (PlumaDocument *doc);
void                pluma_view_cut_clipboard            (PlumaView *view);
void                pluma_view_copy_clipboard           (PlumaView *view);
void                pluma_view_paste_clipboard          (PlumaView *view);
void                pluma_view_delete_selection         (PlumaView *view);
void                pluma_view_select_all               (PlumaView *view);
void                pluma_view_scroll_to_cursor         (PlumaView *view);
void                pluma_view_set_font                 (PlumaView *view,
                                                         gboolean def,
                                                         const gchar *font_name);

Object Hierarchy

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

Implemented Interfaces

PlumaView implements AtkImplementorIface and GtkBuildable.

Signals

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

Description

Details

PlumaViewPrivate

typedef struct _PlumaViewPrivate PlumaViewPrivate;

struct PlumaView

struct PlumaView;

pluma_view_new ()

GtkWidget *         pluma_view_new                      (PlumaDocument *doc);

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

doc :

a PlumaDocument

Returns :

a new PlumaView

pluma_view_cut_clipboard ()

void                pluma_view_cut_clipboard            (PlumaView *view);

pluma_view_copy_clipboard ()

void                pluma_view_copy_clipboard           (PlumaView *view);

pluma_view_paste_clipboard ()

void                pluma_view_paste_clipboard          (PlumaView *view);

pluma_view_delete_selection ()

void                pluma_view_delete_selection         (PlumaView *view);

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

view :

a PlumaView

pluma_view_select_all ()

void                pluma_view_select_all               (PlumaView *view);

Selects all the text displayed in the view.

view :

a PlumaView

pluma_view_scroll_to_cursor ()

void                pluma_view_scroll_to_cursor         (PlumaView *view);

Scrolls the view to the cursor position.

view :

a PlumaView

pluma_view_set_font ()

void                pluma_view_set_font                 (PlumaView *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 PlumaView

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                      (PlumaView *plumaview,
                                                        GStrv      arg1,
                                                        gpointer   user_data)      : Action

The "reset-searched-text" signal

gboolean            user_function                      (PlumaView *plumaview,
                                                        gpointer   user_data)      : Action

The "start-interactive-goto-line" signal

gboolean            user_function                      (PlumaView *plumaview,
                                                        gpointer   user_data)      : Action

The "start-interactive-search" signal

gboolean            user_function                      (PlumaView *plumaview,
                                                        gpointer   user_data)      : Action