mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Set toolbar buttons to show both icon and text
And make the icon small to recover some vertical screen estate. The motivation for this is that Gtk has dropped the ability for users to change a toolbar's appearance. And as our icons are often less than descriptive many users benefit from having textual descriptions as well. This is the best compromise we can make until the gui gets an in-depth redesign.
This commit is contained in:
@@ -308,6 +308,10 @@ gnc_embedded_window_add_widget (GtkUIManager *merge,
|
||||
if (GTK_IS_TOOLBAR (widget))
|
||||
{
|
||||
priv->toolbar = widget;
|
||||
gtk_toolbar_set_style (GTK_TOOLBAR(priv->toolbar),
|
||||
GTK_TOOLBAR_BOTH);
|
||||
gtk_toolbar_set_icon_size (GTK_TOOLBAR(priv->toolbar),
|
||||
GTK_ICON_SIZE_SMALL_TOOLBAR);
|
||||
}
|
||||
|
||||
gtk_box_pack_start (GTK_BOX (priv->menu_dock), widget, FALSE, FALSE, 0);
|
||||
|
||||
@@ -3838,6 +3838,10 @@ gnc_main_window_add_widget (GtkUIManager *merge,
|
||||
if (GTK_IS_TOOLBAR (widget))
|
||||
{
|
||||
priv->toolbar = widget;
|
||||
gtk_toolbar_set_style (GTK_TOOLBAR(priv->toolbar),
|
||||
GTK_TOOLBAR_BOTH);
|
||||
gtk_toolbar_set_icon_size (GTK_TOOLBAR(priv->toolbar),
|
||||
GTK_ICON_SIZE_SMALL_TOOLBAR);
|
||||
}
|
||||
|
||||
gtk_box_pack_start (GTK_BOX (priv->menu_dock), widget, FALSE, FALSE, 0);
|
||||
|
||||
@@ -1681,6 +1681,13 @@ recnWindow_add_widget (GtkUIManager *merge,
|
||||
GtkWidget *widget,
|
||||
GtkBox *dock)
|
||||
{
|
||||
if (GTK_IS_TOOLBAR (widget))
|
||||
{
|
||||
gtk_toolbar_set_style (GTK_TOOLBAR(widget),
|
||||
GTK_TOOLBAR_BOTH);
|
||||
gtk_toolbar_set_icon_size (GTK_TOOLBAR(widget),
|
||||
GTK_ICON_SIZE_SMALL_TOOLBAR);
|
||||
}
|
||||
gtk_box_pack_start (GTK_BOX (dock), widget, FALSE, FALSE, 0);
|
||||
gtk_widget_show (widget);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user