summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortest-tools <test-tools>2006-11-14 16:26:06 +0000
committertest-tools <test-tools>2006-11-14 16:26:06 +0000
commit18993ec029ed9f3890105226ab9e4b57f25f5d4d (patch)
tree7717e7faa4a0f220a5d284cfe8be1274b48ee8be /src
parent8f57dbb6b083f6e4165192aee4c7fcf43d279d60 (diff)
downloadberyl-manager-18993ec029ed9f3890105226ab9e4b57f25f5d4d.tar.gz
beryl-manager-18993ec029ed9f3890105226ab9e4b57f25f5d4d.tar.bz2
beryl-manager: Made the Iconsize configurable via ~/.beryl-managerrc
iconsize=22 (where 22 is in range 12-128) Closes #675 for now
Diffstat (limited to 'src')
-rw-r--r--src/main.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index fea6438..094d6fc 100644
--- a/src/main.c
+++ b/src/main.c
@@ -44,6 +44,7 @@ gboolean useFB=TRUE;
gint WM=0;
gint fallBackWM=0;
gint DM=0;
+gint iconsize=24;
gchar* displayname;
typedef struct _DMInfo
{
@@ -246,6 +247,12 @@ void load_settings()
if (!e)
useFB=b;
e=NULL;
+ i=g_key_file_get_integer(f,"wm-settings","iconsize",&e);
+ if (!e &&
+ ( i>=12 &&
+ i<=128) )
+ iconsize=i;
+ e=NULL;
if (!XGL && NV9XXX)
{
b=g_key_file_get_boolean(f,"beryl-settings",
@@ -276,6 +283,7 @@ void save_settings()
g_key_file_set_integer(f,"wm-settings","active_wm",WM);
g_key_file_set_integer(f,"wm-settings","fallback_wm",fallBackWM);
g_key_file_set_integer(f,"wm-settings","active_dm",DM);
+ g_key_file_set_integer(f,"wm-settings","iconsize",iconsize);
g_key_file_set_boolean(f,"wm-settings","use_fallback_wm",useFB);
if (!XGL && NV9XXX)
g_key_file_set_boolean(f,"beryl-settings","no_gl_yield",
@@ -985,7 +993,7 @@ void init_widgets()
evbox = gtk_event_box_new();
gtk_event_box_set_visible_window(GTK_EVENT_BOX(evbox),FALSE);
gtk_tooltips_set_tip(tips,evbox,_("Beryl Manager"),_("Manage various things related to Beryl"));
- pbuf = gdk_pixbuf_new_from_file_at_size(DATADIR "/icons/hicolor/scalable/apps/beryl-manager.svg",24,24,NULL);
+ pbuf = gdk_pixbuf_new_from_file_at_size(DATADIR "/icons/hicolor/scalable/apps/beryl-manager.svg",iconsize,iconsize,NULL);
if (!pbuf)
pbuf = gdk_pixbuf_new_from_file(DATADIR "/icons/hicolor/24x24/apps/beryl-manager.png",NULL);
if (!pbuf)