Also translate the switch button
This commit is contained in:
parent
54da95b45c
commit
ee8b80f8b0
|
@ -1,2 +1,3 @@
|
||||||
|
../src/flashlight.c
|
||||||
../src/main.c
|
../src/main.c
|
||||||
../src/window.c
|
../src/window.c
|
||||||
|
|
|
@ -28,10 +28,12 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#include <libintl.h>
|
||||||
#include <System.h>
|
#include <System.h>
|
||||||
#include <Desktop.h>
|
#include <Desktop.h>
|
||||||
#include "backend.h"
|
#include "backend.h"
|
||||||
#include "flashlight.h"
|
#include "flashlight.h"
|
||||||
|
#define _(string) gettext(string)
|
||||||
|
|
||||||
|
|
||||||
/* Flashlight */
|
/* Flashlight */
|
||||||
|
@ -84,7 +86,8 @@ Flashlight * flashlight_new(GtkOrientation orientation)
|
||||||
G_CALLBACK(_flashlight_on_toggled), flashlight);
|
G_CALLBACK(_flashlight_on_toggled), flashlight);
|
||||||
#else
|
#else
|
||||||
# warning Switch widget is not available (needs Gtk+ >= 3.0)
|
# warning Switch widget is not available (needs Gtk+ >= 3.0)
|
||||||
flashlight->co_main = gtk_toggle_button_new_with_mnemonic("_Switch");
|
flashlight->co_main = gtk_toggle_button_new_with_mnemonic(
|
||||||
|
_("_Switch"));
|
||||||
g_signal_connect_swapped(flashlight->co_main, "toggled", G_CALLBACK(
|
g_signal_connect_swapped(flashlight->co_main, "toggled", G_CALLBACK(
|
||||||
_flashlight_on_toggled), flashlight);
|
_flashlight_on_toggled), flashlight);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue
Block a user