Fix for gtk-demo
- From: Anders Carlsson <andersca gnu org>
- To: gtk-devel-list gnome org
- Subject: Fix for gtk-demo
- Date: 08 Jun 2001 09:08:35 +0200
Hello,
I just committed this small fix to main.c in gtk-demo to make it work
again with the GtkTreeSelection changes that Jonathan did.
//andersca
andersca gnu org
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/gtk+/ChangeLog,v
retrieving revision 1.2028
diff -u -r1.2028 ChangeLog
--- ChangeLog 2001/06/07 22:33:13 1.2028
+++ ChangeLog 2001/06/08 06:55:58
@@ -1,3 +1,9 @@
+2001-06-08 Anders Carlsson <andersca codefactory se>
+
+ * demos/gtk-demo/main.c (create_tree): Changed signal name from
+ selection_changed to changed in signal connection to GtkTreeSelection,
+ also used g_signal_connectc since GtkTreeSelection is now a GObject.
+
Thu Jun 7 18:25:42 2001 Jonathan Blandford <jrb redhat com>
* gtk/gtktreeselection.c: Now it's a GObject instead of a
Index: demos/gtk-demo/main.c
===================================================================
RCS file: /cvs/gnome/gtk+/demos/gtk-demo/main.c,v
retrieving revision 1.22
diff -u -r1.22 main.c
--- demos/gtk-demo/main.c 2001/05/18 20:56:54 1.22
+++ demos/gtk-demo/main.c 2001/06/08 06:55:58
@@ -715,7 +715,7 @@
gtk_tree_view_append_column (GTK_TREE_VIEW (tree_view),
GTK_TREE_VIEW_COLUMN (column));
- gtk_signal_connect (GTK_OBJECT (selection), "selection_changed", GTK_SIGNAL_FUNC (selection_cb), model);
+ g_signal_connectc (G_OBJECT (selection), "changed", GTK_SIGNAL_FUNC (selection_cb), model, FALSE);
gtk_signal_connect (GTK_OBJECT (tree_view), "row_activated", GTK_SIGNAL_FUNC (row_activated_cb), model);
return tree_view;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]