GtkEntry move_cursor signal



I need help on Gtk 1.2 
why is the move_cursor signal not called with his small test code

GtkWidget*
create_window1 (void)
{
  GtkWidget *window1;
  GtkWidget *entry1;

  window1 = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_object_set_data (GTK_OBJECT (window1), "window1", window1);
  gtk_window_set_title (GTK_WINDOW (window1), _("window1"));

  entry1 = gtk_entry_new ();
  gtk_widget_ref (entry1);
  gtk_object_set_data_full (GTK_OBJECT (window1), "entry1", entry1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (entry1);
  gtk_container_add (GTK_CONTAINER (window1), entry1);

  gtk_signal_connect (GTK_OBJECT (window1), "destroy_event",
                      GTK_SIGNAL_FUNC (gtk_main_quit),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (window1), "destroy",
                      GTK_SIGNAL_FUNC (gtk_main_quit),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (entry1), "changed",              /*
this called without problems */
                      GTK_SIGNAL_FUNC (on_entry1_changed),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (entry1), "move_cursor",          /*
this never not moving cursor with mouse */    
                      GTK_SIGNAL_FUNC (on_entry1_move_cursor),     /* or
with the arrow keys */
                      NULL);
                                                /* is there a mask
missing or what happens */
                                                /* I think it is only a
little bit but I do not see it */
  return window1;
}

Best Regards
Günther
-- 
R=I+S  Rapp Informatik Systeme GmbH
       Rosenbühlstr. 24
       D-89182 Bernstadt
       Tel:  +49 (0)7348-7755
       Fax:  +49 (0)7348-6086
E-MAIL  mailto: guenther rapp-informatik de
WEB             www.rapp-informatik.de       

PS:
Senden Sie mir bitte keine Anhänge in Microsoft (.DOC, .PPT) Format
Bitte lesen Sie 
http://www.fsf.org/philosophy/no-word-attachmentsi.de.html
Please don't send me any attachment in Microsoft (.DOC, .PPT) format
please
Read http://www.fsf.org/philosophy/no-word-attachments.html

Attachment: guenther.vcf
Description: Visitenkarte für Günther Rapp



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]