Skip to content
Snippets Groups Projects
Commit e886ed51 authored by Rafaël Carré's avatar Rafaël Carré
Browse files

Use the translated string everywhere for the preview button

parent dd85a561
Branches
Tags
No related merge requests found
...@@ -108,7 +108,7 @@ preview_is_running_cb(GObject *obj, GParamSpec *pspec, gpointer user_data) ...@@ -108,7 +108,7 @@ preview_is_running_cb(GObject *obj, GParamSpec *pspec, gpointer user_data)
g_object_get(obj, "running", &running, NULL); g_object_get(obj, "running", &running, NULL);
if (!running) { if (!running) {
GtkButton *button = GTK_BUTTON(user_data); GtkButton *button = GTK_BUTTON(user_data);
gtk_button_set_label(button, "_Start"); gtk_button_set_label(button, _("_Start"));
dbus_stop_video_preview(); dbus_stop_video_preview();
} }
return TRUE; return TRUE;
...@@ -153,8 +153,8 @@ static void ...@@ -153,8 +153,8 @@ static void
preview_button_clicked(GtkButton *button, gpointer data UNUSED) preview_button_clicked(GtkButton *button, gpointer data UNUSED)
{ {
preview_button = GTK_WIDGET(button); preview_button = GTK_WIDGET(button);
if (g_strcmp0(gtk_button_get_label(button), "_Start") == 0) { if (g_strcmp0(gtk_button_get_label(button), _("_Start")) == 0) {
gtk_button_set_label(button, "_Stop"); gtk_button_set_label(button, _("_Stop"));
static const char *formats[2] = { "rgb24", "bgra" }; static const char *formats[2] = { "rgb24", "bgra" };
...@@ -163,7 +163,7 @@ preview_button_clicked(GtkButton *button, gpointer data UNUSED) ...@@ -163,7 +163,7 @@ preview_button_clicked(GtkButton *button, gpointer data UNUSED)
} }
else { else {
/* user clicked stop */ /* user clicked stop */
gtk_button_set_label(button, "_Start"); gtk_button_set_label(button, _("_Start"));
dbus_stop_video_preview(); dbus_stop_video_preview();
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment