~ubuntu-branches/debian/sid/steadyflow/sid

« back to all changes in this revision

Viewing changes to Steadyflow/AddFileDialog.vala

  • Committer: Package Import Robot
  • Author(s): Maia Kozheva
  • Date: 2012-06-30 19:40:42 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20120630194042-0dl4f8wjed5q76sg
Tags: 0.2.0-1
* New upstream release.
  - Now uses vala 0.16. (Closes: #675666)
  - Fixes broken Dutch translation. (Closes: #677465)
  - Clicking the tray icon shows the application window. (Closes: #642669)
* debian/control:
  - Updated dependencies (Vala 0.16, GTK3, GLib 2.30, removed libunique).
* Dropped all patches, merged upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
                base ("AddFileDialog", null, false);
36
36
                
37
37
                set_title (_("Add File for Download"));
38
 
                set_has_separator (false);
39
38
                set_resizable (true);
40
39
                set_border_width (5);
41
40
                
42
 
                VBox vbox = (VBox) get_content_area ();
 
41
                Box vbox = (Box) get_content_area ();
43
42
                vbox.set_border_width (5);
44
43
                vbox.set_spacing (8);
45
44
                
149
148
                if (get_finish_action () == IDownloadFile.FinishAction.RUN_COMMAND) {
150
149
                        custom_command_area.show ();
151
150
                } else if (custom_command_area.visible) {
152
 
                        int height = custom_command_area.allocation.height;
 
151
                        Allocation alloc;
 
152
                        custom_command_area.get_allocation (out alloc);
 
153
                
 
154
                        int height = alloc.height;
153
155
                        custom_command_area.hide ();
154
 
                        resize (allocation.width, allocation.height - height - 6);
 
156
                        get_allocation (out alloc);
 
157
                        resize (alloc.width, alloc.height - height - 6);
155
158
                }
156
159
        }
157
160