PATCH: GtkTreeView "move-cursor" signal
- From: murrayc t-online de (Murray Cumming)
- To: gtk-devel-list <gtk-devel-list gnome org>
- Subject: PATCH: GtkTreeView "move-cursor" signal
- Date: 20 Mar 2002 05:03:43 +0100
GtkTreeView's "move-cursor" signal has a bool return value, but it's
registered as having a void return. This patch fixes it, adding an extra
marshaller.
--
Murray Cumming
murrayc usa net
www.murrayc.com
? gtk+.kdevprj
? gtk_treeview_signal.patch
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/gtk+/ChangeLog,v
retrieving revision 1.3262
diff -u -p -r1.3262 ChangeLog
--- ChangeLog 19 Mar 2002 23:16:05 -0000 1.3262
+++ ChangeLog 20 Mar 2002 04:03:03 -0000
@@ -1,3 +1,9 @@
+2002-03-20 Murray Cumming <murrayc usa net>
+
+ * gtk/gtktreeview.cc: Corrected registered return type of
+ "move-cursor" signal. Had to add a marshaller to
+ gtk/gtkmarshalers.list.
+
2002-03-20 Tor Lillqvist <tml iki fi>
* gdk/win32/gdkdnd-win32.c (gdk_drag_find_window): Use
Index: gtk/gtkmarshalers.list
===================================================================
RCS file: /cvs/gnome/gtk+/gtk/gtkmarshalers.list,v
retrieving revision 1.47
diff -u -p -r1.47 gtkmarshalers.list
--- gtk/gtkmarshalers.list 16 Feb 2002 01:34:25 -0000 1.47
+++ gtk/gtkmarshalers.list 20 Mar 2002 04:03:04 -0000
@@ -24,6 +24,7 @@
BOOLEAN:BOXED
BOOLEAN:BOXED,BOXED
BOOLEAN:ENUM
+BOOLEAN:ENUM,INT
BOOLEAN:OBJECT,UINT,UINT
BOOLEAN:OBJECT,INT,INT,UINT
BOOLEAN:OBJECT,STRING,STRING,BOXED
Index: gtk/gtktreeview.c
===================================================================
RCS file: /cvs/gnome/gtk+/gtk/gtktreeview.c,v
retrieving revision 1.253
diff -u -p -r1.253 gtktreeview.c
--- gtk/gtktreeview.c 17 Mar 2002 00:07:17 -0000 1.253
+++ gtk/gtktreeview.c 20 Mar 2002 04:03:08 -0000
@@ -723,8 +723,8 @@ gtk_tree_view_class_init (GtkTreeViewCla
G_SIGNAL_RUN_LAST | GTK_RUN_ACTION,
G_STRUCT_OFFSET (GtkTreeViewClass, move_cursor),
NULL, NULL,
- _gtk_marshal_VOID__ENUM_INT,
- GTK_TYPE_NONE, 2, GTK_TYPE_MOVEMENT_STEP, GTK_TYPE_INT);
+ _gtk_marshal_BOOLEAN__ENUM_INT,
+ GTK_TYPE_BOOL, 2, GTK_TYPE_MOVEMENT_STEP, GTK_TYPE_INT);
tree_view_signals[SELECT_ALL] =
g_signal_new ("select_all",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]