summaryrefslogtreecommitdiff
path: root/tests/testselection.c
diff options
context:
space:
mode:
authorTim Janik <timj@gtk.org>1999-01-11 18:49:54 +0000
committerTim Janik <timj@src.gnome.org>1999-01-11 18:49:54 +0000
commitd2e69a89d4b8a0f9ceedbe87362cf9609e5b7c52 (patch)
tree9552de529756e2ce086f0965601290dad6d31c52 /tests/testselection.c
parent0b84fc27424dfe1a3dbd7cb35b80a95eadd8aa17 (diff)
downloadgtk+-d2e69a89d4b8a0f9ceedbe87362cf9609e5b7c52.tar.gz
eliminated some queue_draws when invoking gtk_widget_set_state, since that
Mon Jan 11 15:23:32 1999 Tim Janik <timj@gtk.org> * gtk/gtktogglebutton.c: eliminated some queue_draws when invoking gtk_widget_set_state, since that cares about redrawing already. some code cleanups. * gtk/gtktogglebutton.[hc]: * gtk/gtkfontsel.c: * gtkgamma.c: s/gtk_toggle_button_set_state/gtk_toggle_button_set_active/ since set_state is already taken by gtkwidget.h. * gtk/gtkcompat.h: #define gtk_toggle_button_set_state gtk_toggle_button_set_active. * gtk/gtkstyle.c: some indentation cleanups.
Diffstat (limited to 'tests/testselection.c')
-rw-r--r--tests/testselection.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/testselection.c b/tests/testselection.c
index 765f918f28..e7d7bbfa21 100644
--- a/tests/testselection.c
+++ b/tests/testselection.c
@@ -136,7 +136,7 @@ selection_toggled (GtkWidget *widget)
GDK_SELECTION_PRIMARY,
GDK_CURRENT_TIME);
if (!have_selection)
- gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON(widget), FALSE);
+ gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(widget), FALSE);
}
else
{
@@ -188,7 +188,7 @@ gint
selection_clear (GtkWidget *widget, GdkEventSelection *event)
{
have_selection = FALSE;
- gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON(widget), FALSE);
+ gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(widget), FALSE);
return TRUE;
}