diff options
author | Owen Taylor <otaylor@gtk.org> | 1998-06-19 01:26:24 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 1998-06-19 01:26:24 +0000 |
commit | 913831b26f3b4b0a69dce8574017a78828e93b83 (patch) | |
tree | 6454867cb387f24084917262261e1cdd7c4dcf89 /gtk/gtkeditable.h | |
parent | 25bd56b9957d930a2edd573d52ef389493a224ae (diff) | |
download | gtk+-913831b26f3b4b0a69dce8574017a78828e93b83.tar.gz |
Remove --g-fatal-warnings flag from argv.
Thu Jun 18 21:13:54 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtkmain.c (gtk_init): Remove --g-fatal-warnings flag
from argv.
Thu Jun 18 20:22:28 1998 Owen Taylor <otaylor@gtk.org>
* gtk/genmarshal.pl: Modified to be more idiomatic Perl,
to be more readable perl, to spit out stuff that looks
more like readable C, and to pipe output through indent
so output looks a lot like readable C. No functional
changes.
Thu Jun 18 17:43:31 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtkpixmap.[ch] (gtk_pixmap_set): Clear the background if
necessary when switching to a masked pixmap. (Based on a patch
from Ullrich Hafner <hafner@informatik.uni-wuerzburg.de>)
Thu Jun 18 16:18:10 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtkeditable.[ch]: Added action signals for keyboard
bindings. (move_cursor, kill_word, etc, etc, etc).
removed the time argument from
gtk_editable_cut/copy/paste_clipboard (source but not
binary incompatible...) Instead get time from
gtk_get_current_event ().
* gtk/gtktext.c gtk/gtkentry.c: Support the new editable
signals.
Thu Jun 18 02:52:09 1998 Owen Taylor <otaylor@gtk.org>
Patches from Damon Chaplin <DAChaplin@email.msn.com>:
gtk/gtkfontsel.h: Fixed GtkFontSelectionClass - I forgot to change
parent class to GtkNotebookClass when splitting the widget in
two. Also updated some comments.
gtk/gtkfontsel.c: Fixed bug when toggling 'Allow scaled bitmaps'
button without a font selected.
Fixed bug in set_font_name - I hadn't updated the code to
search for the style in the font_style clist - it was
still assuming the style row was equal to its index,
but it isn't any more.
Changed 'Reset' button on filter page to 'Clear Filter'.
Deleted old code relating to the old 'Filter Fonts' toggle
Updated some comments.
Cleared 'Actual Fontname' if no font is set.
gtk/testgtk.c: Fixed problem when 'OK' button is pressed - it was
destroying the GtkFontSelection instead of the
GtkFontSelectionDialog.
Thu Jun 18 02:15:31 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtkmain.c (gtk_init): Added --g-fatal-warnings
flag to make all warnings fatal errors.
* gtk/testthreads.c: moved <pthreads.h> include inside
#ifdef USE_PTHREADS
Thu Jun 18 01:37:31 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtkenums.h gtk/gtkcontainer.[ch] gtk/gtkwidget.c
gtk/gtkmenu.c gtk/gtkviewport.c gtk/gtkwindow.c:
- Added new function gtk_container_set_resize_mode() for
fine-grained control of where resize-queueing is done.
- Removed GtkContainer::need_resize and GtkWindow::move_resize
- Added GtkContainer::check_resize to replace need_resize.
- Added function gtk_container_check_resize() to trigger
queued resizes, and gtk_container_resize_children() to
Figure which children need to be size-allocated. (logic
moved from gtkwindow.c)
- Reorganized code in gtkwindow.c
- Set the resize-mode for viewports so that resizes within
a viewport don't propagate out of it.
Diffstat (limited to 'gtk/gtkeditable.h')
-rw-r--r-- | gtk/gtkeditable.h | 45 |
1 files changed, 36 insertions, 9 deletions
diff --git a/gtk/gtkeditable.h b/gtk/gtkeditable.h index 2c4d3bab97..8a374bb25f 100644 --- a/gtk/gtkeditable.h +++ b/gtk/gtkeditable.h @@ -57,7 +57,9 @@ struct _GtkEditable struct _GtkEditableClass { GtkWidgetClass parent_class; - + + /* Signals for notification/filtering of changes */ + void (* changed) (GtkEditable *editable); void (* insert_text) (GtkEditable *editable, const gchar *text, gint length, @@ -65,6 +67,36 @@ struct _GtkEditableClass void (* delete_text) (GtkEditable *editable, gint start_pos, gint end_pos); + + /* Bindings actions */ + void (* activate) (GtkEditable *editable); + void (* move_cursor) (GtkEditable *editable, + gint x, + gint y); + void (* move_word) (GtkEditable *editable, + gint n); + void (* move_page) (GtkEditable *editable, + gint x, + gint y); + void (* move_to_row) (GtkEditable *editable, + gint row); + void (* move_to_column) (GtkEditable *editable, + gint row); + void (* kill_char) (GtkEditable *editable, + gint direction); + void (* kill_word) (GtkEditable *editable, + gint direction); + void (* kill_line) (GtkEditable *editable, + gint direction); + void (* cut_clipboard) (GtkEditable *editable); + void (* copy_clipboard) (GtkEditable *editable); + void (* paste_clipboard) (GtkEditable *editable); + + /* Virtual functions. get_chars is in paricular not a signal because + * it returns malloced memory. The others are not signals because + * they would not be particularly useful as such. (All changes to + * selection and position do not go through these functions) + */ void (* update_text) (GtkEditable *editable, gint start_pos, gint end_pos); @@ -74,8 +106,6 @@ struct _GtkEditableClass void (* set_selection)(GtkEditable *editable, gint start_pos, gint end_pos); - void (* activate) (GtkEditable *editable); - void (* changed) (GtkEditable *editable); void (* set_position) (GtkEditable *editable, gint position); }; @@ -94,12 +124,9 @@ void gtk_editable_delete_text (GtkEditable *editable, gchar * gtk_editable_get_chars (GtkEditable *editable, gint start_pos, gint end_pos); -void gtk_editable_cut_clipboard (GtkEditable *editable, - guint32 time); -void gtk_editable_copy_clipboard (GtkEditable *editable, - guint32 time); -void gtk_editable_paste_clipboard (GtkEditable *editable, - guint32 time); +void gtk_editable_cut_clipboard (GtkEditable *editable); +void gtk_editable_copy_clipboard (GtkEditable *editable); +void gtk_editable_paste_clipboard (GtkEditable *editable); void gtk_editable_claim_selection (GtkEditable *editable, gboolean claim, guint32 time); |