summaryrefslogtreecommitdiff
path: root/src/themes
diff options
context:
space:
mode:
Diffstat (limited to 'src/themes')
-rw-r--r--src/themes/coco/coco-theme.c5
-rw-r--r--src/themes/nodoka/nodoka-theme.c9
-rw-r--r--src/themes/slider/theme.c10
-rw-r--r--src/themes/standard/theme.c10
4 files changed, 20 insertions, 14 deletions
diff --git a/src/themes/coco/coco-theme.c b/src/themes/coco/coco-theme.c
index ca84585..a3c54bd 100644
--- a/src/themes/coco/coco-theme.c
+++ b/src/themes/coco/coco-theme.c
@@ -24,6 +24,7 @@
#include "config.h"
+#include <glib/gi18n.h>
#include <gtk/gtk.h>
/* Define basic coco types */
@@ -461,7 +462,7 @@ create_notification(UrlClickedCb url_clicked)
gtk_label_set_line_wrap_mode (GTK_LABEL (windata->summary_label), PANGO_WRAP_WORD_CHAR);
atkobj = gtk_widget_get_accessible(windata->summary_label);
- atk_object_set_description(atkobj, "Notification summary text.");
+ atk_object_set_description (atkobj, _("Notification summary text."));
windata->body_label = gtk_label_new(NULL);
gtk_box_pack_start(GTK_BOX(vbox), windata->body_label, FALSE, FALSE, 0);
@@ -479,7 +480,7 @@ create_notification(UrlClickedCb url_clicked)
G_CALLBACK(activate_link), windata);
atkobj = gtk_widget_get_accessible(windata->body_label);
- atk_object_set_description(atkobj, "Notification body text.");
+ atk_object_set_description (atkobj, _("Notification body text."));
windata->actions_box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6);
gtk_widget_set_halign(windata->actions_box, GTK_ALIGN_END);
diff --git a/src/themes/nodoka/nodoka-theme.c b/src/themes/nodoka/nodoka-theme.c
index 40095ea..318291c 100644
--- a/src/themes/nodoka/nodoka-theme.c
+++ b/src/themes/nodoka/nodoka-theme.c
@@ -25,6 +25,7 @@
#include "config.h"
+#include <glib/gi18n.h>
#include <gtk/gtk.h>
/* Define basic nodoka types */
@@ -807,7 +808,7 @@ create_notification(UrlClickedCb url_clicked)
gtk_label_set_line_wrap_mode (GTK_LABEL (windata->summary_label), PANGO_WRAP_WORD_CHAR);
atkobj = gtk_widget_get_accessible(windata->summary_label);
- atk_object_set_description(atkobj, "Notification summary text.");
+ atk_object_set_description (atkobj, _("Notification summary text."));
/* Add the close button */
close_button = gtk_button_new();
@@ -821,9 +822,9 @@ create_notification(UrlClickedCb url_clicked)
atkobj = gtk_widget_get_accessible(close_button);
atk_action_set_description(ATK_ACTION(atkobj), 0,
- "Closes the notification.");
+ _("Closes the notification."));
atk_object_set_name(atkobj, "");
- atk_object_set_description(atkobj, "Closes the notification.");
+ atk_object_set_description (atkobj, _("Closes the notification."));
image = gtk_image_new_from_icon_name ("window-close", GTK_ICON_SIZE_MENU);
gtk_widget_show(image);
@@ -864,7 +865,7 @@ create_notification(UrlClickedCb url_clicked)
G_CALLBACK(activate_link), windata);
atkobj = gtk_widget_get_accessible(windata->body_label);
- atk_object_set_description(atkobj, "Notification body text.");
+ atk_object_set_description (atkobj, _("Notification body text."));
windata->actions_box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6);
gtk_widget_set_halign (windata->actions_box, GTK_ALIGN_END);
diff --git a/src/themes/slider/theme.c b/src/themes/slider/theme.c
index ef98eec..e33b91e 100644
--- a/src/themes/slider/theme.c
+++ b/src/themes/slider/theme.c
@@ -22,6 +22,7 @@
#include "config.h"
+#include <glib/gi18n.h>
#include <gtk/gtk.h>
typedef void (*ActionInvokedCb) (GtkWindow* nw, const char* key);
@@ -410,9 +411,10 @@ GtkWindow* create_notification(UrlClickedCb url_clicked)
g_signal_connect_swapped(G_OBJECT(close_button), "clicked", G_CALLBACK(gtk_widget_destroy), win);
atkobj = gtk_widget_get_accessible(close_button);
- atk_action_set_description(ATK_ACTION(atkobj), 0, "Closes the notification.");
+ atk_action_set_description(ATK_ACTION(atkobj), 0,
+ _("Closes the notification."));
atk_object_set_name(atkobj, "");
- atk_object_set_description(atkobj, "Closes the notification.");
+ atk_object_set_description (atkobj, _("Closes the notification."));
image = gtk_image_new_from_icon_name ("window-close", GTK_ICON_SIZE_MENU);
gtk_widget_show(image);
@@ -432,7 +434,7 @@ GtkWindow* create_notification(UrlClickedCb url_clicked)
gtk_label_set_line_wrap_mode (GTK_LABEL (windata->summary_label), PANGO_WRAP_WORD_CHAR);
atkobj = gtk_widget_get_accessible(windata->summary_label);
- atk_object_set_description(atkobj, "Notification summary text.");
+ atk_object_set_description (atkobj, _("Notification summary text."));
windata->content_hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6);
gtk_widget_show(windata->content_hbox);
@@ -458,7 +460,7 @@ GtkWindow* create_notification(UrlClickedCb url_clicked)
g_signal_connect_swapped(G_OBJECT(windata->body_label), "activate-link", G_CALLBACK(windata->url_clicked), win);
atkobj = gtk_widget_get_accessible(windata->body_label);
- atk_object_set_description(atkobj, "Notification body text.");
+ atk_object_set_description (atkobj, _("Notification body text."));
windata->actions_box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6);
gtk_widget_set_halign (windata->actions_box, GTK_ALIGN_END);
diff --git a/src/themes/standard/theme.c b/src/themes/standard/theme.c
index f32417a..b138495 100644
--- a/src/themes/standard/theme.c
+++ b/src/themes/standard/theme.c
@@ -21,6 +21,7 @@
*/
#include "config.h"
+#include <glib/gi18n.h>
#include <gtk/gtk.h>
typedef void (*ActionInvokedCb) (GtkWindow* nw, const char* key);
@@ -695,7 +696,7 @@ GtkWindow* create_notification(UrlClickedCb url_clicked)
gtk_label_set_line_wrap_mode (GTK_LABEL (windata->summary_label), PANGO_WRAP_WORD_CHAR);
atkobj = gtk_widget_get_accessible(windata->summary_label);
- atk_object_set_description(atkobj, "Notification summary text.");
+ atk_object_set_description (atkobj, _("Notification summary text."));
/* Add the close button */
close_button = gtk_button_new();
@@ -710,9 +711,10 @@ GtkWindow* create_notification(UrlClickedCb url_clicked)
g_signal_connect_swapped(G_OBJECT(close_button), "clicked", G_CALLBACK(gtk_widget_destroy), win);
atkobj = gtk_widget_get_accessible(close_button);
- atk_action_set_description(ATK_ACTION(atkobj), 0, "Closes the notification.");
+ atk_action_set_description(ATK_ACTION(atkobj), 0,
+ _("Closes the notification."));
atk_object_set_name(atkobj, "");
- atk_object_set_description(atkobj, "Closes the notification.");
+ atk_object_set_description (atkobj, _("Closes the notification."));
image = gtk_image_new_from_icon_name ("window-close", GTK_ICON_SIZE_MENU);
gtk_widget_show(image);
@@ -749,7 +751,7 @@ GtkWindow* create_notification(UrlClickedCb url_clicked)
g_signal_connect(G_OBJECT(windata->body_label), "activate-link", G_CALLBACK(activate_link), windata);
atkobj = gtk_widget_get_accessible(windata->body_label);
- atk_object_set_description(atkobj, "Notification body text.");
+ atk_object_set_description (atkobj, _("Notification body text."));
windata->actions_box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6);
gtk_widget_set_halign (windata->actions_box, GTK_ALIGN_END);