[gthumb] Several mnemonic fixes
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] Several mnemonic fixes
- Date: Sat, 27 Feb 2010 12:03:19 +0000 (UTC)
commit 362c3234f270463f3cdafc0412ae016d46d64c7a
Author: Matthias Hawran <matthias hawran net>
Date: Fri Feb 26 17:30:11 2010 +0100
Several mnemonic fixes
- adjust color dialog (bug 575161, bug 575162, bug 575164)
- scale dialog (bug 575168)
.../file_tools/data/ui/adjust-colors-options.ui | 4 +-
extensions/file_tools/data/ui/resize-options.ui | 8 +++--
.../file_tools/gth-file-tool-adjust-colors.c | 31 +++++++++++++++----
3 files changed, 31 insertions(+), 12 deletions(-)
---
diff --git a/extensions/file_tools/data/ui/adjust-colors-options.ui b/extensions/file_tools/data/ui/adjust-colors-options.ui
index f42e310..eea7e05 100644
--- a/extensions/file_tools/data/ui/adjust-colors-options.ui
+++ b/extensions/file_tools/data/ui/adjust-colors-options.ui
@@ -38,7 +38,7 @@
<object class="GtkLabel" id="brightness_label">
<property name="visible">True</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">_Brightness:</property>
+ <property name="label" translatable="yes">B_rightness:</property>
<property name="use_underline">True</property>
</object>
<packing>
@@ -131,7 +131,7 @@
<object class="GtkLabel" id="gamma_label">
<property name="visible">True</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">_Gamma:</property>
+ <property name="label" translatable="yes">G_amma:</property>
<property name="use_underline">True</property>
</object>
<packing>
diff --git a/extensions/file_tools/data/ui/resize-options.ui b/extensions/file_tools/data/ui/resize-options.ui
index e58312e..9655614 100644
--- a/extensions/file_tools/data/ui/resize-options.ui
+++ b/extensions/file_tools/data/ui/resize-options.ui
@@ -37,11 +37,12 @@
<property name="column_spacing">6</property>
<property name="row_spacing">6</property>
<child>
- <object class="GtkLabel" id="label4">
+ <object class="GtkLabel" id="resize_width_label">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">_Width:</property>
<property name="use_underline">True</property>
+ <property name="mnemonic_widget">resize_width_spinbutton</property>
</object>
<packing>
<property name="x_options">GTK_FILL</property>
@@ -49,11 +50,12 @@
</packing>
</child>
<child>
- <object class="GtkLabel" id="label6">
+ <object class="GtkLabel" id="resize_height_label">
<property name="visible">True</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">_Height:</property>
+ <property name="label" translatable="yes">Heigh_t:</property>
<property name="use_underline">True</property>
+ <property name="mnemonic_widget">resize_height_spinbutton</property>
</object>
<packing>
<property name="top_attach">1</property>
diff --git a/extensions/file_tools/gth-file-tool-adjust-colors.c b/extensions/file_tools/gth-file-tool-adjust-colors.c
index 60f448f..2edd987 100644
--- a/extensions/file_tools/gth-file-tool-adjust-colors.c
+++ b/extensions/file_tools/gth-file-tool-adjust-colors.c
@@ -342,6 +342,7 @@ value_changed_cb (GtkAdjustment *adj,
static GtkAdjustment *
gimp_scale_entry_new (GtkWidget *parent_box,
+ GtkLabel *label,
float value,
float lower,
float upper,
@@ -373,6 +374,8 @@ gimp_scale_entry_new (GtkWidget *parent_box,
gtk_box_pack_start (GTK_BOX (parent_box), hbox, TRUE, TRUE, 0);
gtk_widget_show_all (hbox);
+ gtk_label_set_mnemonic_widget (label, scale);
+
return (GtkAdjustment *) adj;
}
@@ -412,13 +415,27 @@ gth_file_tool_adjust_colors_get_options (GthFileTool *base)
gtk_widget_show (self->priv->histogram_view);
gtk_box_pack_start (GTK_BOX (GET_WIDGET ("histogram_hbox")), self->priv->histogram_view, TRUE, TRUE, 0);
- self->priv->brightness_adj = gimp_scale_entry_new (GET_WIDGET ("brightness_hbox"), 0.0, -100.0, 100.0, 1.0, 10.0, 0);
- self->priv->contrast_adj = gimp_scale_entry_new (GET_WIDGET ("contrast_hbox"), 0.0, -100.0, 100.0, 1.0, 10.0, 0);
- self->priv->gamma_adj = gimp_scale_entry_new (GET_WIDGET ("gamma_hbox"), 0.0, -100.0, 100.0, 1.0, 10.0, 0);
- self->priv->saturation_adj = gimp_scale_entry_new (GET_WIDGET ("saturation_hbox"), 0.0, -100.0, 100.0, 1.0, 10.0, 0);
- self->priv->cyan_red_adj = gimp_scale_entry_new (GET_WIDGET ("cyan_red_hbox"), 0.0, -100.0, 100.0, 1.0, 10.0, 0);
- self->priv->magenta_green_adj = gimp_scale_entry_new (GET_WIDGET ("magenta_green_hbox"), 0.0, -100.0, 100.0, 1.0, 10.0, 0);
- self->priv->yellow_blue_adj = gimp_scale_entry_new (GET_WIDGET ("yellow_blue_hbox"), 0.0, -100.0, 100.0, 1.0, 10.0, 0);
+ self->priv->brightness_adj = gimp_scale_entry_new (GET_WIDGET ("brightness_hbox"),
+ GTK_LABEL (GET_WIDGET ("brightness_label")),
+ 0.0, -100.0, 100.0, 1.0, 10.0, 0);
+ self->priv->contrast_adj = gimp_scale_entry_new (GET_WIDGET ("contrast_hbox"),
+ GTK_LABEL (GET_WIDGET ("contrast_label")),
+ 0.0, -100.0, 100.0, 1.0, 10.0, 0);
+ self->priv->gamma_adj = gimp_scale_entry_new (GET_WIDGET ("gamma_hbox"),
+ GTK_LABEL (GET_WIDGET ("gamma_label")),
+ 0.0, -100.0, 100.0, 1.0, 10.0, 0);
+ self->priv->saturation_adj = gimp_scale_entry_new (GET_WIDGET ("saturation_hbox"),
+ GTK_LABEL (GET_WIDGET ("saturation_label")),
+ 0.0, -100.0, 100.0, 1.0, 10.0, 0);
+ self->priv->cyan_red_adj = gimp_scale_entry_new (GET_WIDGET ("cyan_red_hbox"),
+ GTK_LABEL (GET_WIDGET ("cyan_red_label")),
+ 0.0, -100.0, 100.0, 1.0, 10.0, 0);
+ self->priv->magenta_green_adj = gimp_scale_entry_new (GET_WIDGET ("magenta_green_hbox"),
+ GTK_LABEL (GET_WIDGET ("magenta_green_label")),
+ 0.0, -100.0, 100.0, 1.0, 10.0, 0);
+ self->priv->yellow_blue_adj = gimp_scale_entry_new (GET_WIDGET ("yellow_blue_hbox"),
+ GTK_LABEL (GET_WIDGET ("yellow_blue_label")),
+ 0.0, -100.0, 100.0, 1.0, 10.0, 0);
g_signal_connect (GET_WIDGET ("ok_button"),
"clicked",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]