diff options
author | Milan Crha <mcrha@redhat.com> | 2011-01-25 16:18:41 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-01-25 23:37:16 +0800 |
commit | 25f30507561fcc9c2d0bc6f7cc3a4e978c320d39 (patch) | |
tree | 8de1226d997d0ce6d310d12f3c0c8753d5c2ff84 /widgets/misc | |
parent | b7c2f49973b93c2e80bed6f10c534af17b757c04 (diff) | |
download | gsoc2013-evolution-25f30507561fcc9c2d0bc6f7cc3a4e978c320d39.tar.gz gsoc2013-evolution-25f30507561fcc9c2d0bc6f7cc3a4e978c320d39.tar.zst gsoc2013-evolution-25f30507561fcc9c2d0bc6f7cc3a4e978c320d39.zip |
Do not oversize New and Send/Receive toolbar buttons
Diffstat (limited to 'widgets/misc')
-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; } |