summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorquinn <quinn>2006-11-24 13:21:41 +0000
committerquinn <quinn>2006-11-24 13:21:41 +0000
commit65132e5c1db07f55676ebc076883e643c95998a4 (patch)
treea4e9b743f179434edcb5c9803828b08b1a26733c
parentf97275562ab81f16d77d432c3554a8a70e418d9c (diff)
downloadberyl-manager-65132e5c1db07f55676ebc076883e643c95998a4.tar.gz
beryl-manager-65132e5c1db07f55676ebc076883e643c95998a4.tar.bz2
beryl-manager:
-use gettext() on the WM and DM strings to retreive the i18n -make the advanced beryl options trigger reloadWM...TODO this should be altered to only happen if beryl is the wm
-rw-r--r--src/main.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 739014e..8b7c4e9 100644
--- a/src/main.c
+++ b/src/main.c
@@ -822,6 +822,7 @@ void toggleRenderingPath(GtkWidget *w, gpointer p)
{
renderPath = rPath;
save_settings();
+ reloadWM(w,p);
}
}
@@ -833,6 +834,7 @@ void toggleCOW(GtkWidget *w, gpointer p)
{
cowMode = cow;
save_settings();
+ reloadWM(w,p);
}
}
@@ -844,6 +846,7 @@ void togglePlatform(GtkWidget *w, gpointer p)
{
platformMode = platform;
save_settings();
+ reloadWM(w,p);
}
}
@@ -855,6 +858,7 @@ void toggleBinding(GtkWidget *w, gpointer p)
{
bindingMode = binding;
save_settings();
+ reloadWM(w,p);
}
}
@@ -866,6 +870,7 @@ void toggleRendering(GtkWidget *w, gpointer p)
{
renderingMode = rendering;
save_settings();
+ reloadWM(w,p);
}
}
@@ -1035,7 +1040,7 @@ void init_menu()
for (i=0;i<numWM;i++)
{
- mitem = add_menu_group_item(smshell, &wms, WMs[i].Name, ((i==0) || detect_wm(i)), (i==WM), G_CALLBACK(setWM), GINT_TO_POINTER(i));
+ mitem = add_menu_group_item(smshell, &wms, gettext(WMs[i].Name), ((i==0) || detect_wm(i)), (i==WM), G_CALLBACK(setWM), GINT_TO_POINTER(i));
WMs[i].Item=mitem;
}
@@ -1153,7 +1158,7 @@ void init_menu()
for (i=0;i<numDM;i++)
{
- mitem = gtk_radio_menu_item_new_with_label(dms,DMs[i].Name);
+ mitem = gtk_radio_menu_item_new_with_label(dms,gettext(DMs[i].Name));
dms=gtk_radio_menu_item_get_group(GTK_RADIO_MENU_ITEM(mitem));
if (i==DM)
gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(mitem),TRUE);
@@ -1190,7 +1195,7 @@ void init_menu()
for (i=3;i<numWM;i++)
{
- mitem = gtk_radio_menu_item_new_with_label(fbk,WMs[i].Name);
+ mitem = gtk_radio_menu_item_new_with_label(fbk,gettext(WMs[i].Name));
fbk=gtk_radio_menu_item_get_group(GTK_RADIO_MENU_ITEM(mitem));
if ((i-3)==fallBackWM)
gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(mitem),TRUE);