gtranslator r3878 - in trunk: . src
- From: psanxiao svn gnome org
- To: svn-commits-list gnome org
- Subject: gtranslator r3878 - in trunk: . src
- Date: Fri, 7 Nov 2008 16:40:41 +0000 (UTC)
Author: psanxiao
Date: Fri Nov 7 16:40:41 2008
New Revision: 3878
URL: http://svn.gnome.org/viewvc/gtranslator?rev=3878&view=rev
Log:
* src/tab.c:
Fixed mnemonic in msgstr_label. (Fixex bug #558819)
Squashed commit of the following:
commit 1c836128383e369b31ddda457ee6846f61f8ab9b
Author: Pablo Sanxiao <psanxiao gmail com>
Date: Fri Nov 7 17:35:39 2008 +0100
Fixed mnemonic in msgstr_label
Modified:
trunk/ChangeLog
trunk/src/tab.c
Modified: trunk/src/tab.c
==============================================================================
--- trunk/src/tab.c (original)
+++ trunk/src/tab.c Fri Nov 7 16:40:41 2008
@@ -90,6 +90,7 @@
GtkWidget *text_msgid_plural;
/*Translated text*/
+ GtkWidget *msgstr_label;
GtkWidget *msgstr_hbox;
GtkWidget *trans_notebook;
GtkWidget *trans_msgstr[MAX_PLURALS];
@@ -453,6 +454,8 @@
gtk_source_buffer_begin_not_undoable_action(GTK_SOURCE_BUFFER(buf));
gtk_text_buffer_set_text(buf, (gchar*)msgstr, -1);
gtk_source_buffer_end_not_undoable_action(GTK_SOURCE_BUFFER(buf));
+ gtk_label_set_mnemonic_widget (GTK_LABEL (priv->msgstr_label),
+ priv->trans_msgstr[0]);
}
}
else {
@@ -589,7 +592,6 @@
GtkWidget *vertical_box;
GtkWidget *label_widget;
GtkWidget *msgid_label;
- GtkWidget *msgstr_label;
GtkWidget *current_page;
GtkWidget *notebook, *tm_layout, *tm, *comments_label, *tm_label, *scroll;
GtkWidget *hbox;
@@ -742,14 +744,14 @@
priv->msgstr_hbox = gtk_hbox_new (FALSE, 0);
gtk_widget_show (priv->msgstr_hbox);
- msgstr_label = gtk_label_new (NULL);
- gtk_label_set_markup_with_mnemonic (GTK_LABEL (msgstr_label),
- _("<b>Tran_slated Text:</b>"));
- gtk_misc_set_padding (GTK_MISC (msgstr_label), 0, 5);
- gtk_misc_set_alignment (GTK_MISC (msgstr_label), 0, 0.5);
- gtk_widget_show (msgstr_label);
+ priv->msgstr_label = gtk_label_new (NULL);
+ gtk_label_set_markup_with_mnemonic (GTK_LABEL (priv->msgstr_label),
+ _("<b>Translate_d Text:</b>"));
+ gtk_misc_set_padding (GTK_MISC (priv->msgstr_label), 0, 5);
+ gtk_misc_set_alignment (GTK_MISC (priv->msgstr_label), 0, 0.5);
+ gtk_widget_show (priv->msgstr_label);
- gtk_box_pack_start(GTK_BOX(priv->msgstr_hbox), msgstr_label, TRUE, TRUE, 0);
+ gtk_box_pack_start(GTK_BOX(priv->msgstr_hbox), priv->msgstr_label, TRUE, TRUE, 0);
priv->comment_button = gtranslator_tab_create_comment_button ();
gtk_box_pack_start (GTK_BOX (priv->msgstr_hbox), priv->comment_button,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]