diff options
author | Havoc Pennington <hp@redhat.com> | 2001-01-04 21:33:24 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2001-01-04 21:33:24 +0000 |
commit | c020b3b4f87fa978a6706e9b98faa5f522d6b002 (patch) | |
tree | 29e938e04b26f04b98139a83c8a1fa3c67673ee0 /gtk/gtkcellrenderertoggle.h | |
parent | ef069fa0a020e2fbe901fa94d1fc323934ab87fb (diff) | |
download | gtk+-c020b3b4f87fa978a6706e9b98faa5f522d6b002.tar.gz |
Rename some stuff:
2001-01-04 Havoc Pennington <hp@redhat.com>
Rename some stuff:
s/gtk_tree_view_column_set_size/gtk_tree_view_column_set_width/g;
s/GtkModelSimple/GtkTreeModelSimple/g;
s/GTK_MODEL_SIMPLE/GTK_TREE_MODEL_SIMPLE/g;
s/gtk_model_simple/gtk_tree_model_simple/g;
s/gtkmodelsimple/gtktreemodelsimple/g;
s/gtk_tree_view_column_set_header_active/gtk_tree_view_column_set_header_clickable/g;
s/GtkTreeViewColumnType/GtkTreeViewColumnSizing/g;
s/column_set_col_type/column_set_sizing/g;
s/GtkTreeSelectionType/GtkTreeSelectionMode/g;
s/gtk_tree_selection_set_type/gtk_tree_selection_set_mode/g;
s/GtkCellRendererType/GtkCellRendererState/g;
* gtk/gtkcellrenderertoggle.c: remove _ macro, include gtkintl.h
(gtk_cell_renderer_toggle_class_init): change "state" property to
"active", to match GtkToggleButton
(gtk_cell_renderer_toggle_get_active): new function, bug
40269
(gtk_cell_renderer_toggle_set_active): new function
(gtk_cell_renderer_toggle_set_property): route changes to toggle
state through gtk_cell_renderer_set_active
Diffstat (limited to 'gtk/gtkcellrenderertoggle.h')
-rw-r--r-- | gtk/gtkcellrenderertoggle.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/gtkcellrenderertoggle.h b/gtk/gtkcellrenderertoggle.h index 0df6696468..580edf288f 100644 --- a/gtk/gtkcellrenderertoggle.h +++ b/gtk/gtkcellrenderertoggle.h @@ -41,7 +41,7 @@ struct _GtkCellRendererToggle GtkCellRenderer parent; /*< private >*/ - guint state : 1; + guint active : 1; guint radio : 1; }; @@ -59,6 +59,9 @@ GtkCellRenderer *gtk_cell_renderer_toggle_new (void); void gtk_cell_renderer_toggle_set_radio (GtkCellRendererToggle *toggle, gboolean radio); +gboolean gtk_cell_renderer_toggle_get_active (GtkCellRendererToggle *toggle); +void gtk_cell_renderer_toggle_set_active (GtkCellRendererToggle *toggle, + gboolean setting); #ifdef __cplusplus } |