Lines 33-39
Link Here
|
33 |
|
33 |
|
34 |
WMWidget *parent; |
34 |
WMWidget *parent; |
35 |
|
35 |
|
36 |
WMButton *swi[8]; |
36 |
WMButton *swi[10]; |
37 |
|
37 |
|
38 |
} _Panel; |
38 |
} _Panel; |
39 |
|
39 |
|
Lines 54-59
Link Here
|
54 |
WMSetButtonSelected(panel->swi[4], GetBoolForKey("WindozeCycling")); |
54 |
WMSetButtonSelected(panel->swi[4], GetBoolForKey("WindozeCycling")); |
55 |
WMSetButtonSelected(panel->swi[5], GetBoolForKey("DontConfirmKill")); |
55 |
WMSetButtonSelected(panel->swi[5], GetBoolForKey("DontConfirmKill")); |
56 |
WMSetButtonSelected(panel->swi[6], GetBoolForKey("DisableBlinking")); |
56 |
WMSetButtonSelected(panel->swi[6], GetBoolForKey("DisableBlinking")); |
|
|
57 |
WMSetButtonSelected(panel->swi[7], GetBoolForKey("DCMaximize")); |
58 |
WMSetButtonSelected(panel->swi[8], GetBoolForKey("SingleClickLaunch")); |
57 |
} |
59 |
} |
58 |
|
60 |
|
59 |
|
61 |
|
Lines 66-75
Link Here
|
66 |
panel->box = WMCreateBox(panel->parent); |
68 |
panel->box = WMCreateBox(panel->parent); |
67 |
WMSetViewExpandsToParent(WMWidgetView(panel->box), 2, 2, 2, 2); |
69 |
WMSetViewExpandsToParent(WMWidgetView(panel->box), 2, 2, 2, 2); |
68 |
|
70 |
|
69 |
for (i=0; i<7; i++) { |
71 |
for (i=0; i<9; i++) { |
70 |
panel->swi[i] = WMCreateSwitchButton(panel->box); |
72 |
panel->swi[i] = WMCreateSwitchButton(panel->box); |
71 |
WMResizeWidget(panel->swi[i], FRAME_WIDTH-40, 25); |
73 |
WMResizeWidget(panel->swi[i], FRAME_WIDTH-40, 25); |
72 |
WMMoveWidget(panel->swi[i], 20, 20+i*25); |
74 |
WMMoveWidget(panel->swi[i], 20, 20+i*23); |
73 |
} |
75 |
} |
74 |
|
76 |
|
75 |
WMSetButtonText(panel->swi[0], _("Disable miniwindows (icons for miniaturized windows). For use with KDE/GNOME.")); |
77 |
WMSetButtonText(panel->swi[0], _("Disable miniwindows (icons for miniaturized windows). For use with KDE/GNOME.")); |
Lines 79-84
Link Here
|
79 |
WMSetButtonText(panel->swi[4], _("Use Windoze style cycling.")); |
81 |
WMSetButtonText(panel->swi[4], _("Use Windoze style cycling.")); |
80 |
WMSetButtonText(panel->swi[5], _("Disable confirmation panel for the Kill command.")); |
82 |
WMSetButtonText(panel->swi[5], _("Disable confirmation panel for the Kill command.")); |
81 |
WMSetButtonText(panel->swi[6], _("Disable selection animation for selected icons.")); |
83 |
WMSetButtonText(panel->swi[6], _("Disable selection animation for selected icons.")); |
|
|
84 |
WMSetButtonText(panel->swi[7], _("Double click on title bar maximize")); |
85 |
WMSetButtonText(panel->swi[8], _("Launch applications and restore windows with a single click")); |
82 |
|
86 |
|
83 |
WMRealizeWidget(panel->box); |
87 |
WMRealizeWidget(panel->box); |
84 |
WMMapSubwidgets(panel->box); |
88 |
WMMapSubwidgets(panel->box); |
Lines 101-106
Link Here
|
101 |
SetBoolForKey(WMGetButtonSelected(panel->swi[4]), "WindozeCycling"); |
105 |
SetBoolForKey(WMGetButtonSelected(panel->swi[4]), "WindozeCycling"); |
102 |
SetBoolForKey(WMGetButtonSelected(panel->swi[5]), "DontConfirmKill"); |
106 |
SetBoolForKey(WMGetButtonSelected(panel->swi[5]), "DontConfirmKill"); |
103 |
SetBoolForKey(WMGetButtonSelected(panel->swi[6]), "DisableBlinking"); |
107 |
SetBoolForKey(WMGetButtonSelected(panel->swi[6]), "DisableBlinking"); |
|
|
108 |
SetBoolForKey(WMGetButtonSelected(panel->swi[7]), "DCMaximize"); |
109 |
SetBoolForKey(WMGetButtonSelected(panel->swi[8]), "SingleClickLaunch"); |
104 |
} |
110 |
} |
105 |
|
111 |
|
106 |
|
112 |
|