Commit aa1bf581 authored by Lars Hamann's avatar Lars Hamann

few fixes for gtk_signal_emits

* gtk/gtkctree.c (tree_select/unselect) (tree_expand/collapse)
  (tree_toggle_expansion) (real_select/unselect_row)
  (gtk_ctree_select/unselect) : few fixes for gtk_signal_emits
parent 59a36172
Wed Jul 22 23:00:44 1998 Lars Hamann <lars@gtk.org>
* gtk/gtkctree.c (tree_select/unselect) (tree_expand/collapse)
(tree_toggle_expansion) (real_select/unselect_row)
(gtk_ctree_select/unselect) : few fixes for gtk_signal_emits
Wed Jul 15 17:44:47 1998 Owen Taylor <otaylor@redhat.com> Wed Jul 15 17:44:47 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtktext.c (new_text_property): We free things from * gtk/gtktext.c (new_text_property): We free things from
......
Wed Jul 22 23:00:44 1998 Lars Hamann <lars@gtk.org>
* gtk/gtkctree.c (tree_select/unselect) (tree_expand/collapse)
(tree_toggle_expansion) (real_select/unselect_row)
(gtk_ctree_select/unselect) : few fixes for gtk_signal_emits
Wed Jul 15 17:44:47 1998 Owen Taylor <otaylor@redhat.com> Wed Jul 15 17:44:47 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtktext.c (new_text_property): We free things from * gtk/gtktext.c (new_text_property): We free things from
......
Wed Jul 22 23:00:44 1998 Lars Hamann <lars@gtk.org>
* gtk/gtkctree.c (tree_select/unselect) (tree_expand/collapse)
(tree_toggle_expansion) (real_select/unselect_row)
(gtk_ctree_select/unselect) : few fixes for gtk_signal_emits
Wed Jul 15 17:44:47 1998 Owen Taylor <otaylor@redhat.com> Wed Jul 15 17:44:47 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtktext.c (new_text_property): We free things from * gtk/gtktext.c (new_text_property): We free things from
......
Wed Jul 22 23:00:44 1998 Lars Hamann <lars@gtk.org>
* gtk/gtkctree.c (tree_select/unselect) (tree_expand/collapse)
(tree_toggle_expansion) (real_select/unselect_row)
(gtk_ctree_select/unselect) : few fixes for gtk_signal_emits
Wed Jul 15 17:44:47 1998 Owen Taylor <otaylor@redhat.com> Wed Jul 15 17:44:47 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtktext.c (new_text_property): We free things from * gtk/gtktext.c (new_text_property): We free things from
......
Wed Jul 22 23:00:44 1998 Lars Hamann <lars@gtk.org>
* gtk/gtkctree.c (tree_select/unselect) (tree_expand/collapse)
(tree_toggle_expansion) (real_select/unselect_row)
(gtk_ctree_select/unselect) : few fixes for gtk_signal_emits
Wed Jul 15 17:44:47 1998 Owen Taylor <otaylor@redhat.com> Wed Jul 15 17:44:47 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtktext.c (new_text_property): We free things from * gtk/gtktext.c (new_text_property): We free things from
......
Wed Jul 22 23:00:44 1998 Lars Hamann <lars@gtk.org>
* gtk/gtkctree.c (tree_select/unselect) (tree_expand/collapse)
(tree_toggle_expansion) (real_select/unselect_row)
(gtk_ctree_select/unselect) : few fixes for gtk_signal_emits
Wed Jul 15 17:44:47 1998 Owen Taylor <otaylor@redhat.com> Wed Jul 15 17:44:47 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtktext.c (new_text_property): We free things from * gtk/gtktext.c (new_text_property): We free things from
......
Wed Jul 22 23:00:44 1998 Lars Hamann <lars@gtk.org>
* gtk/gtkctree.c (tree_select/unselect) (tree_expand/collapse)
(tree_toggle_expansion) (real_select/unselect_row)
(gtk_ctree_select/unselect) : few fixes for gtk_signal_emits
Wed Jul 15 17:44:47 1998 Owen Taylor <otaylor@redhat.com> Wed Jul 15 17:44:47 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtktext.c (new_text_property): We free things from * gtk/gtktext.c (new_text_property): We free things from
......
...@@ -3124,8 +3124,8 @@ tree_select (GtkCTree *ctree, ...@@ -3124,8 +3124,8 @@ tree_select (GtkCTree *ctree,
gpointer data) gpointer data)
{ {
if (node && GTK_CTREE_ROW (node)->row.state != GTK_STATE_SELECTED) if (node && GTK_CTREE_ROW (node)->row.state != GTK_STATE_SELECTED)
gtk_signal_emit (GTK_OBJECT (ctree), ctree_signals[TREE_SELECT_ROW], gtk_signal_emit (GTK_OBJECT (ctree), ctree_signals[TREE_SELECT_ROW],
node, data); node, -1);
} }
static void static void
...@@ -3135,7 +3135,7 @@ tree_unselect (GtkCTree *ctree, ...@@ -3135,7 +3135,7 @@ tree_unselect (GtkCTree *ctree,
{ {
if (node && GTK_CTREE_ROW (node)->row.state == GTK_STATE_SELECTED) if (node && GTK_CTREE_ROW (node)->row.state == GTK_STATE_SELECTED)
gtk_signal_emit (GTK_OBJECT (ctree), ctree_signals[TREE_UNSELECT_ROW], gtk_signal_emit (GTK_OBJECT (ctree), ctree_signals[TREE_UNSELECT_ROW],
node, data); node, -1);
} }
static void static void
...@@ -3144,8 +3144,7 @@ tree_expand (GtkCTree *ctree, ...@@ -3144,8 +3144,7 @@ tree_expand (GtkCTree *ctree,
gpointer data) gpointer data)
{ {
if (node && !GTK_CTREE_ROW (node)->expanded) if (node && !GTK_CTREE_ROW (node)->expanded)
gtk_signal_emit (GTK_OBJECT (ctree), ctree_signals[TREE_EXPAND], node, gtk_signal_emit (GTK_OBJECT (ctree), ctree_signals[TREE_EXPAND], node);
data);
} }
static void static void
...@@ -3154,8 +3153,7 @@ tree_collapse (GtkCTree *ctree, ...@@ -3154,8 +3153,7 @@ tree_collapse (GtkCTree *ctree,
gpointer data) gpointer data)
{ {
if (node && GTK_CTREE_ROW (node)->expanded) if (node && GTK_CTREE_ROW (node)->expanded)
gtk_signal_emit (GTK_OBJECT (ctree), ctree_signals[TREE_COLLAPSE], node, gtk_signal_emit (GTK_OBJECT (ctree), ctree_signals[TREE_COLLAPSE], node);
data);
} }
static void static void
...@@ -3176,11 +3174,9 @@ tree_toggle_expansion (GtkCTree *ctree, ...@@ -3176,11 +3174,9 @@ tree_toggle_expansion (GtkCTree *ctree,
return; return;
if (GTK_CTREE_ROW (node)->expanded) if (GTK_CTREE_ROW (node)->expanded)
gtk_signal_emit (GTK_OBJECT (ctree), ctree_signals[TREE_COLLAPSE], node, gtk_signal_emit (GTK_OBJECT (ctree), ctree_signals[TREE_COLLAPSE], node);
data);
else else
gtk_signal_emit (GTK_OBJECT (ctree), ctree_signals[TREE_EXPAND], node, gtk_signal_emit (GTK_OBJECT (ctree), ctree_signals[TREE_EXPAND], node);
data);
} }
static GtkCTreeRow * static GtkCTreeRow *
...@@ -3312,7 +3308,7 @@ real_select_row (GtkCList *clist, ...@@ -3312,7 +3308,7 @@ real_select_row (GtkCList *clist,
if ((node = g_list_nth (clist->row_list, row))) if ((node = g_list_nth (clist->row_list, row)))
gtk_signal_emit (GTK_OBJECT (clist), ctree_signals[TREE_SELECT_ROW], gtk_signal_emit (GTK_OBJECT (clist), ctree_signals[TREE_SELECT_ROW],
node, event); node, column);
} }
static void static void
...@@ -3328,7 +3324,7 @@ real_unselect_row (GtkCList *clist, ...@@ -3328,7 +3324,7 @@ real_unselect_row (GtkCList *clist,
if ((node = g_list_nth (clist->row_list, row))) if ((node = g_list_nth (clist->row_list, row)))
gtk_signal_emit (GTK_OBJECT (clist), ctree_signals[TREE_UNSELECT_ROW], gtk_signal_emit (GTK_OBJECT (clist), ctree_signals[TREE_UNSELECT_ROW],
node, event); node, column);
} }
static void static void
...@@ -4279,7 +4275,8 @@ gtk_ctree_select (GtkCTree *ctree, ...@@ -4279,7 +4275,8 @@ gtk_ctree_select (GtkCTree *ctree,
g_return_if_fail (ctree != NULL); g_return_if_fail (ctree != NULL);
g_return_if_fail (node != NULL); g_return_if_fail (node != NULL);
gtk_signal_emit (GTK_OBJECT (ctree), ctree_signals[TREE_SELECT_ROW], node); gtk_signal_emit (GTK_OBJECT (ctree), ctree_signals[TREE_SELECT_ROW],
node, -1);
} }
void void
...@@ -4289,7 +4286,8 @@ gtk_ctree_unselect (GtkCTree *ctree, ...@@ -4289,7 +4286,8 @@ gtk_ctree_unselect (GtkCTree *ctree,
g_return_if_fail (ctree != NULL); g_return_if_fail (ctree != NULL);
g_return_if_fail (node != NULL); g_return_if_fail (node != NULL);
gtk_signal_emit (GTK_OBJECT (ctree), ctree_signals[TREE_UNSELECT_ROW], node); gtk_signal_emit (GTK_OBJECT (ctree), ctree_signals[TREE_UNSELECT_ROW],
node, -1);
} }
void void
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment