[9679] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] Re: gtk-- missing signals

daemon@ATHENA.MIT.EDU (Tero Pulkkinen)
Fri Oct 30 12:26:20 1998

To: gtk-list@redhat.com
From: Tero Pulkkinen <terop@students.cc.tut.fi>
Date: 30 Oct 1998 19:17:39 +0200
In-Reply-To: Jan Gentsch's message of "Fri, 30 Oct 1998 10:34:17 +0100"
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com

Jan Gentsch <gentsch@ifm.uni-hamburg.de> writes:
> I am looking at gtk+-1.1.2 and gtk---0.9.17 (Though looking at the
> source it's the same for 0.9.19).
> There are a number of signals defined in the gtkeditable class which are
> not reflected in c++ interface.
>   insert_text
>   delete_text
>   set_text
> Missing this signals takes away most of the functionalty of the editable
> class. What is the problem with these signals??
> There are name clashes but that should be possible to circumvent??

(what is this set_text() signal? My gtkeditable.c does not have it.. has
gtkeditable.c changed recently? (my gtk+ is quite new version from cvs) :)

instead I have alot of other signals that gtk-- did not implement:
#ifgtk >= 1.1
  SIGNAL_SPEC(void insert_text(const_gchar*,gint,gint*));
  SIGNAL_SPEC(void delete_text(gint,gint));
  SIGNAL_SPEC(void set_editable(gint));
  SIGNAL_SPEC(void GtkEditable@move_cursor(gint, gint));
  SIGNAL_SPEC(void GtkEditable@move_word(gint));
  SIGNAL_SPEC(void GtkEditable@move_page(gint,gint));
  SIGNAL_SPEC(void GtkEditable@move_to_row(gint));
  SIGNAL_SPEC(void GtkEditable@move_to_column(gint));
  SIGNAL_SPEC(void GtkEditable@kill_char(gint));
  SIGNAL_SPEC(void GtkEditable@kill_word(gint));
  SIGNAL_SPEC(void GtkEditable@kill_line(gint));
  SIGNAL_SPEC(void GtkEditable@cut_clipboard());
  SIGNAL_SPEC(void GtkEditable@copy_clipboard());
  SIGNAL_SPEC(void GtkEditable@paste_clipboard());

  SIGNAL_VFUNC_SPEC(void update_text(gint,gint));
  SIGNAL_VFUNC_SPEC(gchar* get_chars(gint,gint));
  SIGNAL_VFUNC_SPEC(void set_selection(gint,gint));
  SIGNAL_VFUNC_SPEC(void set_position(gint));
#endif

I added those signals and virtual functions now, but insert_text and
set_editable will need some thinking to do -- we would like to use
const string& in there instead of gchar*'s.. but I'm not exactly sure
how to implement it... :(

Also, the thing I implemented now allows calling signal_emit for
things like move_cursor, move_to_row and move_to_column etc because
they dont have corresponding gtk_editable_move_cursor() functions.

--
-- Tero Pulkkinen -- terop@modeemi.cs.tut.fi --

-- 
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post