Patch from vishnu@pobox.com (Joshua N Pritikin) to emit signal at the

Sun Sep  2 17:38:42 2001  Jonathan Blandford  <jrb@redhat.com>

	* gtk/gtktreeview.c (gtk_tree_view_deleted): Patch from
	vishnu@pobox.com (Joshua N Pritikin) to emit signal at the correct
	time, #59727

	* gtk/gtkbutton.c (gtk_button_update_state): Get depressed
	correctly.
This commit is contained in:
Jonathan Blandford 2001-09-03 06:45:17 +00:00 committed by Jonathan Blandford
parent c4043e2307
commit b5ea25c500
9 changed files with 71 additions and 4 deletions

View File

@ -1,3 +1,12 @@
Sun Sep 2 17:38:42 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_deleted): Patch from
vishnu@pobox.com (Joshua N Pritikin) to emit signal at the correct
time, #59727
* gtk/gtkbutton.c (gtk_button_update_state): Get depressed
correctly.
Sun Sep 2 21:41:21 2001 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkkeys-x11.c (update_keymaps): Set current serial

View File

@ -1,3 +1,12 @@
Sun Sep 2 17:38:42 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_deleted): Patch from
vishnu@pobox.com (Joshua N Pritikin) to emit signal at the correct
time, #59727
* gtk/gtkbutton.c (gtk_button_update_state): Get depressed
correctly.
Sun Sep 2 21:41:21 2001 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkkeys-x11.c (update_keymaps): Set current serial

View File

@ -1,3 +1,12 @@
Sun Sep 2 17:38:42 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_deleted): Patch from
vishnu@pobox.com (Joshua N Pritikin) to emit signal at the correct
time, #59727
* gtk/gtkbutton.c (gtk_button_update_state): Get depressed
correctly.
Sun Sep 2 21:41:21 2001 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkkeys-x11.c (update_keymaps): Set current serial

View File

@ -1,3 +1,12 @@
Sun Sep 2 17:38:42 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_deleted): Patch from
vishnu@pobox.com (Joshua N Pritikin) to emit signal at the correct
time, #59727
* gtk/gtkbutton.c (gtk_button_update_state): Get depressed
correctly.
Sun Sep 2 21:41:21 2001 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkkeys-x11.c (update_keymaps): Set current serial

View File

@ -1,3 +1,12 @@
Sun Sep 2 17:38:42 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_deleted): Patch from
vishnu@pobox.com (Joshua N Pritikin) to emit signal at the correct
time, #59727
* gtk/gtkbutton.c (gtk_button_update_state): Get depressed
correctly.
Sun Sep 2 21:41:21 2001 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkkeys-x11.c (update_keymaps): Set current serial

View File

@ -1,3 +1,12 @@
Sun Sep 2 17:38:42 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_deleted): Patch from
vishnu@pobox.com (Joshua N Pritikin) to emit signal at the correct
time, #59727
* gtk/gtkbutton.c (gtk_button_update_state): Get depressed
correctly.
Sun Sep 2 21:41:21 2001 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkkeys-x11.c (update_keymaps): Set current serial

View File

@ -1,3 +1,12 @@
Sun Sep 2 17:38:42 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_deleted): Patch from
vishnu@pobox.com (Joshua N Pritikin) to emit signal at the correct
time, #59727
* gtk/gtkbutton.c (gtk_button_update_state): Get depressed
correctly.
Sun Sep 2 21:41:21 2001 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkkeys-x11.c (update_keymaps): Set current serial

View File

@ -1054,6 +1054,7 @@ gtk_button_finish_activate (GtkButton *button,
gtk_grab_remove (widget);
button->button_down = FALSE;
gtk_button_update_state (button);
if (do_it)
@ -1224,8 +1225,8 @@ gtk_button_update_state (GtkButton *button)
gboolean depressed;
GtkStateType new_state;
depressed = button->in_button && button->button_down;
depressed = button->button_down && (button->in_button || button->activate_timeout);
if (!button->button_down && button->in_button)
new_state = GTK_STATE_PRELIGHT;
else

View File

@ -4512,6 +4512,7 @@ gtk_tree_view_deleted (GtkTreeModel *model,
GtkRBTree *tree;
GtkRBNode *node;
GList *list;
gint selection_changed;
g_return_if_fail (path != NULL);
@ -4524,8 +4525,7 @@ gtk_tree_view_deleted (GtkTreeModel *model,
gtk_tree_row_reference_deleted (G_OBJECT (data), path);
/* Change the selection */
if (GTK_RBNODE_FLAG_SET (node, GTK_RBNODE_IS_SELECTED))
g_signal_emit_by_name (G_OBJECT (tree_view->priv->selection), "changed");
selection_changed = GTK_RBNODE_FLAG_SET (node, GTK_RBNODE_IS_SELECTED);
for (list = tree_view->priv->columns; list; list = list->next)
if (((GtkTreeViewColumn *)list->data)->visible &&
@ -4568,6 +4568,9 @@ gtk_tree_view_deleted (GtkTreeModel *model,
}
_gtk_tree_view_update_size (GTK_TREE_VIEW (data));
if (selection_changed)
g_signal_emit_by_name (G_OBJECT (tree_view->priv->selection), "changed");
}