diff options
author | Tim Janik <timj@gtk.org> | 1998-07-16 20:23:12 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 1998-07-16 20:23:12 +0000 |
commit | 81517a6d4c09663ba97335affe5b1ec047a567d3 (patch) | |
tree | 4638e036b6e692136a617d1fdd7d8f8a05f6a3bf /gtk/gtkeditable.h | |
parent | 5e3acecc12dc9b7671ea56150a66e2ae41a65a6e (diff) | |
download | gtk+-81517a6d4c09663ba97335affe5b1ec047a567d3.tar.gz |
signdness corrections all ove the place. implementation of object
Thu Jul 16 18:24:41 1998 Tim Janik <timj@gtk.org>
* gtk/gtknotebook.h:
* gtk/gtknotebook.c: signdness corrections all ove the place.
implementation of object arguments: GtkNotebook::enable_popup,
GtkNotebook::tab_pos, GtkNotebook::tab_border, GtkNotebook::show_tabs,
GtkNotebook::show_border, GtkNotebook::scrollable and GtkNotebook::page.
begun implementation of child args, we have GtkNotebook::tab_label, but
GtkNotebook::menu_label and GtkNotebook::position still lack the
implementation.
(gtk_notebook_remove_page):
(gtk_notebook_current_page): allow negative indices (-1) as alias for
the last page.
* gtk/gtkentry.h:
* gtk/gtkentry.c: GtkType and macro fixups. implementation of object
arguments GtkEntry::max_length and GtkEntry::visibility.
(gtk_entry_adjust_scroll): queue a redraw.
* gtk/gtkeditable.h:
* gtk/gtkeditable.c: GtkType und macro fixups. implementation of
object arguments GtkEditable::text_position and GtkEditable::editable.
new (action) signal GtkEditable::set_editable.
provide a default handler for GtkEditable::changed that queues a redraw.
* gtk/gtktext.h:
* gtk/gtktext.c: GtkType und macro fixups. override GtkEditable::
set_editable.
Diffstat (limited to 'gtk/gtkeditable.h')
-rw-r--r-- | gtk/gtkeditable.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/gtk/gtkeditable.h b/gtk/gtkeditable.h index 8a374bb25f..57265a5344 100644 --- a/gtk/gtkeditable.h +++ b/gtk/gtkeditable.h @@ -26,12 +26,15 @@ #ifdef __cplusplus extern "C" { +#pragma } #endif /* __cplusplus */ -#define GTK_EDITABLE(obj) GTK_CHECK_CAST (obj, gtk_editable_get_type (), GtkEditable) -#define GTK_EDITABLE_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gtk_editable_get_type (), GtkEditableClass) -#define GTK_IS_EDITABLE(obj) GTK_CHECK_TYPE (obj, gtk_editable_get_type ()) +#define GTK_TYPE_EDITABLE (gtk_editable_get_type ()) +#define GTK_EDITABLE(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_EDITABLE, GtkEditable)) +#define GTK_EDITABLE_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_EDITABLE, GtkEditableClass)) +#define GTK_IS_EDITABLE(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_EDITABLE)) +#define GTK_IS_EDITABLE_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_EDITABLE)) typedef struct _GtkEditable GtkEditable; @@ -70,6 +73,8 @@ struct _GtkEditableClass /* Bindings actions */ void (* activate) (GtkEditable *editable); + void (* set_editable) (GtkEditable *editable, + gboolean is_editable); void (* move_cursor) (GtkEditable *editable, gint x, gint y); @@ -110,7 +115,7 @@ struct _GtkEditableClass gint position); }; -guint gtk_editable_get_type (void); +GtkType gtk_editable_get_type (void); void gtk_editable_select_region (GtkEditable *editable, gint start, gint end); @@ -121,7 +126,7 @@ void gtk_editable_insert_text (GtkEditable *editable, void gtk_editable_delete_text (GtkEditable *editable, gint start_pos, gint end_pos); -gchar * gtk_editable_get_chars (GtkEditable *editable, +gchar* gtk_editable_get_chars (GtkEditable *editable, gint start_pos, gint end_pos); void gtk_editable_cut_clipboard (GtkEditable *editable); @@ -136,6 +141,8 @@ void gtk_editable_changed (GtkEditable *editable); void gtk_editable_set_position (GtkEditable *editable, gint position); gint gtk_editable_get_position (GtkEditable *editable); +void gtk_editable_set_editable (GtkEditable *editable, + gboolean is_editable); #ifdef __cplusplus |