[glom] Update translation dialogs.



commit a4df2da37c9a4322ada56c6c76209015da48e5a1
Author: Daniel Borgmann <danielb openismus com>
Date:   Fri Apr 9 17:19:34 2010 +0100

    Update translation dialogs.
    
    * glom/application.cc:
    * glom/glom_developer.glade:
    * glom/mode_design/script_library/dialog_script_library.cc:
    * glom/mode_design/translation/window_translations.cc:
    * glom/mode_design/users/dialog_groups_list.cc:
    Translation dialog updates, set missing window icons.

 ChangeLog                                          |   12 ++++++
 glom/application.cc                                |    1 +
 glom/glom_developer.glade                          |   39 ++++++++++----------
 .../script_library/dialog_script_library.cc        |    4 ++
 .../mode_design/translation/window_translations.cc |    8 ++++-
 glom/mode_design/users/dialog_groups_list.cc       |    1 +
 6 files changed, 45 insertions(+), 20 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 3ab7adc..3c6c775 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+=======
+2010-04-09  Daniel Borgmann  <danielb openismus com>
+
+	Update translation dialogs.
+
+	* glom/application.cc:
+	* glom/glom_developer.glade:
+	* glom/mode_design/script_library/dialog_script_library.cc:
+	* glom/mode_design/translation/window_translations.cc:
+	* glom/mode_design/users/dialog_groups_list.cc:
+	Translation dialog updates, set missing window icons.
+
 2010-04-09  Armin Burgmeier  <armin arbur net>
 
 	* win32/build-installer:
diff --git a/glom/application.cc b/glom/application.cc
index 9897813..894a036 100644
--- a/glom/application.cc
+++ b/glom/application.cc
@@ -2448,6 +2448,7 @@ void Application::on_menu_developer_changelanguage()
     refXml->get_widget_derived("dialog_change_language", dialog);
     if(dialog)
     {
+      dialog->set_icon_name("glom");
       dialog->set_transient_for(*this);
       const int response =       Glom::Utils::dialog_run_with_help(dialog, "dialog_change_language");
       dialog->hide();
diff --git a/glom/glom_developer.glade b/glom/glom_developer.glade
index be8b592..961efe0 100644
--- a/glom/glom_developer.glade
+++ b/glom/glom_developer.glade
@@ -7023,6 +7023,7 @@ Which user should be added to this group?</property>
   <object class="GtkDialog" id="dialog_change_language">
     <property name="title" translatable="yes">Test Translation</property>
     <property name="type_hint">dialog</property>
+    <property name="has_separator">False</property>
     <child internal-child="vbox">
       <object class="GtkVBox" id="vbox86">
         <property name="visible">True</property>
@@ -7212,6 +7213,7 @@ Note that the standard parts of the Glom user interface, such as menus and dialo
   </object>
   <object class="GtkWindow" id="window_translations">
     <property name="title" translatable="yes">Translations</property>
+    <property name="window_position">center-on-parent</property>
     <property name="default_width">500</property>
     <property name="default_height">500</property>
     <child>
@@ -7565,6 +7567,7 @@ Note that the standard parts of the Glom user interface, such as menus and dialo
   <object class="GtkDialog" id="dialog_translation_identify_original">
     <property name="title" translatable="yes">Identify Original</property>
     <property name="type_hint">dialog</property>
+    <property name="has_separator">False</property>
     <child internal-child="vbox">
       <object class="GtkVBox" id="vbox91">
         <property name="visible">True</property>
@@ -7778,6 +7781,7 @@ The language of the original text is currently identified as:</property>
   <object class="GtkDialog" id="dialog_translation_copy">
     <property name="title" translatable="yes">Identify Original</property>
     <property name="type_hint">dialog</property>
+    <property name="has_separator">False</property>
     <child internal-child="vbox">
       <object class="GtkVBox" id="vbox91">
         <property name="visible">True</property>
@@ -8402,7 +8406,7 @@ If a suitable related table already exists then you should instead cancel and ju
     </action-widgets>
   </object>
   <object class="GtkDialog" id="dialog_script_library">
-    <property name="title" translatable="yes">Button Script</property>
+    <property name="title" translatable="yes">Script Library</property>
     <property name="default_width">500</property>
     <property name="default_height">600</property>
     <property name="type_hint">dialog</property>
@@ -8488,22 +8492,18 @@ If a suitable related table already exists then you should instead cancel and ju
               </packing>
             </child>
             <child>
-              <object class="GtkAlignment" id="alignment1">
+              <object class="GtkScrolledWindow" id="scrolledwindow2">
                 <property name="visible">True</property>
-                <property name="left_padding">20</property>
+                <property name="can_focus">True</property>
+                <property name="hscrollbar_policy">automatic</property>
+                <property name="vscrollbar_policy">automatic</property>
+                <property name="shadow_type">in</property>
                 <child>
-                  <object class="GtkScrolledWindow" id="scrolledwindow2">
+                  <object class="GtkSourceView" id="textview_script">
                     <property name="visible">True</property>
                     <property name="can_focus">True</property>
-                    <property name="hscrollbar_policy">automatic</property>
-                    <property name="vscrollbar_policy">automatic</property>
-                    <property name="shadow_type">in</property>
-                    <child>
-                      <object class="GtkSourceView" id="textview_script">
-                        <property name="visible">True</property>
-                        <property name="can_focus">True</property>
-                      </object>
-                    </child>
+                    <property name="left_margin">2</property>
+                    <property name="right_margin">2</property>
                   </object>
                 </child>
               </object>
@@ -8517,7 +8517,7 @@ If a suitable related table already exists then you should instead cancel and ju
                 <property name="layout_style">end</property>
                 <child>
                   <object class="GtkButton" id="button_check">
-                    <property name="label" translatable="yes" comments="Translators: This is the verb">Check</property>
+                    <property name="label" translatable="yes" comments="Translators: This is the verb">_Check</property>
                     <property name="visible">True</property>
                     <property name="can_focus">True</property>
                     <property name="can_default">True</property>
@@ -8595,6 +8595,7 @@ If a suitable related table already exists then you should instead cancel and ju
     <property name="default_width">311</property>
     <property name="default_height">179</property>
     <property name="type_hint">dialog</property>
+    <property name="has_separator">False</property>
     <child internal-child="vbox">
       <object class="GtkVBox" id="dialog-vbox33">
         <property name="visible">True</property>
@@ -8607,8 +8608,8 @@ If a suitable related table already exists then you should instead cancel and ju
             <child>
               <object class="GtkHBox" id="hbox4">
                 <property name="visible">True</property>
-                <property name="border_width">12</property>
-                <property name="spacing">6</property>
+                <property name="border_width">6</property>
+                <property name="spacing">12</property>
                 <child>
                   <object class="GtkImage" id="image1">
                     <property name="visible">True</property>
@@ -8661,8 +8662,8 @@ What name should this module have?</property>
             <child>
               <object class="GtkHBox" id="hbox6">
                 <property name="visible">True</property>
-                <property name="border_width">12</property>
-                <property name="spacing">6</property>
+                <property name="border_width">6</property>
+                <property name="spacing">12</property>
                 <child>
                   <object class="GtkLabel" id="Group Name1">
                     <property name="visible">True</property>
@@ -8760,7 +8761,7 @@ What name should this module have?</property>
                         <child>
                           <object class="GtkLabel" id="label4">
                             <property name="visible">True</property>
-                            <property name="label" translatable="yes">Create</property>
+                            <property name="label" translatable="yes">C_reate</property>
                             <property name="use_underline">True</property>
                           </object>
                           <packing>
diff --git a/glom/mode_design/script_library/dialog_script_library.cc b/glom/mode_design/script_library/dialog_script_library.cc
index 5029d11..6aa5af9 100644
--- a/glom/mode_design/script_library/dialog_script_library.cc
+++ b/glom/mode_design/script_library/dialog_script_library.cc
@@ -38,6 +38,8 @@ namespace Glom
 Dialog_ScriptLibrary::Dialog_ScriptLibrary(BaseObjectType* cobject, const Glib::RefPtr<Gtk::Builder>& builder)
 : Gtk::Dialog(cobject)
 {
+  set_icon_name("glom");
+
   //Get child widgets:
   builder->get_widget_derived("combobox_name", m_combobox_name);
   builder->get_widget("textview_script",  m_text_view);
@@ -101,6 +103,7 @@ void Dialog_ScriptLibrary::on_button_add()
     std::cerr << ex.what() << std::endl;
   }
 
+  dialog->set_icon_name("glom");
   dialog->set_transient_for(*this);
   const int response = Glom::Utils::dialog_run_with_help(dialog, "dialog_new_script");
   dialog->hide();
@@ -134,6 +137,7 @@ void Dialog_ScriptLibrary::on_button_remove()
   dialog.set_secondary_text(_("Do you really want to delete this script? This data can not be recovered"));
   dialog.add_button(Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL);
   dialog.add_button(Gtk::Stock::REMOVE, Gtk::RESPONSE_OK);
+  dialog.set_icon_name("glom");
   dialog.set_transient_for(*this);
   const int response = dialog.run();
   dialog.hide();
diff --git a/glom/mode_design/translation/window_translations.cc b/glom/mode_design/translation/window_translations.cc
index 7ad3d4a..97a9f86 100644
--- a/glom/mode_design/translation/window_translations.cc
+++ b/glom/mode_design/translation/window_translations.cc
@@ -54,6 +54,8 @@ Window_Translations::Window_Translations(BaseObjectType* cobject, const Glib::Re
   m_button_export(0),
   m_treeview_modified(false)
 {
+  set_icon_name("glom");
+
   builder->get_widget("label_source_locale", m_label_source_locale);
 
   builder->get_widget("treeview", m_treeview);
@@ -138,6 +140,7 @@ void Window_Translations::on_button_identify()
     {
       add_view(dialog);
       dialog->load_from_document(); //Doesn't seem to happen otherwise.
+      dialog->set_icon_name("glom");
       dialog->set_transient_for(*this);
       const int response = Glom::Utils::dialog_run_with_help(dialog, "dialog_translation_identify_original");
       dialog->hide();
@@ -366,6 +369,7 @@ void Window_Translations::on_button_copy_translation()
     refXml->get_widget_derived("dialog_translation_copy", dialog);
     if(dialog)
     {
+      dialog->set_icon_name("glom");
       dialog->set_transient_for(*this);
       const int response = Glom::Utils::dialog_run_with_help(dialog, "dialog_translation_copy");
       dialog->hide();
@@ -506,6 +510,7 @@ void Window_Translations::on_button_export()
   
   //Show the file-chooser dialog, to select an output .po file:
   Gtk::FileChooserDialog file_dlg(_("Choose .po File Name"), Gtk::FILE_CHOOSER_ACTION_SAVE);
+  file_dlg.set_icon_name("glom");
   file_dlg.set_do_overwrite_confirmation();
   
   // Only po files
@@ -584,7 +589,8 @@ void Window_Translations::on_button_import()
     return;
 
   Gtk::FileChooserDialog file_dlg(_("Choose .po File Name"), Gtk::FILE_CHOOSER_ACTION_OPEN);
-  
+  file_dlg.set_icon_name("glom");
+
   // Only po files
   Gtk::FileFilter filter;
   filter.set_name(_("Po files"));
diff --git a/glom/mode_design/users/dialog_groups_list.cc b/glom/mode_design/users/dialog_groups_list.cc
index 48d8725..921c213 100644
--- a/glom/mode_design/users/dialog_groups_list.cc
+++ b/glom/mode_design/users/dialog_groups_list.cc
@@ -211,6 +211,7 @@ void Dialog_GroupsList::on_button_group_delete()
         //TODO: Prevent deletion of standard groups
         Gtk::MessageDialog dialog(Utils::bold_message(_("Delete Group")), true, Gtk::MESSAGE_QUESTION, Gtk::BUTTONS_OK_CANCEL);
         dialog.set_secondary_text(_("Are your sure that you wish to delete this group?"));
+        dialog.set_icon_name("glom");
         dialog.set_transient_for(*this);
 
         int response = dialog.run();



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