~elementary-apps/switchboard-plug-pantheon-shell/trunk

« back to all changes in this revision

Viewing changes to src/Wallpaper.vala

  • Committer: Corentin Noël
  • Date: 2012-10-26 15:43:50 UTC
  • Revision ID: tintou@mailoo.org-20121026154350-1uxj0378lwh7tqjn
Fixed translation, switch the wallpaper to the 1st tab and reorganize some widgets

Show diffs side-by-side

added added

removed removed

Lines of Context:
105
105
                drag_dest_set (wallpaper_view, DestDefaults.ALL, {e}, Gdk.DragAction.COPY);
106
106
                
107
107
                var scrolled = new ScrolledWindow (null, null);
108
 
                scrolled.set_size_request (250, 300);
 
108
                scrolled.set_size_request (250, 250);
 
109
                scrolled.set_margin_left (12);
 
110
                scrolled.set_margin_right (12);
109
111
                scrolled.add (wallpaper_view);
110
112
                
111
113
                vbox.pack_start (scrolled, true, true, 5);
236
238
                
237
239
                // Make the progress bar visible, since we're gonna be using it.
238
240
                try {
239
 
                        plug.switchboard_controller.progress_bar_set_text("Importing wallpapers from " + WALLPAPER_DIR);
 
241
                        plug.switchboard_controller.progress_bar_set_text(_("Importing wallpapers from %s").printf(WALLPAPER_DIR));
240
242
                } catch (Error e) { warning (e.message); }
241
243
                
242
244
                var directory = File.new_for_path (WALLPAPER_DIR);
305
307
        }
306
308
        
307
309
        void on_drag_data_received (Widget widget, Gdk.DragContext ctx, 
308
 
                int x, int y, SelectionData sel, uint information, uint timestamp) {               
 
310
                int x, int y, SelectionData sel, uint information, uint timestamp) {
309
311
                if (sel.get_length () > 0){
310
312
                        File file = File.new_for_uri (sel.get_uris ()[0]);
311
313