summaryrefslogtreecommitdiff
path: root/gtk/gtktogglebutton.h
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2001-02-19 22:25:30 +0000
committerHavoc Pennington <hp@src.gnome.org>2001-02-19 22:25:30 +0000
commitf4fa22da5524e90e70a14b9630d810b23d0b520e (patch)
tree2118721fb1b3fd3f74e5427315266c1d94dda7cf /gtk/gtktogglebutton.h
parent6fb6363e3013d67e19b9e2b1e5b9d1a3c8f67494 (diff)
downloadgtk+-f4fa22da5524e90e70a14b9630d810b23d0b520e.tar.gz
test was backward, so deprecated functions were excluded by default
2001-02-19 Havoc Pennington <hp@redhat.com> * gdk/gdkcolor.h: test was backward, so deprecated functions were excluded by default * gtk/gtkstyle.c (gtk_default_draw_diamond): draw etched in/out, clean up the old code a bit * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator): draw inconsistent state * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator): draw inconsistent state * gtk/testgtk.c (create_toggle_buttons): add test for inconsistent (create_menu): add inconsistent test * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_set_inconsistent): new function (gtk_check_menu_item_get_inconsistent): new function (gtk_real_check_menu_item_draw_indicator): draw the inconsistent state (using etched in for now) * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator): draw inconsistent state * gtk/gtktogglebutton.c (gtk_toggle_button_set_inconsistent): new function, used when the user has selected a range of stuff in different states (gtk_toggle_button_get_inconsistent): accessor for that (gtk_toggle_button_paint): draw inconsistent state (etched in? don't know what else to do)
Diffstat (limited to 'gtk/gtktogglebutton.h')
-rw-r--r--gtk/gtktogglebutton.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtktogglebutton.h b/gtk/gtktogglebutton.h
index def107e5ac..c00b98bad5 100644
--- a/gtk/gtktogglebutton.h
+++ b/gtk/gtktogglebutton.h
@@ -54,6 +54,7 @@ struct _GtkToggleButton
guint active : 1;
guint draw_indicator : 1;
+ guint inconsistent : 1;
GdkWindow *event_window;
};
@@ -76,6 +77,9 @@ void gtk_toggle_button_set_active (GtkToggleButton *toggle_button,
gboolean gtk_toggle_button_get_active (GtkToggleButton *toggle_button);
void gtk_toggle_button_toggled (GtkToggleButton *toggle_button);
+void gtk_toggle_button_set_inconsistent (GtkToggleButton *toggle_button,
+ gboolean setting);
+gboolean gtk_toggle_button_get_inconsistent (GtkToggleButton *toggle_button);
#ifdef __cplusplus
}