Commits

Gabriele Lanaro committed f630f7f

transferlist further cleanings

  • Participants
  • Parent commits 879d31b

Comments (0)

Files changed (3)

 * Short Term
 ** Papercuts (Third iterate)
-*** TODO Trasfer file dialog is ugly [3/6]
+*** TODO Trasfer file dialog is ugly [5/6]
 
     - [X] bad speed representation
     - [X] status not always updated
     - [X] bad size identifier in the menu
+    - [X] No icon
+    - [X] Menu hasn't any functionality, should remove it
     - [ ] ETA not displayed
-    - [ ] No icon
-    - [ ] Menu hasn't any functionality, should remove it
 
 *** TODO Design icon 22x22, refine 16x16
 *** TODO Statusbar not updating when transfer is finished    

File filesnake/gui/glade/transfers.glade

   <requires lib="gtk+" version="2.16"/>
   <!-- interface-naming-policy project-wide -->
   <object class="GtkWindow" id="window1">
+    <property name="title" translatable="yes">Transfers List</property>
+    <property name="destroy_with_parent">True</property>
     <child>
       <object class="GtkVBox" id="vbox1">
         <property name="width_request">500</property>
         <property name="height_request">200</property>
         <property name="visible">True</property>
-        <property name="orientation">vertical</property>
-        <child>
-          <object class="GtkMenuBar" id="menubar1">
-            <property name="visible">True</property>
-            <child>
-              <object class="GtkMenuItem" id="menuitem1">
-                <property name="visible">True</property>
-                <property name="label" translatable="yes">_File</property>
-                <property name="use_underline">True</property>
-                <child type="submenu">
-                  <object class="GtkMenu" id="menu1">
-                    <property name="visible">True</property>
-                    <child>
-                      <object class="GtkSeparatorMenuItem" id="separatormenuitem1">
-                        <property name="visible">True</property>
-                      </object>
-                    </child>
-                    <child>
-                      <object class="GtkImageMenuItem" id="imagemenuitem5">
-                        <property name="label">gtk-quit</property>
-                        <property name="visible">True</property>
-                        <property name="use_underline">True</property>
-                        <property name="use_stock">True</property>
-                      </object>
-                    </child>
-                  </object>
-                </child>
-              </object>
-            </child>
-            <child>
-              <object class="GtkMenuItem" id="menuitem4">
-                <property name="visible">True</property>
-                <property name="label" translatable="yes">A_iuto</property>
-                <property name="use_underline">True</property>
-                <child type="submenu">
-                  <object class="GtkMenu" id="menu3">
-                    <property name="visible">True</property>
-                    <child>
-                      <object class="GtkImageMenuItem" id="imagemenuitem10">
-                        <property name="label">gtk-about</property>
-                        <property name="visible">True</property>
-                        <property name="use_underline">True</property>
-                        <property name="use_stock">True</property>
-                      </object>
-                    </child>
-                  </object>
-                </child>
-              </object>
-            </child>
-          </object>
-          <packing>
-            <property name="expand">False</property>
-            <property name="position">0</property>
-          </packing>
-        </child>
         <child>
           <object class="GtkEventBox" id="transferlist_cont">
             <property name="visible">True</property>
             </child>
           </object>
           <packing>
-            <property name="position">1</property>
+            <property name="position">0</property>
           </packing>
         </child>
       </object>

File filesnake/gui/main_win.py

         
     def create_ui(self):
         icon_path = os.path.join(media_dir,"16.png")
-        self.window1.set_icon(gtk.gdk.pixbuf_new_from_file(icon_path))
+        icon = gtk.gdk.pixbuf_new_from_file(icon_path)
+        
+        self.window1.set_icon(icon)
         self.window1.set_title("filesnake")
         
         self.transfer = TransfersDialog()
+        self.transfer.widget.set_icon(icon) # Dirty but effective
+        
         self.userlist = UserList()
         self.userdiscovery = UserDiscovery(self.userlist)
         self.statusbar = StatusBar(self)
         
-        # Contestual Menus
+        # Contextual Menus
         self.usermenu = UserMenu(self)
         self.preferences_dialog = PreferencesDialog()