[gupnp-tools] network-light: mark messages as translatable
- From: Jiro Matsuzawa <jmatsuzawa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gupnp-tools] network-light: mark messages as translatable
- Date: Mon, 7 Jan 2013 15:08:08 +0000 (UTC)
commit 219788bf9a90b65fe149c168a8f5e411510706a0
Author: Jiro Matsuzawa <jmatsuzawa gnome org>
Date: Mon Jan 7 23:25:59 2013 +0900
network-light: mark messages as translatable
https://bugzilla.gnome.org/show_bug.cgi?id=690635
data/gupnp-network-light.ui | 20 +++++++++++++++-----
src/network-light/gui.c | 18 ------------------
2 files changed, 15 insertions(+), 23 deletions(-)
---
diff --git a/data/gupnp-network-light.ui b/data/gupnp-network-light.ui
index b1ca72d..b8067a9 100644
--- a/data/gupnp-network-light.ui
+++ b/data/gupnp-network-light.ui
@@ -49,8 +49,18 @@ Inspired by Intel Tools for UPnP.</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="use_action_appearance">False</property>
- <property name="label" translatable="yes">On</property>
- <property name="use_underline">True</property>
+ <child>
+ <object class="GtkLabel" id="light-status-menuitem-label">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes" context="network-light">_On</property>
+ <property name="use_underline">True</property>
+ <attributes>
+ <attribute name="weight" value="bold"/>
+ </attributes>
+ </object>
+ </child>
<signal name="activate" handler="on_light_status_menuitem_activate" swapped="no"/>
</object>
</child>
@@ -65,7 +75,7 @@ Inspired by Intel Tools for UPnP.</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="use_action_appearance">False</property>
- <property name="label" translatable="yes">increase luminance by 20%</property>
+ <property name="label" translatable="yes">_Increase luminance by 20%</property>
<property name="use_underline">True</property>
<signal name="activate" handler="on_increase_luminance_menuitem_activate" swapped="no"/>
</object>
@@ -75,7 +85,7 @@ Inspired by Intel Tools for UPnP.</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="use_action_appearance">False</property>
- <property name="label" translatable="yes">decrease luminance by 20%</property>
+ <property name="label" translatable="yes">_Decrease luminance by 20%</property>
<property name="use_underline">True</property>
<signal name="activate" handler="on_decrease_luminance_menuitem_activate" swapped="no"/>
</object>
@@ -91,7 +101,7 @@ Inspired by Intel Tools for UPnP.</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="use_action_appearance">False</property>
- <property name="label" translatable="yes">about</property>
+ <property name="label" translatable="yes">_About</property>
<property name="use_underline">True</property>
<signal name="activate" handler="on_about_menuitem_activate" swapped="no"/>
</object>
diff --git a/src/network-light/gui.c b/src/network-light/gui.c
index 898200d..edc87f9 100644
--- a/src/network-light/gui.c
+++ b/src/network-light/gui.c
@@ -108,23 +108,6 @@ on_decrease_luminance_menuitem_activate (GtkMenuItem *menuitem,
}
static void
-setup_popup ()
-{
- GtkWidget *status_menuitem;
- GtkWidget *label;
-
- status_menuitem = GTK_WIDGET (gtk_builder_get_object (
- builder,
- "light-status-menuitem"));
- g_assert (status_menuitem != NULL);
-
- label = gtk_bin_get_child (GTK_BIN (status_menuitem));
- g_assert (label != NULL);
-
- gtk_label_set_markup (GTK_LABEL (label), "<b>On</b>");
-}
-
-static void
prepare_popup ()
{
GtkWidget *status_menuitem;
@@ -246,7 +229,6 @@ init_ui (gint *argc,
gtk_builder_connect_signals (builder, NULL);
- setup_popup ();
update_image ();
gtk_widget_show_all (main_window);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]