[pybliographer] ui: Port medline search dialog to GtkBuilder



commit 5509b6833be7cd65c74038c1ed5e6203d18f7a0e
Author: Germán Poo-Caamaño <gpoo gnome org>
Date:   Tue Mar 27 23:48:43 2018 -0300

    ui: Port medline search dialog to GtkBuilder

 Pyblio/GnomeUI/Medline.py          |  214 ++++++-----
 Pyblio/GnomeUI/glade/Makefile.am   |    2 +-
 Pyblio/GnomeUI/glade/medline.glade |  712 ------------------------------------
 Pyblio/GnomeUI/glade/medline.ui    |  550 ++++++++++++++++++++++++++++
 po/POTFILES.in                     |    2 +-
 5 files changed, 674 insertions(+), 806 deletions(-)
---
diff --git a/Pyblio/GnomeUI/Medline.py b/Pyblio/GnomeUI/Medline.py
index 4fcba4c..982cca3 100644
--- a/Pyblio/GnomeUI/Medline.py
+++ b/Pyblio/GnomeUI/Medline.py
@@ -1,7 +1,8 @@
+# -*- coding: utf-8 -*-
 # This file is part of pybliographer
 # 
-# Copyright (C) 1998-2004 Frederic GOBRY
-# Email : gobry pybliographer org
+# Copyright (C) 2018 Germán Poo-Caamaño <gpoo gnome org>
+# Copyright (C) 1998-2004 Frederic GOBRY <gobry pybliographer org>
 #         
 # This program is free software; you can redistribute it and/or
 # modify it under the terms of the GNU General Public License
@@ -23,124 +24,153 @@ import gtk
 
 from Pyblio.GnomeUI import Utils
 
-class MedlineUI (Utils.GladeWindow):
-
+class MedlineUI(Utils.Builder):
     gladeinfo = { 'name': 'medline',
-                  'file': 'medline.glade',
+                  'file': 'medline.ui',
                   'root': '_w_medline'
                   }
 
-    def __init__ (self, parent = None):
-
-        Utils.GladeWindow.__init__ (self, parent)
+    def __init__(self, parent=None):
+        Utils.Builder.__init__(self, parent)
 
         # Fill in the combo boxes
-        self._w_field.set_popdown_strings (['All Fields', 'Affiliation',
-                                            'Author Name', 'EC/RN Number',
-                                            'Entrez Date', 'Filter',
-                                            'Issue', 'Journal Name',
-                                            'Language', 'MeSH Date',
-                                            'MeSH Major Topic',
-                                            'MeSH Subheading', 'MeSH Terms',
-                                            'Pagination', 'Publication Date',
-                                            'Publication Type', 'Secondary Source ID',
-                                            'Substance Name', 'Text Word',
-                                            'Title', 'Title/Abstract',
-                                            'UID', 'Volume'])
-
-        self._w_pub_type.set_popdown_strings (['Publication Types', 'Addresses',
-                                               'Bibliography', 'Biography',
-                                               'Classical Article', 'Clinical Conference',
-                                               'Clinical Trial', 'Clinical Trial, Phase I',
-                                               'Clinical Trial, Phase II', 'Clinical Trial, Phase III',
-                                               'Clinical Trial, Phase IV', 'Comment',
-                                               'Congresses', 'Consensus Development Conference',
-                                               'Consensus Development Conference, NIH',
-                                               'Controlled Clinical Trial',
-                                               'Corrected and Republished Article', 'Dictionary',
-                                               'Directory', 'Duplicate Publication',
-                                               'Editorial', 'Evaluation Studies',
-                                               'Festschrift', 'Government Publications',
-                                               'Guideline', 'Historical Article',
-                                               'Interview', 'Journal Article', 'Lectures',
-                                               'Legal Cases', 'Legislation', 'Letter',
-                                               'Meta-Analysis', 'Multicenter Study', 'News',
-                                               'Newspaper Article', 'Overall', 'Periodical Index',
-                                               'Practice Guideline', 'Published Erratum',
-                                               'Randomized Controlled Trial', 'Retraction of Publication',
-                                               'Retracted Publication', 'Review', 'Review, Academic',
-                                               'Review Literature', 'Review, Multicase',
-                                               'Review of Reported Cases', 'Review, Tutorial',
-                                               'Scientific Integrity Review', 'Technical Report',
-                                               'Twin Study', 'Validation Studies'])
-
-        self._w_language.set_popdown_strings (['Languages', 'English',
-                                               'French', 'German', 'Italian',
-                                               'Japanese', 'Russian', 'Spanish'])
-
-        self._w_subset.set_popdown_strings (['Subsets', 'AIDS', 'AIDS/HIV journals',
-                                             'Bioethics', 'Bioethics journals',
-                                             'Biotechnology journals', 'Communication disorders journals',
-                                             'Complementary and Alternative Medicine',
-                                             'Consumer health journals', 'Core clinical journals',
-                                             'Dental journals', 'Health administration journals',
-                                             'Health tech assessment journals', 'History of Medicine',
-                                             'History of Medicine journals', 'In process',
-                                             'Index Medicus journals', 'MEDLINE', 'NASA journals',
-                                             'Nursing journals', 'PubMed Central', 'Reproduction journals',
-                                             'Space Life Sciences', 'Supplied by Publisher', 'Toxicology'])
+        field_items = ['All Fields', 'Affiliation',
+                       'Author Name', 'EC/RN Number',
+                       'Entrez Date', 'Filter',
+                       'Issue', 'Journal Name',
+                       'Language', 'MeSH Date',
+                       'MeSH Major Topic',
+                       'MeSH Subheading', 'MeSH Terms',
+                       'Pagination', 'Publication Date',
+                       'Publication Type', 'Secondary Source ID',
+                       'Substance Name', 'Text Word',
+                       'Title', 'Title/Abstract',
+                       'UID', 'Volume']
+
+        for item in field_items:
+            self._w_field.append_text(item)
+        self._w_field.set_active(0)
+
+        pub_type_items = ['Publication Types', 'Addresses',
+                          'Bibliography', 'Biography',
+                          'Classical Article', 'Clinical Conference',
+                          'Clinical Trial', 'Clinical Trial, Phase I',
+                          'Clinical Trial, Phase II', 'Clinical Trial, Phase III',
+                          'Clinical Trial, Phase IV', 'Comment',
+                          'Congresses', 'Consensus Development Conference',
+                          'Consensus Development Conference, NIH',
+                          'Controlled Clinical Trial',
+                          'Corrected and Republished Article', 'Dictionary',
+                          'Directory', 'Duplicate Publication',
+                          'Editorial', 'Evaluation Studies',
+                          'Festschrift', 'Government Publications',
+                          'Guideline', 'Historical Article',
+                          'Interview', 'Journal Article', 'Lectures',
+                          'Legal Cases', 'Legislation', 'Letter',
+                          'Meta-Analysis', 'Multicenter Study', 'News',
+                          'Newspaper Article', 'Overall', 'Periodical Index',
+                          'Practice Guideline', 'Published Erratum',
+                          'Randomized Controlled Trial', 'Retraction of Publication',
+                          'Retracted Publication', 'Review', 'Review, Academic',
+                          'Review Literature', 'Review, Multicase',
+                          'Review of Reported Cases', 'Review, Tutorial',
+                          'Scientific Integrity Review', 'Technical Report',
+                          'Twin Study', 'Validation Studies']
+
+        for item in pub_type_items:
+            self._w_pub_type.append_text(item)
+        self._w_pub_type.set_active(0)
+
+        language_items = (['Languages', 'English',
+                           'French', 'German', 'Italian',
+                           'Japanese', 'Russian', 'Spanish'])
+
+        for item in language_items:
+            self._w_language.append_text(item)
+        self._w_language.set_active(0)
+
+        subset_items = ['Subsets', 'AIDS', 'AIDS/HIV journals',
+                        'Bioethics', 'Bioethics journals',
+                        'Biotechnology journals', 'Communication disorders journals',
+                        'Complementary and Alternative Medicine',
+                        'Consumer health journals', 'Core clinical journals',
+                        'Dental journals', 'Health administration journals',
+                        'Health tech assessment journals', 'History of Medicine',
+                        'History of Medicine journals', 'In process',
+                        'Index Medicus journals', 'MEDLINE', 'NASA journals',
+                        'Nursing journals', 'PubMed Central', 'Reproduction journals',
+                        'Space Life Sciences', 'Supplied by Publisher', 'Toxicology']
         
-        self._w_age.set_popdown_strings (['Ages', 'All Infant: birth-23 month',
-                                          'All Child: 0-18 years', 'All Adult: 19+ years',
-                                          'Newborn: birth-1 month', 'Infant: 1-23 months',
-                                          'Preschool Child: 2-5 years', 'Child: 6-12 years',
-                                          'Adolescent: 13-18 years', 'Adult: 19-44 years',
-                                          'Middle Aged: 45-64 years', 'Aged: 65+ years',
-                                          '80 and over: 80+ years'])
+        for item in subset_items:
+            self._w_subset.append_text(item)
+        self._w_subset.set_active(0)
+
+        age_items =['Ages', 'All Infant: birth-23 month',
+                    'All Child: 0-18 years', 'All Adult: 19+ years',
+                    'Newborn: birth-1 month', 'Infant: 1-23 months',
+                    'Preschool Child: 2-5 years', 'Child: 6-12 years',
+                    'Adolescent: 13-18 years', 'Adult: 19-44 years',
+                    'Middle Aged: 45-64 years', 'Aged: 65+ years',
+                    '80 and over: 80+ years']
+
+        for item in age_items:
+            self._w_age.append_text(item)
+        self._w_age.set_active(0)
 
-        self._w_human.set_popdown_strings (['Human or Animal', 'Human', 'Animal'])
+        human_items = ['Human or Animal', 'Human', 'Animal']
 
-        self._w_gender.set_popdown_strings (['Gender', 'Female', 'Male'])
+        for item in human_items:
+            self._w_human.append_text(item)
+        self._w_human.set_active(0)
 
-        self._w_entrez_date.set_popdown_strings (['Entrez Date', '30 Days', '60 Days',
-                                                  '90 Days', '180 Days', '1 Year', '2 Years',
-                                                  '5 Years', '10 Years'])
+        gender_items = ['Gender', 'Female', 'Male']
 
-        self._w_pub_date.set_popdown_strings (['Publication Date', 'Entrez Date'])
+        for item in gender_items:
+            self._w_gender.append_text(item)
+        self._w_gender.set_active(0)
 
-        self._w_medline.show ()
-        return
+        entrez_date_items = ['Entrez Date', '30 Days', '60 Days',
+                             '90 Days', '180 Days', '1 Year', '2 Years',
+                             '5 Years', '10 Years']
 
-    
-    def run (self):
+        for item in entrez_date_items:
+            self._w_entrez_date.append_text(item)
+        self._w_entrez_date.set_active(0)
 
-        ret = self._w_medline.run ()
+        pub_date_items = ['Publication Date', 'Entrez Date']
+
+        for item in pub_date_items:
+            self._w_pub_date.append_text(item)
+        self._w_pub_date.set_active(0)
+
+        self._w_medline.show()
+
+    def run(self):
+        ret = self._w_medline.run()
 
         if ret != gtk.RESPONSE_OK:
             self._w_medline.destroy ()
             return None
 
         data = (
-            self._w_keyword.entry.get_text (),
+            self._w_keyword.get_text(),
             self._w_max_results.get_value_as_int (),
             self._w_start_results.get_value_as_int (),
-            self._w_field.entry.get_text (),
+            self._w_field.get_active_text(),
             self._w_abstracts.get_active (),
             self._w_ahead.get_active (),
-            self._w_pub_type.entry.get_text (),
-            self._w_language.entry.get_text (),
-            self._w_subset.entry.get_text (),
-            self._w_age.entry.get_text (),
-            self._w_human.entry.get_text (),
-            self._w_gender.entry.get_text (),
-            self._w_entrez_date.entry.get_text (),
-            self._w_pub_date.entry.get_text (),
+            self._w_pub_type.get_active_text(),
+            self._w_language.get_active_text(),
+            self._w_subset.get_active_text(),
+            self._w_age.get_active_text(),
+            self._w_human.get_active_text(),
+            self._w_gender.get_active_text(),
+            self._w_entrez_date.get_active_text(),
+            self._w_pub_date.get_active_text(),
             self._w_from_date.get_text (),
             self._w_to_date.get_text ()
             )
 
-        self._w_keyword.append_history (True, data [0])
-        
         self._w_medline.destroy ()
 
         return data
diff --git a/Pyblio/GnomeUI/glade/Makefile.am b/Pyblio/GnomeUI/glade/Makefile.am
index 31398ed..891d6c2 100644
--- a/Pyblio/GnomeUI/glade/Makefile.am
+++ b/Pyblio/GnomeUI/glade/Makefile.am
@@ -7,7 +7,7 @@ glade_DATA =                                    \
        search.ui                               \
        sort.ui                                 \
        format.ui                               \
-       medline.glade                           \
+       medline.ui                              \
        config.ui                               \
        openurl.ui
 
diff --git a/Pyblio/GnomeUI/glade/medline.ui b/Pyblio/GnomeUI/glade/medline.ui
new file mode 100644
index 0000000..9e27d6f
--- /dev/null
+++ b/Pyblio/GnomeUI/glade/medline.ui
@@ -0,0 +1,550 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <requires lib="gtk+" version="2.24"/>
+  <!-- interface-naming-policy toplevel-contextual -->
+  <object class="GtkDialog" id="_w_medline">
+    <property name="can_focus">False</property>
+    <property name="title" translatable="yes">Medline Query</property>
+    <property name="type_hint">normal</property>
+    <property name="has_separator">True</property>
+    <child internal-child="vbox">
+      <object class="GtkVBox" id="dialog-vbox1">
+        <property name="visible">True</property>
+        <property name="can_focus">False</property>
+        <child internal-child="action_area">
+          <object class="GtkHButtonBox" id="dialog-action_area1">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="layout_style">end</property>
+            <child>
+              <object class="GtkButton" id="cancelbutton1">
+                <property name="label">gtk-cancel</property>
+                <property name="visible">True</property>
+                <property name="can_focus">True</property>
+                <property name="can_default">True</property>
+                <property name="receives_default">False</property>
+                <property name="use_action_appearance">False</property>
+                <property name="use_stock">True</property>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="fill">False</property>
+                <property name="position">0</property>
+              </packing>
+            </child>
+            <child>
+              <object class="GtkButton" id="okbutton1">
+                <property name="label">gtk-ok</property>
+                <property name="visible">True</property>
+                <property name="can_focus">True</property>
+                <property name="can_default">True</property>
+                <property name="has_default">True</property>
+                <property name="receives_default">False</property>
+                <property name="use_action_appearance">False</property>
+                <property name="use_stock">True</property>
+                <accelerator key="Return" signal="clicked"/>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="fill">False</property>
+                <property name="position">1</property>
+              </packing>
+            </child>
+          </object>
+          <packing>
+            <property name="expand">False</property>
+            <property name="fill">True</property>
+            <property name="pack_type">end</property>
+            <property name="position">0</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkVBox" id="vbox1">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="spacing">5</property>
+            <child>
+              <object class="GtkLabel" id="label5">
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <property name="label" translatable="yes">Enter your Medline Query</property>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="fill">False</property>
+                <property name="padding">10</property>
+                <property name="position">0</property>
+              </packing>
+            </child>
+            <child>
+              <object class="GtkHBox" id="hbox1">
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <property name="border_width">6</property>
+                <property name="spacing">5</property>
+                <child>
+                  <object class="GtkLabel" id="label1">
+                    <property name="visible">True</property>
+                    <property name="can_focus">False</property>
+                    <property name="label" translatable="yes">Search 
+PubMed for:</property>
+                  </object>
+                  <packing>
+                    <property name="expand">False</property>
+                    <property name="fill">False</property>
+                    <property name="position">0</property>
+                  </packing>
+                </child>
+                <child>
+                  <object class="GtkEntry" id="_w_keyword">
+                    <property name="visible">True</property>
+                    <property name="can_focus">True</property>
+                    <property name="invisible_char">•</property>
+                    <property name="primary_icon_activatable">False</property>
+                    <property name="secondary_icon_activatable">False</property>
+                    <property name="primary_icon_sensitive">True</property>
+                    <property name="secondary_icon_sensitive">True</property>
+                  </object>
+                  <packing>
+                    <property name="expand">True</property>
+                    <property name="fill">True</property>
+                    <property name="position">1</property>
+                  </packing>
+                </child>
+                <child>
+                  <object class="GtkLabel" id="label2">
+                    <property name="visible">True</property>
+                    <property name="can_focus">False</property>
+                    <property name="label" translatable="yes">Maximum number
+of results:</property>
+                  </object>
+                  <packing>
+                    <property name="expand">False</property>
+                    <property name="fill">False</property>
+                    <property name="position">2</property>
+                  </packing>
+                </child>
+                <child>
+                  <object class="GtkSpinButton" id="_w_max_results">
+                    <property name="visible">True</property>
+                    <property name="can_focus">True</property>
+                    <property name="primary_icon_activatable">False</property>
+                    <property name="secondary_icon_activatable">False</property>
+                    <property name="primary_icon_sensitive">True</property>
+                    <property name="secondary_icon_sensitive">True</property>
+                    <property name="adjustment">adjustment2</property>
+                    <property name="climb_rate">1</property>
+                    <property name="wrap">True</property>
+                  </object>
+                  <packing>
+                    <property name="expand">True</property>
+                    <property name="fill">True</property>
+                    <property name="position">3</property>
+                  </packing>
+                </child>
+                <child>
+                  <object class="GtkLabel" id="label3">
+                    <property name="visible">True</property>
+                    <property name="can_focus">False</property>
+                    <property name="label" translatable="yes">Starting listing at
+result number:</property>
+                  </object>
+                  <packing>
+                    <property name="expand">False</property>
+                    <property name="fill">False</property>
+                    <property name="position">4</property>
+                  </packing>
+                </child>
+                <child>
+                  <object class="GtkSpinButton" id="_w_start_results">
+                    <property name="visible">True</property>
+                    <property name="can_focus">True</property>
+                    <property name="primary_icon_activatable">False</property>
+                    <property name="secondary_icon_activatable">False</property>
+                    <property name="primary_icon_sensitive">True</property>
+                    <property name="secondary_icon_sensitive">True</property>
+                    <property name="adjustment">adjustment1</property>
+                    <property name="climb_rate">1</property>
+                  </object>
+                  <packing>
+                    <property name="expand">True</property>
+                    <property name="fill">True</property>
+                    <property name="position">5</property>
+                  </packing>
+                </child>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="fill">False</property>
+                <property name="position">1</property>
+              </packing>
+            </child>
+            <child>
+              <object class="GtkFrame" id="frame1">
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <property name="border_width">6</property>
+                <property name="label_xalign">0</property>
+                <property name="shadow_type">none</property>
+                <child>
+                  <object class="GtkVBox" id="vbox2">
+                    <property name="visible">True</property>
+                    <property name="can_focus">False</property>
+                    <property name="border_width">5</property>
+                    <property name="spacing">5</property>
+                    <child>
+                      <object class="GtkHBox" id="hbox2">
+                        <property name="visible">True</property>
+                        <property name="can_focus">False</property>
+                        <property name="spacing">5</property>
+                        <child>
+                          <object class="GtkComboBox" id="_w_field">
+                            <property name="visible">True</property>
+                            <property name="can_focus">False</property>
+                            <property name="model">liststore_field</property>
+                            <property name="has_entry">True</property>
+                            <property name="entry_text_column">0</property>
+                          </object>
+                          <packing>
+                            <property name="expand">True</property>
+                            <property name="fill">True</property>
+                            <property name="position">0</property>
+                          </packing>
+                        </child>
+                        <child>
+                          <object class="GtkCheckButton" id="_w_abstracts">
+                            <property name="label" translatable="yes">Only items 
+with abstracts</property>
+                            <property name="visible">True</property>
+                            <property name="can_focus">True</property>
+                            <property name="receives_default">False</property>
+                            <property name="use_action_appearance">False</property>
+                            <property name="use_underline">True</property>
+                            <property name="draw_indicator">True</property>
+                          </object>
+                          <packing>
+                            <property name="expand">False</property>
+                            <property name="fill">False</property>
+                            <property name="position">2</property>
+                          </packing>
+                        </child>
+                        <child>
+                          <object class="GtkCheckButton" id="_w_ahead">
+                            <property name="label" translatable="yes">Only items 
+ahead of print</property>
+                            <property name="visible">True</property>
+                            <property name="can_focus">True</property>
+                            <property name="receives_default">False</property>
+                            <property name="use_action_appearance">False</property>
+                            <property name="use_underline">True</property>
+                            <property name="draw_indicator">True</property>
+                          </object>
+                          <packing>
+                            <property name="expand">False</property>
+                            <property name="fill">False</property>
+                            <property name="position">2</property>
+                          </packing>
+                        </child>
+                      </object>
+                      <packing>
+                        <property name="expand">False</property>
+                        <property name="fill">True</property>
+                        <property name="position">0</property>
+                      </packing>
+                    </child>
+                    <child>
+                      <object class="GtkTable" id="table1">
+                        <property name="visible">True</property>
+                        <property name="can_focus">False</property>
+                        <property name="n_rows">2</property>
+                        <property name="n_columns">3</property>
+                        <property name="column_spacing">5</property>
+                        <property name="row_spacing">5</property>
+                        <child>
+                          <object class="GtkComboBox" id="_w_language">
+                            <property name="visible">True</property>
+                            <property name="can_focus">False</property>
+                            <property name="model">liststore_language</property>
+                            <property name="has_entry">True</property>
+                            <property name="entry_text_column">0</property>
+                          </object>
+                          <packing>
+                            <property name="left_attach">1</property>
+                            <property name="right_attach">2</property>
+                          </packing>
+                        </child>
+                        <child>
+                          <object class="GtkComboBox" id="_w_subset">
+                            <property name="visible">True</property>
+                            <property name="can_focus">False</property>
+                            <property name="model">liststore_subset</property>
+                            <property name="has_entry">True</property>
+                            <property name="entry_text_column">0</property>
+                          </object>
+                          <packing>
+                            <property name="left_attach">2</property>
+                            <property name="right_attach">3</property>
+                          </packing>
+                        </child>
+                        <child>
+                          <object class="GtkComboBox" id="_w_age">
+                            <property name="visible">True</property>
+                            <property name="can_focus">False</property>
+                            <property name="model">liststore_age</property>
+                            <property name="has_entry">True</property>
+                            <property name="entry_text_column">0</property>
+                          </object>
+                          <packing>
+                            <property name="top_attach">1</property>
+                            <property name="bottom_attach">2</property>
+                          </packing>
+                        </child>
+                        <child>
+                          <object class="GtkComboBox" id="_w_human">
+                            <property name="visible">True</property>
+                            <property name="can_focus">False</property>
+                            <property name="model">liststore_human</property>
+                            <property name="has_entry">True</property>
+                            <property name="entry_text_column">0</property>
+                          </object>
+                          <packing>
+                            <property name="left_attach">1</property>
+                            <property name="right_attach">2</property>
+                            <property name="top_attach">1</property>
+                            <property name="bottom_attach">2</property>
+                          </packing>
+                        </child>
+                        <child>
+                          <object class="GtkComboBox" id="_w_gender">
+                            <property name="visible">True</property>
+                            <property name="can_focus">False</property>
+                            <property name="model">liststore_gender</property>
+                            <property name="has_entry">True</property>
+                            <property name="entry_text_column">0</property>
+                          </object>
+                          <packing>
+                            <property name="left_attach">2</property>
+                            <property name="right_attach">3</property>
+                            <property name="top_attach">1</property>
+                            <property name="bottom_attach">2</property>
+                          </packing>
+                        </child>
+                        <child>
+                          <object class="GtkComboBox" id="_w_pub_type">
+                            <property name="visible">True</property>
+                            <property name="can_focus">False</property>
+                            <property name="model">liststore_pub_type</property>
+                            <property name="has_entry">True</property>
+                            <property name="entry_text_column">0</property>
+                          </object>
+                        </child>
+                      </object>
+                      <packing>
+                        <property name="expand">False</property>
+                        <property name="fill">True</property>
+                        <property name="position">1</property>
+                      </packing>
+                    </child>
+                    <child>
+                      <object class="GtkComboBox" id="_w_entrez_date">
+                        <property name="visible">True</property>
+                        <property name="can_focus">False</property>
+                        <property name="model">liststore_entrez_date</property>
+                        <property name="has_entry">True</property>
+                        <property name="entry_text_column">0</property>
+                      </object>
+                      <packing>
+                        <property name="expand">False</property>
+                        <property name="fill">True</property>
+                        <property name="position">3</property>
+                      </packing>
+                    </child>
+                    <child>
+                      <object class="GtkHBox" id="hbox3">
+                        <property name="visible">True</property>
+                        <property name="can_focus">False</property>
+                        <property name="spacing">5</property>
+                        <child>
+                          <object class="GtkComboBox" id="_w_pub_date">
+                            <property name="visible">True</property>
+                            <property name="can_focus">False</property>
+                            <property name="model">liststore_pub_date</property>
+                            <property name="has_entry">True</property>
+                            <property name="entry_text_column">0</property>
+                          </object>
+                          <packing>
+                            <property name="expand">False</property>
+                            <property name="fill">True</property>
+                            <property name="position">1</property>
+                          </packing>
+                        </child>
+                        <child>
+                          <object class="GtkLabel" id="label7">
+                            <property name="visible">True</property>
+                            <property name="can_focus">False</property>
+                            <property name="label" translatable="yes">From:</property>
+                          </object>
+                          <packing>
+                            <property name="expand">False</property>
+                            <property name="fill">False</property>
+                            <property name="position">2</property>
+                          </packing>
+                        </child>
+                        <child>
+                          <object class="GtkEntry" id="_w_from_date">
+                            <property name="visible">True</property>
+                            <property name="can_focus">True</property>
+                            <property name="primary_icon_activatable">False</property>
+                            <property name="secondary_icon_activatable">False</property>
+                            <property name="primary_icon_sensitive">True</property>
+                            <property name="secondary_icon_sensitive">True</property>
+                          </object>
+                          <packing>
+                            <property name="expand">True</property>
+                            <property name="fill">True</property>
+                            <property name="position">2</property>
+                          </packing>
+                        </child>
+                        <child>
+                          <object class="GtkLabel" id="label8">
+                            <property name="visible">True</property>
+                            <property name="can_focus">False</property>
+                            <property name="label" translatable="yes">To:</property>
+                          </object>
+                          <packing>
+                            <property name="expand">False</property>
+                            <property name="fill">False</property>
+                            <property name="position">4</property>
+                          </packing>
+                        </child>
+                        <child>
+                          <object class="GtkEntry" id="_w_to_date">
+                            <property name="visible">True</property>
+                            <property name="can_focus">True</property>
+                            <property name="primary_icon_activatable">False</property>
+                            <property name="secondary_icon_activatable">False</property>
+                            <property name="primary_icon_sensitive">True</property>
+                            <property name="secondary_icon_sensitive">True</property>
+                          </object>
+                          <packing>
+                            <property name="expand">True</property>
+                            <property name="fill">True</property>
+                            <property name="position">4</property>
+                          </packing>
+                        </child>
+                      </object>
+                      <packing>
+                        <property name="expand">False</property>
+                        <property name="fill">True</property>
+                        <property name="position">4</property>
+                      </packing>
+                    </child>
+                    <child>
+                      <object class="GtkLabel" id="label6">
+                        <property name="visible">True</property>
+                        <property name="can_focus">False</property>
+                        <property name="label" translatable="yes">Use the format YYYY/MM/DD
+Month and day are optional.</property>
+                      </object>
+                      <packing>
+                        <property name="expand">False</property>
+                        <property name="fill">False</property>
+                        <property name="position">4</property>
+                      </packing>
+                    </child>
+                  </object>
+                </child>
+                <child type="label">
+                  <object class="GtkLabel" id="label4">
+                    <property name="visible">True</property>
+                    <property name="can_focus">False</property>
+                    <property name="label" translatable="yes">Limited to:</property>
+                  </object>
+                </child>
+              </object>
+              <packing>
+                <property name="expand">True</property>
+                <property name="fill">True</property>
+                <property name="padding">6</property>
+                <property name="position">2</property>
+              </packing>
+            </child>
+          </object>
+          <packing>
+            <property name="expand">True</property>
+            <property name="fill">True</property>
+            <property name="position">2</property>
+          </packing>
+        </child>
+      </object>
+    </child>
+    <action-widgets>
+      <action-widget response="-6">cancelbutton1</action-widget>
+      <action-widget response="-5">okbutton1</action-widget>
+    </action-widgets>
+  </object>
+  <object class="GtkAdjustment" id="adjustment1">
+    <property name="upper">100</property>
+    <property name="step_increment">1</property>
+    <property name="page_increment">10</property>
+  </object>
+  <object class="GtkAdjustment" id="adjustment2">
+    <property name="upper">100</property>
+    <property name="step_increment">1</property>
+    <property name="page_increment">10</property>
+  </object>
+  <object class="GtkListStore" id="liststore_age">
+    <columns>
+      <!-- column-name age -->
+      <column type="gchararray"/>
+    </columns>
+  </object>
+  <object class="GtkListStore" id="liststore_entrez_date">
+    <columns>
+      <!-- column-name entrez_date -->
+      <column type="gchararray"/>
+    </columns>
+  </object>
+  <object class="GtkListStore" id="liststore_field">
+    <columns>
+      <!-- column-name field -->
+      <column type="gchararray"/>
+    </columns>
+  </object>
+  <object class="GtkListStore" id="liststore_gender">
+    <columns>
+      <!-- column-name gender -->
+      <column type="gchararray"/>
+    </columns>
+  </object>
+  <object class="GtkListStore" id="liststore_human">
+    <columns>
+      <!-- column-name human -->
+      <column type="gchararray"/>
+    </columns>
+  </object>
+  <object class="GtkListStore" id="liststore_language">
+    <columns>
+      <!-- column-name language -->
+      <column type="gchararray"/>
+    </columns>
+  </object>
+  <object class="GtkListStore" id="liststore_pub_date">
+    <columns>
+      <!-- column-name pub_date -->
+      <column type="gchararray"/>
+    </columns>
+  </object>
+  <object class="GtkListStore" id="liststore_pub_type">
+    <columns>
+      <!-- column-name pub_type -->
+      <column type="gchararray"/>
+    </columns>
+  </object>
+  <object class="GtkListStore" id="liststore_subset">
+    <columns>
+      <!-- column-name subset -->
+      <column type="gchararray"/>
+    </columns>
+  </object>
+</interface>
diff --git a/po/POTFILES.in b/po/POTFILES.in
index c9aca47..2e80731 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -43,7 +43,7 @@ Pyblio/GnomeUI/__init__.py
 Pyblio/GnomeUI/glade/config.ui
 Pyblio/GnomeUI/glade/fields.ui
 Pyblio/GnomeUI/glade/format.ui
-Pyblio/GnomeUI/glade/medline.glade
+Pyblio/GnomeUI/glade/medline.ui
 Pyblio/GnomeUI/glade/openurl.ui
 Pyblio/GnomeUI/glade/pyblio.ui.in
 Pyblio/GnomeUI/glade/search.ui



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