From: Christophe CURIS <christophe.cu...@free.fr>

As many option have been added to it, the panel started to look overloaded.
With a little rework, it now displays the same options in a cleaner way.
Took opportunity to include some balloon help for the AppIcon option to try
to be clearer than what the short label allows.

Signed-off-by: Christophe CURIS <christophe.cu...@free.fr>
---
 WPrefs.app/Preferences.c | 64 ++++++++++++++++++++++++++++--------------------
 WPrefs.app/po/hu.po      | 12 ++++-----
 WPrefs.app/po/ja.po      |  4 +--
 WPrefs.app/po/ko.po      | 10 ++++----
 WPrefs.app/po/nl.po      | 12 ++++-----
 5 files changed, 56 insertions(+), 46 deletions(-)

diff --git a/WPrefs.app/Preferences.c b/WPrefs.app/Preferences.c
index 904cefb..5a7f752 100644
--- a/WPrefs.app/Preferences.c
+++ b/WPrefs.app/Preferences.c
@@ -37,10 +37,16 @@ static const struct {
        const char *db_key;
        int default_value;
        const char *label;
+       const char *balloon_msg;
 } appicon_bouncing[] = {
-       { "DoNotMakeAppIconsBounce",   False, N_("Disable AppIcon bounce.") },
-       { "BounceAppIconsWhenUrgent",  True,  N_("Bounce AppIcon when the 
application wants attention.") },
-       { "RaiseAppIconsWhenBouncing", False, N_("Raise AppIcons when 
bouncing.") }
+       { "DoNotMakeAppIconsBounce",   False, N_("Disable AppIcon bounce"),
+         N_("By default, the AppIcon bounces when the application is 
launched") },
+
+       { "BounceAppIconsWhenUrgent",  True,  N_("Bounce when the application 
wants attention"),
+         NULL },
+
+       { "RaiseAppIconsWhenBouncing", False, N_("Raise AppIcon when bouncing"),
+         N_("Otherwise you will not see it bouncing if\nthere is a window in 
front of the AppIcon") }
 };
 
 typedef struct _Panel {
@@ -229,16 +235,16 @@ static void createPanel(Panel * p)
 
     /***************** Size Display ****************/
        panel->sizeF = WMCreateFrame(panel->box);
-       WMResizeWidget(panel->sizeF, 240, 60);
-       WMMoveWidget(panel->sizeF, 15, 10);
+       WMResizeWidget(panel->sizeF, 255, 52);
+       WMMoveWidget(panel->sizeF, 15, 7);
        WMSetFrameTitle(panel->sizeF, _("Size Display"));
 
        WMSetBalloonTextForView(_("The position or style of the window size\n"
                                  "display that's shown when a window is 
resized."), WMWidgetView(panel->sizeF));
 
        panel->sizeP = WMCreatePopUpButton(panel->sizeF);
-       WMResizeWidget(panel->sizeP, 200, 20);
-       WMMoveWidget(panel->sizeP, 20, 24);
+       WMResizeWidget(panel->sizeP, 227, 20);
+       WMMoveWidget(panel->sizeP, 14, 20);
        WMAddPopUpButtonItem(panel->sizeP, _("Corner of screen"));
        WMAddPopUpButtonItem(panel->sizeP, _("Center of screen"));
        WMAddPopUpButtonItem(panel->sizeP, _("Center of resized window"));
@@ -249,16 +255,16 @@ static void createPanel(Panel * p)
 
     /***************** Position Display ****************/
        panel->posiF = WMCreateFrame(panel->box);
-       WMResizeWidget(panel->posiF, 240, 60);
-       WMMoveWidget(panel->posiF, 15, 75);
+       WMResizeWidget(panel->posiF, 255, 52);
+       WMMoveWidget(panel->posiF, 15, 66);
        WMSetFrameTitle(panel->posiF, _("Position Display"));
 
        WMSetBalloonTextForView(_("The position or style of the window 
position\n"
                                  "display that's shown when a window is 
moved."), WMWidgetView(panel->posiF));
 
        panel->posiP = WMCreatePopUpButton(panel->posiF);
-       WMResizeWidget(panel->posiP, 200, 20);
-       WMMoveWidget(panel->posiP, 20, 24);
+       WMResizeWidget(panel->posiP, 227, 20);
+       WMMoveWidget(panel->posiP, 14, 20);
        WMAddPopUpButtonItem(panel->posiP, _("Corner of screen"));
        WMAddPopUpButtonItem(panel->posiP, _("Center of screen"));
        WMAddPopUpButtonItem(panel->posiP, _("Center of resized window"));
@@ -268,14 +274,14 @@ static void createPanel(Panel * p)
 
     /***************** Balloon Text ****************/
        panel->ballF = WMCreateFrame(panel->box);
-       WMResizeWidget(panel->ballF, 240, 126);
-       WMMoveWidget(panel->ballF, 265, 10);
+       WMResizeWidget(panel->ballF, 220, 132);
+       WMMoveWidget(panel->ballF, 285, 7);
        WMSetFrameTitle(panel->ballF, _("Show balloon for..."));
 
        for (i = 0; i < wlengthof(balloon_choices); i++) {
                panel->ballB[i] = WMCreateSwitchButton(panel->ballF);
-               WMResizeWidget(panel->ballB[i], 210, 20);
-               WMMoveWidget(panel->ballB[i], 15, 16 + i * 22);
+               WMResizeWidget(panel->ballB[i], 198, 20);
+               WMMoveWidget(panel->ballB[i], 11, 16 + i * 22);
                WMSetButtonText(panel->ballB[i], _(balloon_choices[i].label));
        }
 
@@ -283,47 +289,51 @@ static void createPanel(Panel * p)
 
     /***************** Options ****************/
        panel->optF = WMCreateFrame(panel->box);
-       WMResizeWidget(panel->optF, 240, 91);
-       WMMoveWidget(panel->optF, 265, 136);
+       WMResizeWidget(panel->optF, 255, 94);
+       WMMoveWidget(panel->optF, 15, 125);
        WMSetFrameTitle(panel->optF, _("AppIcon bouncing"));
 
        for (i = 0; i < wlengthof(appicon_bouncing); i++) {
                panel->bounceB[i] = WMCreateSwitchButton(panel->optF);
-               WMResizeWidget(panel->bounceB[i], 210, 26);
-               WMMoveWidget(panel->bounceB[i], 15, 12 + i * 25);
+               WMResizeWidget(panel->bounceB[i], 237, 26);
+               WMMoveWidget(panel->bounceB[i], 9, 14 + i * 25);
                WMSetButtonText(panel->bounceB[i], 
_(appicon_bouncing[i].label));
 
                if (appicon_bouncing[i].default_value)
                        WMSetButtonSelected(panel->bounceB[i], True);
+
+               if (appicon_bouncing[i].balloon_msg)
+                       
WMSetBalloonTextForView(_(appicon_bouncing[i].balloon_msg),
+                                               
WMWidgetView(panel->bounceB[i]));
        }
 
        WMMapSubwidgets(panel->optF);
 
     /***************** Workspace border ****************/
        panel->borderF = WMCreateFrame(panel->box);
-       WMResizeWidget(panel->borderF, 240, 82);
-       WMMoveWidget(panel->borderF, 15, 145);
+       WMResizeWidget(panel->borderF, 220, 75);
+       WMMoveWidget(panel->borderF, 285, 144);
        WMSetFrameTitle(panel->borderF, _("Workspace border"));
 
        panel->borderS = WMCreateSlider(panel->borderF);
        WMResizeWidget(panel->borderS, 80, 15);
-       WMMoveWidget(panel->borderS, 20, 20);
+       WMMoveWidget(panel->borderS, 11, 22);
        WMSetSliderMinValue(panel->borderS, 0);
        WMSetSliderMaxValue(panel->borderS, 5);
        WMSetSliderAction(panel->borderS, borderCallback, panel);
 
        panel->borderL = WMCreateLabel(panel->borderF);
        WMResizeWidget(panel->borderL, 100, 15);
-       WMMoveWidget(panel->borderL, 105, 20);
+       WMMoveWidget(panel->borderL, 105, 22);
 
        panel->lrB = WMCreateSwitchButton(panel->borderF);
-       WMMoveWidget(panel->lrB, 20, 40);
-       WMResizeWidget(panel->lrB, 100, 30);
+       WMMoveWidget(panel->lrB, 11, 40);
+       WMResizeWidget(panel->lrB, 95, 30);
        WMSetButtonText(panel->lrB, _("Left/Right"));
 
        panel->tbB = WMCreateSwitchButton(panel->borderF);
-       WMMoveWidget(panel->tbB, 120, 40);
-       WMResizeWidget(panel->tbB, 100, 30);
+       WMMoveWidget(panel->tbB, 110, 40);
+       WMResizeWidget(panel->tbB, 105, 30);
        WMSetButtonText(panel->tbB, _("Top/Bottom"));
 
        WMMapSubwidgets(panel->borderF);
diff --git a/WPrefs.app/po/hu.po b/WPrefs.app/po/hu.po
index d7e2ec4..9a8940e 100644
--- a/WPrefs.app/po/hu.po
+++ b/WPrefs.app/po/hu.po
@@ -1865,16 +1865,16 @@ msgid "AppIcon bouncing"
 msgstr "Appikon pattogás"
 
 #: ../../../wmaker-crm/WPrefs.app/Preferences.c:279
-msgid "Disable AppIcon bounce."
-msgstr "Patogás letiltása."
+msgid "Disable AppIcon bounce"
+msgstr "Patogás letiltása"
 
 #: ../../../wmaker-crm/WPrefs.app/Preferences.c:284
-msgid "Bounce AppIcon when the application wants attention."
-msgstr "Az appikon pattog ha az alkalmazás figyelmet kér."
+msgid "Bounce when the application wants attention"
+msgstr "Az appikon pattog ha az alkalmazás figyelmet kér"
 
 #: ../../../wmaker-crm/WPrefs.app/Preferences.c:290
-msgid "Raise AppIcons when bouncing."
-msgstr "Ikonok előre hozása pattogáskor."
+msgid "Raise AppIcon when bouncing"
+msgstr "Ikonok előre hozása pattogáskor"
 
 #: ../../../wmaker-crm/WPrefs.app/Preferences.c:298
 msgid "Workspace border"
diff --git a/WPrefs.app/po/ja.po b/WPrefs.app/po/ja.po
index ea5e5ef..68e0267 100644
--- a/WPrefs.app/po/ja.po
+++ b/WPrefs.app/po/ja.po
@@ -387,11 +387,11 @@ msgid "Show workspace title on Clip."
 msgstr "ワークスペースのタイトルをクリップに表示する"
 
 #: ../../WPrefs.app/Expert.c:97
-msgid "Bounce AppIcon when the application wants attention."
+msgid "Bounce when the application wants attention"
 msgstr "注意喚起のためにアイコンが飛び跳ねるようにする"
 
 #: ../../WPrefs.app/Expert.c:98
-msgid "Raise AppIcons when bouncing."
+msgid "Raise AppIcon when bouncing"
 msgstr "アイコンが飛び跳ねる時に前面表示にする"
 
 #: ../../WPrefs.app/Expert.c:99
diff --git a/WPrefs.app/po/ko.po b/WPrefs.app/po/ko.po
index a985e87..7bb9f19 100644
--- a/WPrefs.app/po/ko.po
+++ b/WPrefs.app/po/ko.po
@@ -1784,16 +1784,16 @@ msgid "AppIcon bouncing"
 msgstr "앱 아이콘 튕김"
 
 #: ../../WPrefs.app/Preferences.c:276
-msgid "Disable AppIcon bounce."
+msgid "Disable AppIcon bounce"
 msgstr "앱 아이콘 튕김 효과 끄기"
 
 #: ../../WPrefs.app/Preferences.c:281
-msgid "Bounce AppIcon when the application wants attention."
-msgstr "응용프로그램에서 메시지가 있으면 앱 아이콘을 튕깁니다."
+msgid "Bounce when the application wants attention"
+msgstr "응용프로그램에서 메시지가 있으면 앱 아이콘을 튕깁니다"
 
 #: ../../WPrefs.app/Preferences.c:287
-msgid "Raise AppIcons when bouncing."
-msgstr "튕기는 앱 아아콘을 엽니다."
+msgid "Raise AppIcon when bouncing"
+msgstr "튕기는 앱 아아콘을 엽니다"
 
 #: ../../WPrefs.app/Preferences.c:295
 msgid "Workspace border"
diff --git a/WPrefs.app/po/nl.po b/WPrefs.app/po/nl.po
index 9742b7f..426cb68 100644
--- a/WPrefs.app/po/nl.po
+++ b/WPrefs.app/po/nl.po
@@ -1931,16 +1931,16 @@ msgid "AppIcon bouncing"
 msgstr "Stuiteren van programma-iconen"
 
 #: ../../WPrefs.app/Preferences.c:282
-msgid "Disable AppIcon bounce."
-msgstr "Schakel stuiteren iconen uit."
+msgid "Disable AppIcon bounce"
+msgstr "Schakel stuiteren iconen uit"
 
 #: ../../WPrefs.app/Preferences.c:287
-msgid "Bounce AppIcon when the application wants attention."
-msgstr "Stuiter icoon als 't programma aandacht wil."
+msgid "Bounce when the application wants attention"
+msgstr "Stuiter icoon als 't programma aandacht wil"
 
 #: ../../WPrefs.app/Preferences.c:293
-msgid "Raise AppIcons when bouncing."
-msgstr "Verhoog iconen bij stuiteren."
+msgid "Raise AppIcon when bouncing"
+msgstr "Verhoog iconen bij stuiteren"
 
 #: ../../WPrefs.app/Preferences.c:301
 msgid "Workspace border"
-- 
2.1.1


-- 
To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.

Reply via email to