|
24 | 24 | #include "../sysconfig.h"
|
25 | 25 | #include "filedialog.h"
|
26 | 26 | #include "sysettings.h"
|
| 27 | +#include "wireless.h" |
27 | 28 |
|
28 | 29 | static int appid;
|
29 | 30 | static struct filedialog *browse_wallpaper_dlg;
|
@@ -68,6 +69,11 @@ static void dhcp_callback(mtk_event *e, void *arg)
|
68 | 69 | update_network();
|
69 | 70 | }
|
70 | 71 |
|
| 72 | +static void wireless_callback(mtk_event *e, void *arg) |
| 73 | +{ |
| 74 | + open_wireless_window(); |
| 75 | +} |
| 76 | + |
71 | 77 | static int current_asmode;
|
72 | 78 |
|
73 | 79 | static void asmode_callback(mtk_event *e, void *arg)
|
@@ -206,8 +212,10 @@ void init_sysettings(void)
|
206 | 212 | "g_network1 = new Grid()",
|
207 | 213 | "l_dhcp = new Label(-text \"DHCP client:\")",
|
208 | 214 | "b_dhcp = new Button(-text \"Enable\")",
|
| 215 | + "b_wireless = new Button(-text \"Wireless over Ethernet\")", |
209 | 216 | "g_network1.place(l_dhcp, -column 1 -row 1)",
|
210 | 217 | "g_network1.place(b_dhcp, -column 2 -row 1)",
|
| 218 | + "g_network1.place(b_wireless, -column 3 -row 1)", |
211 | 219 | "g_network2 = new Grid()",
|
212 | 220 | "l_ip = new Label(-text \"IP address:\")",
|
213 | 221 | "e_ip = new Entry()",
|
@@ -314,6 +322,7 @@ void init_sysettings(void)
|
314 | 322 | mtk_bind(appid, "b_kbd_german", "press", layout_callback, (void *)SC_KEYBOARD_LAYOUT_GERMAN);
|
315 | 323 |
|
316 | 324 | mtk_bind(appid, "b_dhcp", "press", dhcp_callback, NULL);
|
| 325 | + mtk_bind(appid, "b_wireless", "press", wireless_callback, NULL); |
317 | 326 |
|
318 | 327 | mtk_bind(appid, "b_asmode_none", "press", asmode_callback, (void *)SC_AUTOSTART_NONE);
|
319 | 328 | mtk_bind(appid, "b_asmode_simple", "press", asmode_callback, (void *)SC_AUTOSTART_SIMPLE);
|
|
0 commit comments