GtkCList changes



Hi !

Yesterday I've committed a clist/ctree patch from Stefan Jeske and me to add
horizontal and vertical autoscrolling, extended selection, focus handling
and key bindings.
Please note that this patch needed to change a few things for clist's
(un)select_row signals. The definition has changed to :

  void (*select_row) (GtkCList * clist,
                      gint row,
                      gint column,
+                     GdkEvent * event);
-                     GdkEventButton * event);

For many cases event will be simply NULL because we don't have an actual
event (due to key bindings for instance). Otherwise event->type can now
become GDK_BUTTON_PRESS, GDK_2BUTTON_PRESS, GDK_3BUTTON_PRESS,
GDK_BUTTON_RELEASE, GDK_MOTION_NOTIFY, GDK_FOCUS_CHANGE.

The "normal" GTK_SELECTION_SINGLE/MULTIPLE event->type for selections
made by mouse now is GDK_BUTTON_RELEASE instead of GDK_BUTTON_PRESS.

I'm sorry that there was no way to avoid these changes, they were
necessary for autoscrollig and key bindings.

bye,
  Lars



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