Damián Nohales avatar Damián Nohales committed 155deec

Some changes on the about dialog.

Comments (0)

Files changed (2)

data/about_dialog.ui

-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
 <interface>
   <requires lib="gtk+" version="2.18"/>
   <!-- interface-naming-policy project-wide -->
-  <object class="GtkAboutDialog" id="aboutdialog1">
+  <object class="GtkAboutDialog" id="aboutdialog">
+    <property name="can_focus">False</property>
     <property name="border_width">5</property>
     <property name="title" translatable="yes">About GrooveDown</property>
     <property name="window_position">center-on-parent</property>
     <property name="icon">gsharkdown_64.png</property>
     <property name="type_hint">dialog</property>
     <property name="program_name">gSharkDown</property>
-    <property name="version">0.5.2</property>
-    <property name="copyright" translatable="yes">(c) Vladimir Kolev 2011</property>
+    <property name="copyright" translatable="yes">Copyright © 2011-2012 Vladimir Kolev and Damián Nohales</property>
     <property name="comments" translatable="yes">Gnome-toolkit based desktop application for downloading music files from Grooveshark.com</property>
     <property name="website">https://bitbucket.org/vkolev/gsharkdown</property>
+    <property name="website_label" translatable="yes">gSharkDown website</property>
     <property name="license" translatable="yes">gSharkDown is licensed under the GNU GPL v3 License
 
 The gSharkDown icon is made by wall-e-ps (http://wall-e-ps.deviantart.com/)
 The groove.py library is developed by George Stephanos (jacktheripper51 @ github)
 Link to the sources: https://github.com/jacktheripper51/groove-dl</property>
     <property name="authors">Vladimir Kolev &lt;vladi@vladimirkolev.com&gt;
-Dami&#xE1;n Nohales &lt;damiannohales@gmail.com&gt;</property>
+Damián Nohales &lt;damiannohales@gmail.com&gt;</property>
     <property name="translator_credits" translatable="yes">Bulgarian - Vladimir Kolev
 German - Vladimir Kolev
 Italian -  Andrea Sciucca
-Spanish - Dami&#xE1;n Nohales</property>
+Spanish - Damián Nohales</property>
     <property name="logo">gsharkdown_128.png</property>
     <property name="wrap_license">True</property>
     <child internal-child="vbox">
       <object class="GtkVBox" id="dialog-vbox1">
         <property name="visible">True</property>
+        <property name="can_focus">False</property>
         <property name="spacing">2</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>
+          </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>
             <child>
               <object class="GtkHBox" id="hbox1">
                 <property name="visible">True</property>
+                <property name="can_focus">False</property>
                 <child>
                   <object class="GtkImage" id="image1">
                     <property name="visible">True</property>
+                    <property name="can_focus">False</property>
                     <property name="stock">gtk-dialog-warning</property>
                     <property name="icon-size">6</property>
                   </object>
                   <packing>
+                    <property name="expand">False</property>
+                    <property name="fill">True</property>
+                    <property name="padding">20</property>
                     <property name="position">0</property>
                   </packing>
                 </child>
                 <child>
                   <object class="GtkLabel" id="label1">
                     <property name="visible">True</property>
-                    <property name="label" translatable="yes">&lt;b&gt;Downloading mp3s is illegal in some countries! Please check the law in your country.&lt;/b&gt;</property>
-                    <property name="use_markup">True</property>
-                    <property name="justify">center</property>
+                    <property name="can_focus">False</property>
+                    <property name="label" translatable="yes">Downloading MP3's is illegal in some countries! Please check the law in your country.</property>
                     <property name="wrap">True</property>
+                    <attributes>
+                      <attribute name="weight" value="bold"/>
+                    </attributes>
                   </object>
                   <packing>
                     <property name="expand">False</property>
+                    <property name="fill">True</property>
                     <property name="position">1</property>
                   </packing>
                 </child>
               </object>
               <packing>
                 <property name="expand">False</property>
+                <property name="fill">True</property>
+                <property name="padding">12</property>
                 <property name="position">0</property>
               </packing>
             </child>
             <child>
               <object class="GtkHButtonBox" id="hbuttonbox1">
                 <property name="visible">True</property>
-                <property name="spacing">90</property>
-                <property name="layout_style">end</property>
+                <property name="can_focus">False</property>
+                <property name="layout_style">center</property>
                 <child>
-                  <object class="GtkButton" id="updatbut">
-                    <property name="label" translatable="yes">Check for update</property>
+                  <object class="GtkButton" id="flattrbut">
                     <property name="visible">True</property>
                     <property name="can_focus">True</property>
                     <property name="receives_default">True</property>
-                    <property name="image">image3</property>
+                    <property name="tooltip_text" translatable="yes">Flattr gSharkDow</property>
+                    <property name="use_action_appearance">False</property>
+                    <property name="image">image2</property>
+                    <property name="relief">none</property>
                   </object>
                   <packing>
                     <property name="expand">False</property>
                     <property name="position">0</property>
                   </packing>
                 </child>
-                <child>
-                  <object class="GtkButton" id="flattrbut">
-                    <property name="visible">True</property>
-                    <property name="can_focus">True</property>
-                    <property name="receives_default">True</property>
-                    <property name="tooltip_text" translatable="yes">Flattr gSharkDow</property>
-                    <property name="image">image2</property>
-                    <property name="relief">none</property>
-                  </object>
-                  <packing>
-                    <property name="expand">False</property>
-                    <property name="fill">False</property>
-                    <property name="position">1</property>
-                  </packing>
-                </child>
               </object>
               <packing>
+                <property name="expand">True</property>
+                <property name="fill">True</property>
                 <property name="position">1</property>
               </packing>
             </child>
           </object>
           <packing>
             <property name="expand">False</property>
+            <property name="fill">True</property>
             <property name="position">3</property>
           </packing>
         </child>
-        <child internal-child="action_area">
-          <object class="GtkHButtonBox" id="dialog-action_area1">
-            <property name="visible">True</property>
-            <property name="layout_style">end</property>
-          </object>
-          <packing>
-            <property name="expand">False</property>
-            <property name="pack_type">end</property>
-            <property name="position">0</property>
-          </packing>
-        </child>
       </object>
     </child>
   </object>
   <object class="GtkImage" id="image2">
     <property name="visible">True</property>
+    <property name="can_focus">False</property>
     <property name="pixbuf">flattr-badge-large.png</property>
   </object>
   <object class="GtkImage" id="image3">
     <property name="visible">True</property>
+    <property name="can_focus">False</property>
     <property name="icon_name">system-software-update</property>
   </object>
 </interface>

lib/guihelpers.py

         builder.add_from_file('%s/data/about_dialog.ui' % env().BASEPATH)
         flattr = builder.get_object('flattrbut')
         flattr.connect("clicked", self.on_flattr_this)
-        updbtn = builder.get_object('updatbut')
-        updbtn.connect("clicked", app.on_check_for_updates)
-        about = builder.get_object('aboutdialog1')
+        about = builder.get_object('aboutdialog')
         about.set_version(env().VERSION)
         about.run()
         about.destroy()
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.