[nautilus-actions] Set a mnemonic for all entry fields
- From: Pierre Wieser <pwieser src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [nautilus-actions] Set a mnemonic for all entry fields
- Date: Tue, 11 Aug 2009 22:07:23 +0000 (UTC)
commit 8724a75013be6f4a74fe632e409e095faa1c9af2
Author: Pierre Wieser <pwieser trychlos org>
Date: Wed Aug 12 00:07:20 2009 +0200
Set a mnemonic for all entry fields
ChangeLog | 5 ++
src/nact/nact-iaction-tab.c | 4 +-
src/nact/nact-icommand-tab.c | 4 +-
src/nact/nautilus-actions-config-tool.ui | 61 ++++++++++++++++++++---------
4 files changed, 51 insertions(+), 23 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 74db88f..ae67beb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,11 @@
* src/nact/nautilus-actions-config-tool.ui:
Cleanup code.
+ * src/nact/nact-iaction-tab.c:
+ * src/nact/nact-icommand-tab.c:
+ * src/nact/nautilus-actions-config-tool.ui:
+ Set a mnemonic for all entry fields.
+
2009-08-10 Pierre Wieser <pwieser trychlos org>
* data/nautilus-actions.schemas.in:
diff --git a/src/nact/nact-iaction-tab.c b/src/nact/nact-iaction-tab.c
index 653b234..032043f 100644
--- a/src/nact/nact-iaction-tab.c
+++ b/src/nact/nact-iaction-tab.c
@@ -361,8 +361,8 @@ set_label_label( NactWindow *window, const gchar *color )
{
GtkWidget *label = base_window_get_widget( BASE_WINDOW( window ), "ActionLabelLabel" );
/* i18n: label in front of the GtkEntry where user enters the action label */
- gchar *text = g_markup_printf_escaped( "<span color=\"%s\">%s</span>", color, _( "Label :" ));
- gtk_label_set_markup( GTK_LABEL( label ), text );
+ gchar *text = g_markup_printf_escaped( "<span color=\"%s\">%s</span>", color, _( "_Label :" ));
+ gtk_label_set_markup_with_mnemonic( GTK_LABEL( label ), text );
}
static void
diff --git a/src/nact/nact-icommand-tab.c b/src/nact/nact-icommand-tab.c
index 2e25666..70028b0 100644
--- a/src/nact/nact-icommand-tab.c
+++ b/src/nact/nact-icommand-tab.c
@@ -368,8 +368,8 @@ set_label_label( NactWindow *window, const gchar *color )
{
GtkWidget *label = base_window_get_widget( BASE_WINDOW( window ), "ProfileLabelLabel" );
/* i18n: label in front of the GtkEntry where user enters the profile label */
- gchar *text = g_markup_printf_escaped( "<span color=\"%s\">%s</span>", color, _( "Label :" ));
- gtk_label_set_markup( GTK_LABEL( label ), text );
+ gchar *text = g_markup_printf_escaped( "<span color=\"%s\">%s</span>", color, _( "_Label :" ));
+ gtk_label_set_markup_with_mnemonic( GTK_LABEL( label ), text );
}
static GtkWidget *
diff --git a/src/nact/nautilus-actions-config-tool.ui b/src/nact/nautilus-actions-config-tool.ui
index f7ecc62..025bb77 100644
--- a/src/nact/nautilus-actions-config-tool.ui
+++ b/src/nact/nautilus-actions-config-tool.ui
@@ -114,6 +114,8 @@
<object class="GtkLabel" id="ActionLabelLabel">
<property name="visible">True</property>
<property name="xalign">1</property>
+ <property name="use_underline">True</property>
+ <property name="mnemonic_widget">ActionLabelEntry</property>
</object>
<packing>
<property name="x_options">GTK_FILL</property>
@@ -124,7 +126,9 @@
<object class="GtkLabel" id="ActionTooltipLabel">
<property name="visible">True</property>
<property name="xalign">1</property>
- <property name="label" translatable="yes">Tooltip :</property>
+ <property name="label" translatable="yes">_Tooltip :</property>
+ <property name="use_underline">True</property>
+ <property name="mnemonic_widget">ActionTooltipEntry</property>
</object>
<packing>
<property name="top_attach">1</property>
@@ -137,7 +141,9 @@
<object class="GtkLabel" id="ActionIconLabel">
<property name="visible">True</property>
<property name="xalign">1</property>
- <property name="label" translatable="yes">Icon :</property>
+ <property name="label" translatable="yes">_Icon :</property>
+ <property name="use_underline">True</property>
+ <property name="mnemonic_widget">ActionIconComboBoxEntry</property>
</object>
<packing>
<property name="top_attach">2</property>
@@ -271,11 +277,12 @@
<property name="n_columns">2</property>
<child>
<object class="GtkCheckButton" id="ActionEnabledButton">
- <property name="label" translatable="yes">Enabled</property>
+ <property name="label" translatable="yes">_Enabled</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="tooltip_text" translatable="yes">When the action is disabled, it will never appear in the Nautilus context menu.</property>
+ <property name="use_underline">True</property>
<property name="draw_indicator">True</property>
</object>
<packing>
@@ -285,12 +292,13 @@
</child>
<child>
<object class="GtkCheckButton" id="ActionReadonlyButton">
- <property name="label" translatable="yes">Read-only</property>
+ <property name="label" translatable="yes">_Read-only</property>
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="tooltip_text" translatable="yes">If only readable, the action cannot be edited.</property>
+ <property name="use_underline">True</property>
<property name="draw_indicator">True</property>
</object>
<packing>
@@ -375,6 +383,8 @@
<object class="GtkLabel" id="ProfileLabelLabel">
<property name="visible">True</property>
<property name="xalign">1</property>
+ <property name="use_underline">True</property>
+ <property name="mnemonic_widget">ProfileLabelEntry</property>
</object>
<packing>
<property name="expand">False</property>
@@ -428,7 +438,9 @@
<object class="GtkLabel" id="CommandPathLabel">
<property name="visible">True</property>
<property name="xalign">1</property>
- <property name="label" translatable="yes">Path :</property>
+ <property name="label" translatable="yes">_Path :</property>
+ <property name="use_underline">True</property>
+ <property name="mnemonic_widget">CommandPathEntry</property>
</object>
<packing>
<property name="x_options">GTK_FILL</property>
@@ -437,7 +449,9 @@
<child>
<object class="GtkLabel" id="CommandParametersLabel">
<property name="visible">True</property>
- <property name="label" translatable="yes">Parameters :</property>
+ <property name="label" translatable="yes">P_arameters :</property>
+ <property name="use_underline">True</property>
+ <property name="mnemonic_widget">CommandParametersEntry</property>
</object>
<packing>
<property name="top_attach">1</property>
@@ -602,20 +616,24 @@ Defining several profiles lets you have several commands, each applying with a d
<property name="column_spacing">6</property>
<property name="row_spacing">6</property>
<child>
- <object class="GtkLabel" id="label17">
+ <object class="GtkLabel" id="ConditionsFilenamesLabel">
<property name="visible">True</property>
<property name="xalign">1</property>
- <property name="label" translatable="yes">Filenames :</property>
+ <property name="label" translatable="yes">_Filenames :</property>
+ <property name="use_underline">True</property>
+ <property name="mnemonic_widget">ConditionsFilenamesEntry</property>
</object>
<packing>
<property name="x_options">GTK_FILL</property>
</packing>
</child>
<child>
- <object class="GtkLabel" id="label18">
+ <object class="GtkLabel" id="ConditionsMimetypesLabel">
<property name="visible">True</property>
<property name="xalign">1</property>
- <property name="label" translatable="yes">Mimetypes :</property>
+ <property name="label" translatable="yes">_Mimetypes :</property>
+ <property name="use_underline">True</property>
+ <property name="mnemonic_widget">ConditionsMimetypesEntry</property>
</object>
<packing>
<property name="top_attach">2</property>
@@ -651,11 +669,12 @@ Defining several profiles lets you have several commands, each applying with a d
</child>
<child>
<object class="GtkCheckButton" id="ConditionsMatchcaseButton">
- <property name="label" translatable="yes">Match case</property>
+ <property name="label" translatable="yes">Match _case</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="tooltip_text" translatable="yes">If selected, the filename patterns will be matched case sensitive (eg, *.jpg will not match photo.JPG).</property>
+ <property name="use_underline">True</property>
<property name="xalign">0</property>
<property name="active">True</property>
<property name="draw_indicator">True</property>
@@ -700,11 +719,12 @@ Defining several profiles lets you have several commands, each applying with a d
<property name="visible">True</property>
<child>
<object class="GtkRadioButton" id="ConditionsOnlyFilesButton">
- <property name="label" translatable="yes">Only files</property>
+ <property name="label" translatable="yes">Only _files</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="tooltip_text" translatable="yes">If selected, item will appear in the Nautilus context menu if and only if the selection contains only files.</property>
+ <property name="use_underline">True</property>
<property name="xalign">0</property>
<property name="active">True</property>
<property name="draw_indicator">True</property>
@@ -715,11 +735,12 @@ Defining several profiles lets you have several commands, each applying with a d
</child>
<child>
<object class="GtkRadioButton" id="ConditionsOnlyFoldersButton">
- <property name="label" translatable="yes">Only folders</property>
+ <property name="label" translatable="yes">Only f_olders</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="tooltip_text" translatable="yes">If selected, item will appear in the Nautilus context menu if and only if the selection contains only folders.</property>
+ <property name="use_underline">True</property>
<property name="xalign">0</property>
<property name="draw_indicator">True</property>
<property name="group">ConditionsOnlyFilesButton</property>
@@ -730,11 +751,12 @@ Defining several profiles lets you have several commands, each applying with a d
</child>
<child>
<object class="GtkRadioButton" id="ConditionsBothButton">
- <property name="label" translatable="yes">Both</property>
+ <property name="label" translatable="yes">_Both</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="tooltip_text" translatable="yes">If selected, item will always appear in the Nautilus context menu.</property>
+ <property name="use_underline">True</property>
<property name="xalign">0</property>
<property name="draw_indicator">True</property>
<property name="group">ConditionsOnlyFilesButton</property>
@@ -758,11 +780,12 @@ Defining several profiles lets you have several commands, each applying with a d
<property name="visible">True</property>
<child>
<object class="GtkCheckButton" id="ConditionsMultipleButton">
- <property name="label" translatable="yes">Appears if selection has multiple files or folders</property>
+ <property name="label" translatable="yes">Appears if selection has m_ultiple files or folders</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="tooltip_text" translatable="yes">If selected, item will always appear in the Nautilus context menu. Else it will appear if and only if the selection contains only one file or folder.</property>
+ <property name="use_underline">True</property>
<property name="draw_indicator">True</property>
</object>
<packing>
@@ -1698,16 +1721,16 @@ The exported file may later be imported via :
</object>
<object class="GtkSizeGroup" id="CommandLabelSizeGroup">
<widgets>
- <widget name="ProfileLabelLabel"/>
- <widget name="CommandPathLabel"/>
- <widget name="CommandParametersLabel"/>
<widget name="CommandExamplePreLabel"/>
+ <widget name="CommandParametersLabel"/>
+ <widget name="CommandPathLabel"/>
+ <widget name="ProfileLabelLabel"/>
</widgets>
</object>
<object class="GtkSizeGroup" id="CommandButtonSizeGroup">
<widgets>
- <widget name="CommandPathButton"/>
<widget name="CommandLegendButton"/>
+ <widget name="CommandPathButton"/>
</widgets>
</object>
</interface>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]