[gthumb] set the mnemonic for the preview label



commit 847b0650fadd79a5d87a940f0141ab6f0f333a1f
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Fri Feb 26 11:38:23 2010 +0100

    set the mnemonic for the preview label

 extensions/rename_series/data/ui/rename-series.ui |    7 ++++---
 extensions/rename_series/dlg-rename-series.c      |    2 ++
 2 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/extensions/rename_series/data/ui/rename-series.ui b/extensions/rename_series/data/ui/rename-series.ui
index 03122c6..a368ad9 100644
--- a/extensions/rename_series/data/ui/rename-series.ui
+++ b/extensions/rename_series/data/ui/rename-series.ui
@@ -448,8 +448,9 @@
                   <object class="GtkLabel" id="preview_label">
                     <property name="visible">True</property>
                     <property name="xalign">0</property>
-                    <property name="label" translatable="yes">Preview:</property>
+                    <property name="label" translatable="yes">_Preview:</property>
                     <property name="use_markup">True</property>
+                    <property name="use_underline">True</property>
                   </object>
                   <packing>
                     <property name="expand">False</property>
@@ -556,13 +557,13 @@
   <object class="GtkSizeGroup" id="sizegroup1">
     <property name="mode">vertical</property>
     <widgets>
-      <widget name="template_entry"/>
       <widget name="template_label"/>
+      <widget name="template_entry"/>
     </widgets>
   </object>
   <object class="GtkAdjustment" id="start_at_adjustment">
-    <property name="value">1</property>
     <property name="upper">1000000000</property>
+    <property name="value">1</property>
     <property name="step_increment">1</property>
     <property name="page_increment">10</property>
   </object>
diff --git a/extensions/rename_series/dlg-rename-series.c b/extensions/rename_series/dlg-rename-series.c
index e1beb3c..76caf74 100644
--- a/extensions/rename_series/dlg-rename-series.c
+++ b/extensions/rename_series/dlg-rename-series.c
@@ -440,6 +440,8 @@ dlg_rename_series (GthBrowser *browser,
 	gtk_widget_show (data->list_view);
 	gtk_container_add (GTK_CONTAINER (GET_WIDGET ("preview_scrolledwindow")), data->list_view);
 
+	gtk_label_set_mnemonic_widget (GTK_LABEL (GET_WIDGET ("preview_label")), data->list_view);
+
 	if (data->file_list->next == NULL) {
 		GthFileData *file_data = data->file_list->data;
 		gtk_entry_set_text (GTK_ENTRY (GET_WIDGET ("template_entry")), g_file_info_get_attribute_string (file_data->info, G_FILE_ATTRIBUTE_STANDARD_EDIT_NAME));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]