Changeset 57

Show
Ignore:
Timestamp:
03/23/07 03:37:47 (22 months ago)
Author:
ploum
Message:

We have an About box !

Files:
2 modified

Legend:

Unmodified
Added
Removed
  • conseil.glade

    r56 r57  
    5858                        <property name="label" translatable="yes">E_xport Bookmarks</property> 
    5959                        <property name="use_underline">True</property> 
    60                         <signal name="activate" handler="on_exporter_bookmarks1_activate"/> 
     60                        <signal name="activate" handler="on_exporter_bookmarks_activate"/> 
    6161                        <child internal-child="image"> 
    6262                          <widget class="GtkImage" id="menu-item-image3"> 
     
    160160                  <widget class="GtkMenu" id="menuitem4_menu"> 
    161161                    <child> 
    162                       <widget class="GtkImageMenuItem" id="À_propos1"> 
     162                      <widget class="GtkImageMenuItem" id="À_propos"> 
    163163                        <property name="visible">True</property> 
    164164                        <property name="label">gtk-about</property> 
    165165                        <property name="use_underline">True</property> 
    166166                        <property name="use_stock">True</property> 
     167                        <signal name="activate" handler="on_a_propos_activate"/> 
    167168                      </widget> 
    168169                    </child> 
     
    10371038                    <property name="row_spacing">2</property> 
    10381039                    <child> 
    1039                       <widget class="GtkEntry" id="adv_search_entry"> 
     1040                      <widget class="GtkEntry" id="adv_search_package_entry"> 
    10401041                        <property name="visible">True</property> 
    10411042                        <property name="can_focus">True</property> 
     
    10441045                        <property name="left_attach">1</property> 
    10451046                        <property name="right_attach">2</property> 
    1046                         <property name="top_attach">1</property> 
    1047                         <property name="bottom_attach">2</property> 
    1048                       </packing> 
    1049                     </child> 
    1050                     <child> 
    1051                       <widget class="GtkLabel" id="adv_search_package_label"> 
    1052                         <property name="visible">True</property> 
    1053                         <property name="xalign">1</property> 
    1054                         <property name="label" translatable="yes">Package:</property> 
    1055                       </widget> 
    1056                       <packing> 
    1057                         <property name="top_attach">1</property> 
    1058                         <property name="bottom_attach">2</property> 
    10591047                      </packing> 
    10601048                    </child> 
     
    10701058                    </child> 
    10711059                    <child> 
    1072                       <widget class="GtkEntry" id="adv_search_package_entry"> 
     1060                      <widget class="GtkLabel" id="adv_search_package_label"> 
     1061                        <property name="visible">True</property> 
     1062                        <property name="xalign">1</property> 
     1063                        <property name="label" translatable="yes">Package:</property> 
     1064                      </widget> 
     1065                      <packing> 
     1066                        <property name="top_attach">1</property> 
     1067                        <property name="bottom_attach">2</property> 
     1068                      </packing> 
     1069                    </child> 
     1070                    <child> 
     1071                      <widget class="GtkEntry" id="adv_search_entry"> 
    10731072                        <property name="visible">True</property> 
    10741073                        <property name="can_focus">True</property> 
     
    10771076                        <property name="left_attach">1</property> 
    10781077                        <property name="right_attach">2</property> 
     1078                        <property name="top_attach">1</property> 
     1079                        <property name="bottom_attach">2</property> 
    10791080                      </packing> 
    10801081                    </child> 
     
    11601161    </child> 
    11611162  </widget> 
    1162   <widget class="GtkAboutDialog" id="aboutdialog1"> 
     1163  <widget class="GtkAboutDialog" id="aboutdialog"> 
    11631164    <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property> 
    11641165    <property name="border_width">5</property> 
     
    11671168    <property name="window_position">GTK_WIN_POS_CENTER_ON_PARENT</property> 
    11681169    <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property> 
     1170    <property name="skip_taskbar_hint">True</property> 
    11691171    <property name="has_separator">False</property> 
    1170     <property name="name">Glade</property> 
    1171     <property name="website">http://conseil.fritalk.org/conseil</property> 
    1172     <property name="authors">Lionel Dricot</property> 
     1172    <property name="name">Conseil</property> 
     1173    <property name="version">0.1.99</property> 
     1174    <property name="copyright" translatable="yes">Spam, eggs, bacon, sausages and Spam</property> 
     1175    <property name="website">http://conseil.fritalk.com/conseil</property> 
     1176    <property name="authors">Lionel Dricot &lt;ploum@ubuntu.com&gt; 
     1177Étienne Bersac &lt;bersace@gnome.org&gt;</property> 
     1178    <signal name="response" handler="on_aboutdialog_response"/> 
    11731179    <child internal-child="vbox"> 
    11741180      <widget class="GtkVBox" id="dialog-vbox1"> 
     
    11801186        </child> 
    11811187        <child internal-child="action_area"> 
    1182           <widget class="GtkHButtonBox" id="dialog-action_area1"> 
     1188          <widget class="GtkHButtonBox" id="dialog-action_area"> 
    11831189            <property name="visible">True</property> 
    11841190            <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property> 
  • conseil.py

    r56 r57  
    5050                        "on_import_activate" : self.import_bookmarks,    
    5151                        "on_open_activate" : self.open_bookmarks, 
     52                        "on_a_propos_activate" : self.about_dialog, 
     53                        "on_aboutdialog_response" : lambda x, y: x.hide(), 
    5254                        "on_bugs_notebook_switch_page" : self.switch_page, 
    5355                        "on_sidebar_display_activate" : self.show_sidebar, 
     
    273275                                        self.retriever.display(dic) 
    274276         
     277        def about_dialog(self,widget): 
     278                about_widget = self.full_glade.get_widget("aboutdialog") 
     279                about_widget.show() 
    275280                 
    276281