mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Add toolbar preference changes to embedded-window.
Fixes Bug 796739 - Toolbar buttons have no labels, part 2 of 3.
This commit is contained in:
parent
3b09313107
commit
a75eb4c8ec
@ -38,6 +38,7 @@
|
|||||||
#include "gnc-plugin-manager.h"
|
#include "gnc-plugin-manager.h"
|
||||||
#include "gnc-ui.h"
|
#include "gnc-ui.h"
|
||||||
#include "gnc-window.h"
|
#include "gnc-window.h"
|
||||||
|
#include "gnc-prefs.h"
|
||||||
#include "dialog-utils.h"
|
#include "dialog-utils.h"
|
||||||
|
|
||||||
/* Static Globals *******************************************************/
|
/* Static Globals *******************************************************/
|
||||||
@ -308,6 +309,13 @@ gnc_embedded_window_add_widget (GtkUIManager *merge,
|
|||||||
if (GTK_IS_TOOLBAR (widget))
|
if (GTK_IS_TOOLBAR (widget))
|
||||||
{
|
{
|
||||||
priv->toolbar = widget;
|
priv->toolbar = widget;
|
||||||
|
|
||||||
|
gtk_toolbar_set_style (GTK_TOOLBAR(priv->toolbar),
|
||||||
|
gnc_prefs_get_int (GNC_PREFS_GROUP_GENERAL, GNC_PREF_TOOLBAR_STYLE));
|
||||||
|
|
||||||
|
// prefs has only small and large icons so add 2 to get right enum
|
||||||
|
gtk_toolbar_set_icon_size (GTK_TOOLBAR(priv->toolbar),
|
||||||
|
(gnc_prefs_get_int (GNC_PREFS_GROUP_GENERAL, GNC_PREF_TOOLBAR_ICON_SIZE)) + 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
gtk_box_pack_start (GTK_BOX (priv->menu_dock), widget, FALSE, FALSE, 0);
|
gtk_box_pack_start (GTK_BOX (priv->menu_dock), widget, FALSE, FALSE, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user