diff options
author | Milan Crha <mcrha@redhat.com> | 2011-01-25 16:18:41 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-06-30 00:41:26 +0800 |
commit | 68e1dff622c086b44037785e9f94d948fddae939 (patch) | |
tree | dfaf4253b7a8145adc76f268a44cbc21cf254147 /widgets | |
parent | b5aba428f4d7daca78a6b079e1766d9fba5a8bc3 (diff) | |
download | gsoc2013-evolution-68e1dff622c086b44037785e9f94d948fddae939.tar.gz gsoc2013-evolution-68e1dff622c086b44037785e9f94d948fddae939.tar.zst gsoc2013-evolution-68e1dff622c086b44037785e9f94d948fddae939.zip |
Do not oversize New and Send/Receive toolbar buttons
Diffstat (limited to 'widgets')
-rw-r--r-- | widgets/misc/e-menu-tool-button.c | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/widgets/misc/e-menu-tool-button.c b/widgets/misc/e-menu-tool-button.c index 628fdea55d..8661effa31 100644 --- a/widgets/misc/e-menu-tool-button.c +++ b/widgets/misc/e-menu-tool-button.c @@ -100,38 +100,6 @@ menu_tool_button_update_button (GtkToolButton *tool_button) } static void -menu_tool_button_get_preferred_height (GtkWidget *widget, - gint *minimal_height, - gint *natural_height) -{ - GTK_WIDGET_CLASS (e_menu_tool_button_parent_class)-> - get_preferred_height (widget, minimal_height, natural_height); -} - -static void -menu_tool_button_get_preferred_width (GtkWidget *widget, - gint *minimal_width, - gint *natural_width) -{ - gint minimum_width, min_height, nat_height; - - GTK_WIDGET_CLASS (e_menu_tool_button_parent_class)-> - get_preferred_width (widget, minimal_width, natural_width); - - /* XXX This is a hack. This widget is only used for the New - * button in the main window toolbar. The New button is - * pretty important, but the word "New" is pretty short - * (in English, anyway) and this results in a small screen - * target when using a "text below item" toolbar style. - * - * We can't go hard-coding a width, but we -can- use a - * heuristic based on the toolbar button height. */ - menu_tool_button_get_preferred_height (widget, &min_height, &nat_height); - minimum_width = min_height * 2; - *minimal_width = *natural_width = MAX (minimum_width, *minimal_width); -} - -static void menu_tool_button_clicked (GtkToolButton *tool_button) { GtkMenuItem *menu_item; @@ -147,13 +115,8 @@ menu_tool_button_clicked (GtkToolButton *tool_button) static void e_menu_tool_button_class_init (EMenuToolButtonClass *class) { - GtkWidgetClass *widget_class; GtkToolButtonClass *tool_button_class; - widget_class = GTK_WIDGET_CLASS (class); - widget_class->get_preferred_height = menu_tool_button_get_preferred_height; - widget_class->get_preferred_width = menu_tool_button_get_preferred_width; - tool_button_class = GTK_TOOL_BUTTON_CLASS (class); tool_button_class->clicked = menu_tool_button_clicked; } |