From 2111df36e03c9d1dbb5529594ebce42cf9e39f85 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Fri, 24 Jun 2016 22:04:58 +0200 Subject: themes: make text translatable taken from: https://git.gnome.org/browse/notification-daemon/commit/?id=b156f34 --- src/themes/standard/theme.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/themes/standard/theme.c') 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 #include 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); -- cgit v1.2.1