diff options
author | Soeren Sandmann <sandmann@daimi.au.dk> | 2003-07-08 20:28:24 +0000 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@src.gnome.org> | 2003-07-08 20:28:24 +0000 |
commit | d523e1a2b16b17fd424de81fae03d961b9667762 (patch) | |
tree | 27e3db9b96ccd35e7573f49fe9104e595a80e0c8 /gtk/gtktoggletoolbutton.c | |
parent | 81785924f9cc9e9edf817a85fd62aff1e44f3117 (diff) | |
download | gtk+-d523e1a2b16b17fd424de81fae03d961b9667762.tar.gz |
remove strange #define fix cut'n'paste error use instance private data use
Tue Jul 8 21:35:22 2003 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtktoggletoolbutton.h: remove strange #define
* gtk/gtktoolbutton.h: fix cut'n'paste error
* gtk/gtktoolbutton.c (gtk_tool_button_init): use instance
private data
* gtk/gtktoolitem.c (gtk_tool_item_class_init): use instance
private data instead of g_new0()
* gtk/gtktoggletoolbutton.c (gtk_toggle_tool_button_init): use
instance private data
Diffstat (limited to 'gtk/gtktoggletoolbutton.c')
-rw-r--r-- | gtk/gtktoggletoolbutton.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtktoggletoolbutton.c b/gtk/gtktoggletoolbutton.c index 4e0395f156..1cdb0238b0 100644 --- a/gtk/gtktoggletoolbutton.c +++ b/gtk/gtktoggletoolbutton.c @@ -102,12 +102,14 @@ gtk_toggle_tool_button_class_init (GtkToggleToolButtonClass *klass) NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); + + g_type_class_add_private (object_class, sizeof (GtkToggleToolButtonPrivate)); } static void gtk_toggle_tool_button_init (GtkToggleToolButton *button) { - button->priv = g_new0 (GtkToggleToolButtonPrivate, 1); + button->priv = GTK_TOGGLE_TOOL_BUTTON_GET_PRIVATE (button); g_signal_connect_object (_gtk_tool_button_get_button (GTK_TOOL_BUTTON (button)), "toggled", G_CALLBACK (button_toggled), button, 0); |