diff options
author | Soeren Sandmann <sandmann@daimi.au.dk> | 2003-07-08 18:20:45 +0000 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@src.gnome.org> | 2003-07-08 18:20:45 +0000 |
commit | 7913e63f692a7f7b155fe07246d69c58f4087688 (patch) | |
tree | ba5fed8f6268c7afd187dcb6a1f34270672957f4 /gtk/gtkradiotoolbutton.c | |
parent | b3b16bebcf3a28475190b764091442e7be18fdb2 (diff) | |
download | gtk+-7913e63f692a7f7b155fe07246d69c58f4087688.tar.gz |
remove correction on x when detail is "menuitem". With the new menu look
Tue Jul 8 19:57:14 2003 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtkstyle.c (gtk_default_draw_arrow): remove correction on x
when detail is "menuitem". With the new menu look is isn't needed
anymore.
* gtk/gtktoolitem.c (gtk_tool_item_toolbar_reconfigured): queue a
resize here, so that tool items will get a chance to relayout
themselves based on the toolbar configuration.
change DEFAULT_SPACE_SIZE to 4 instead of 5
* gtk/gtktoolbar.c
Get rid of "!GTK_BIN (item)->child means separator". Separators
are widgets in their own right
change DEFAULT_SPACE_SIZE to 4 instead of 5
(get_space_size): remove this function
(toolbar_item_is_homogeneous): new function
* gtk/gtkseparatortoolitem.c
(gtk_separator_tool_item_size_request): new function.
Tue Jul 8 14:10:35 2003 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtktoggletoolbutton.h: use private data, add new
internal function _gtk_toggle_tool_button_get_button()
* gtk/gtktoolbutton.h: move to private data
* gtk/gtkradiotoolbutton.c, gtk/gtktoolbutton.c: updates for new
private data.
Diffstat (limited to 'gtk/gtkradiotoolbutton.c')
-rw-r--r-- | gtk/gtkradiotoolbutton.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/gtk/gtkradiotoolbutton.c b/gtk/gtkradiotoolbutton.c index 46cb83801c..8f7471a598 100644 --- a/gtk/gtkradiotoolbutton.c +++ b/gtk/gtkradiotoolbutton.c @@ -67,7 +67,8 @@ gtk_radio_tool_button_class_init (GtkRadioToolButtonClass *klass) static void gtk_radio_tool_button_init (GtkRadioToolButton *button) { - gtk_toggle_button_set_mode (GTK_TOGGLE_BUTTON (GTK_TOOL_BUTTON (button)->button), FALSE); + GtkToolButton *tool_button = GTK_TOOL_BUTTON (button); + gtk_toggle_button_set_mode (GTK_TOGGLE_BUTTON (_gtk_tool_button_get_button (tool_button)), FALSE); } GtkToolItem * @@ -128,12 +129,18 @@ gtk_radio_tool_button_new_with_stock_from_widget (GtkWidget *group) return gtk_radio_tool_button_new (list); } +static GtkRadioButton * +get_radio_button (GtkRadioToolButton *button) +{ + return GTK_RADIO_BUTTON (_gtk_tool_button_get_button (GTK_TOOL_BUTTON (button))); +} + GSList * gtk_radio_tool_button_get_group (GtkRadioToolButton *button) { g_return_val_if_fail (GTK_IS_RADIO_TOOL_BUTTON (button), NULL); - return gtk_radio_button_get_group (GTK_RADIO_BUTTON (GTK_TOOL_BUTTON (button)->button)); + return gtk_radio_button_get_group (get_radio_button (button)); } void @@ -142,6 +149,6 @@ gtk_radio_tool_button_set_group (GtkRadioToolButton *button, { g_return_if_fail (GTK_IS_RADIO_TOOL_BUTTON (button)); - gtk_radio_button_set_group (GTK_RADIO_BUTTON (GTK_TOOL_BUTTON (button)->button), group); + gtk_radio_button_set_group (get_radio_button (button), group); } |