<< Back to man.ChinaUnix.net

<< Back to man.ChinaUnix.net

GtkOldEditable

GtkOldEditable — Base class for text-editing widgets

Synopsis


#include <gtk/gtk.h>


            GtkOldEditable;
void        (*GtkTextFunction)              (GtkOldEditable *editable,
                                             guint32 time_);
void        gtk_old_editable_claim_selection
                                            (GtkOldEditable *old_editable,
                                             gboolean claim,
                                             guint32 time_);
void        gtk_old_editable_changed        (GtkOldEditable *old_editable);


Object Hierarchy


  GObject
   +----GtkObject
         +----GtkWidget
               +----GtkOldEditable
                     +----GtkText

Implemented Interfaces

GtkOldEditable implements AtkImplementorIface and GtkEditable.

Properties


  "editable"             gboolean              : Read / Write
  "text-position"        gint                  : Read / Write

Signal Prototypes


"activate"  void        user_function      (GtkOldEditable *oldeditable,
                                            gpointer user_data);
"copy-clipboard"
            void        user_function      (GtkOldEditable *oldeditable,
                                            gpointer user_data);
"cut-clipboard"
            void        user_function      (GtkOldEditable *oldeditable,
                                            gpointer user_data);
"kill-char" void        user_function      (GtkOldEditable *oldeditable,
                                            gint arg1,
                                            gpointer user_data);
"kill-line" void        user_function      (GtkOldEditable *oldeditable,
                                            gint arg1,
                                            gpointer user_data);
"kill-word" void        user_function      (GtkOldEditable *oldeditable,
                                            gint arg1,
                                            gpointer user_data);
"move-cursor"
            void        user_function      (GtkOldEditable *oldeditable,
                                            gint arg1,
                                            gint arg2,
                                            gpointer user_data);
"move-page" void        user_function      (GtkOldEditable *oldeditable,
                                            gint arg1,
                                            gint arg2,
                                            gpointer user_data);
"move-to-column"
            void        user_function      (GtkOldEditable *oldeditable,
                                            gint arg1,
                                            gpointer user_data);
"move-to-row"
            void        user_function      (GtkOldEditable *oldeditable,
                                            gint arg1,
                                            gpointer user_data);
"move-word" void        user_function      (GtkOldEditable *oldeditable,
                                            gint arg1,
                                            gpointer user_data);
"paste-clipboard"
            void        user_function      (GtkOldEditable *oldeditable,
                                            gpointer user_data);
"set-editable"
            void        user_function      (GtkOldEditable *oldeditable,
                                            gboolean arg1,
                                            gpointer user_data);

Description

GtkOldEditable has been deprecated since GTK+ 2.0 and should not be used in newly written code. Use the GtkEditable interface instead.

Details

GtkOldEditable

typedef struct {
  guint      current_pos;

  guint      selection_start_pos;
  guint      selection_end_pos;
  guint      has_selection : 1;
} GtkOldEditable;

Warning

GtkOldEditable is deprecated and should not be used in newly-written code.


GtkTextFunction ()

void        (*GtkTextFunction)              (GtkOldEditable *editable,
                                             guint32 time_);

Warning

GtkTextFunction is deprecated and should not be used in newly-written code.

editable :
time_ :

gtk_old_editable_claim_selection ()

void        gtk_old_editable_claim_selection
                                            (GtkOldEditable *old_editable,
                                             gboolean claim,
                                             guint32 time_);

Warning

gtk_old_editable_claim_selection is deprecated and should not be used in newly-written code.

Claims or gives up ownership of the selection.

old_editable : a GtkOldEditable
claim : if TRUE, claim ownership of the selection, if FALSE, give up ownership
time_ : timestamp for this operation

gtk_old_editable_changed ()

void        gtk_old_editable_changed        (GtkOldEditable *old_editable);

Warning

gtk_old_editable_changed is deprecated and should not be used in newly-written code.

Emits the ::changed signal on old_editable.

old_editable : a GtkOldEditable

Properties

The "editable" property

  "editable"             gboolean              : Read / Write

Default value: FALSE


The "text-position" property

  "text-position"        gint                  : Read / Write

Default value: 0

Signals

The "activate" signal

void        user_function                  (GtkOldEditable *oldeditable,
                                            gpointer user_data);

oldeditable :the object which received the signal.
user_data :user data set when the signal handler was connected.

The "copy-clipboard" signal

void        user_function                  (GtkOldEditable *oldeditable,
                                            gpointer user_data);

oldeditable :the object which received the signal.
user_data :user data set when the signal handler was connected.

The "cut-clipboard" signal

void        user_function                  (GtkOldEditable *oldeditable,
                                            gpointer user_data);

oldeditable :the object which received the signal.
user_data :user data set when the signal handler was connected.

The "kill-char" signal

void        user_function                  (GtkOldEditable *oldeditable,
                                            gint arg1,
                                            gpointer user_data);

oldeditable :the object which received the signal.
arg1 :
user_data :user data set when the signal handler was connected.

The "kill-line" signal

void        user_function                  (GtkOldEditable *oldeditable,
                                            gint arg1,
                                            gpointer user_data);

oldeditable :the object which received the signal.
arg1 :
user_data :user data set when the signal handler was connected.

The "kill-word" signal

void        user_function                  (GtkOldEditable *oldeditable,
                                            gint arg1,
                                            gpointer user_data);

oldeditable :the object which received the signal.
arg1 :
user_data :user data set when the signal handler was connected.

The "move-cursor" signal

void        user_function                  (GtkOldEditable *oldeditable,
                                            gint arg1,
                                            gint arg2,
                                            gpointer user_data);

oldeditable :the object which received the signal.
arg1 :
arg2 :
user_data :user data set when the signal handler was connected.

The "move-page" signal

void        user_function                  (GtkOldEditable *oldeditable,
                                            gint arg1,
                                            gint arg2,
                                            gpointer user_data);

oldeditable :the object which received the signal.
arg1 :
arg2 :
user_data :user data set when the signal handler was connected.

The "move-to-column" signal

void        user_function                  (GtkOldEditable *oldeditable,
                                            gint arg1,
                                            gpointer user_data);

oldeditable :the object which received the signal.
arg1 :
user_data :user data set when the signal handler was connected.

The "move-to-row" signal

void        user_function                  (GtkOldEditable *oldeditable,
                                            gint arg1,
                                            gpointer user_data);

oldeditable :the object which received the signal.
arg1 :
user_data :user data set when the signal handler was connected.

The "move-word" signal

void        user_function                  (GtkOldEditable *oldeditable,
                                            gint arg1,
                                            gpointer user_data);

oldeditable :the object which received the signal.
arg1 :
user_data :user data set when the signal handler was connected.

The "paste-clipboard" signal

void        user_function                  (GtkOldEditable *oldeditable,
                                            gpointer user_data);

oldeditable :the object which received the signal.
user_data :user data set when the signal handler was connected.

The "set-editable" signal

void        user_function                  (GtkOldEditable *oldeditable,
                                            gboolean arg1,
                                            gpointer user_data);

oldeditable :the object which received the signal.
arg1 :
user_data :user data set when the signal handler was connected.