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:
committed by
Jonathan Blandford
parent
c4043e2307
commit
b5ea25c500
@ -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
|
||||
|
||||
Reference in New Issue
Block a user