summaryrefslogtreecommitdiff
path: root/gtk/gtkgamma.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 /gtk/gtkgamma.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 'gtk/gtkgamma.c')
-rw-r--r--gtk/gtkgamma.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkgamma.c b/gtk/gtkgamma.c
index f395712e38..cd68139fe4 100644
--- a/gtk/gtkgamma.c
+++ b/gtk/gtkgamma.c
@@ -329,7 +329,7 @@ button_toggled_callback (GtkWidget *w, gpointer data)
break;
if (i < 3)
- gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (c->button[i]), FALSE);
+ gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (c->button[i]), FALSE);
switch (active)
{
@@ -444,7 +444,7 @@ curve_type_changed_callback (GtkWidget *w, gpointer data)
default: active = 2; break;
}
if (!GTK_TOGGLE_BUTTON (c->button[active])->active)
- gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (c->button[active]), TRUE);
+ gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (c->button[active]), TRUE);
}
GtkWidget*