~ubuntu-branches/ubuntu/trusty/gparted/trusty

« back to all changes in this revision

Viewing changes to src/Dialog_Progress.cc

  • Committer: Bazaar Package Importer
  • Author(s): Anibal Monsalve Salazar
  • Date: 2009-11-07 20:00:00 UTC
  • mfrom: (6.3.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20091107200000-0oow6hqkev28fisf
Tags: 0.4.8-1
New upstream release 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (C) 2004, 2005, 2006, 2007, 2008 Bart Hakvoort
 
1
/* Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Bart Hakvoort
2
2
 *
3
3
 *  This program is free software; you can redistribute it and/or modify
4
4
 *  it under the terms of the GNU General Public License as published by
39
39
                
40
40
        dispatcher_update_gui_elements .connect( 
41
41
                sigc::mem_fun( this, &Dialog_Progress::dispatcher_on_update_gui_elements ) ) ;
42
 
                        
43
 
        Glib::ustring str_temp = "<span weight=\"bold\" size=\"larger\">" ;
44
 
        str_temp += _("Applying pending operations") ;
45
 
        str_temp += "</span>\n\n" ;
46
 
        str_temp += _("Applying all listed operations.") ;
47
 
        str_temp += "\n";
48
 
        str_temp += _("Depending on the amount and type of operations this might take a long time.") ;
49
 
        str_temp += "\n";
50
 
        this ->get_vbox() ->pack_start( * Utils::mk_label( str_temp ), Gtk::PACK_SHRINK );
51
 
        
 
42
 
 
43
        vbox = manage( new Gtk::VBox() ) ;
 
44
        vbox ->set_border_width( 10 ) ;
 
45
        this ->get_vbox() ->pack_start( *vbox, Gtk::PACK_SHRINK ) ;
 
46
 
 
47
        Glib::ustring str_temp = _("Depending on the amount and type of operations this might take a long time.") ;
 
48
        str_temp += "\n";
 
49
        vbox ->pack_start( * Utils::mk_label( str_temp ), Gtk::PACK_SHRINK );
 
50
 
52
51
        label_current .set_alignment( Gtk::ALIGN_LEFT );
53
 
        this ->get_vbox() ->pack_start( label_current, Gtk::PACK_SHRINK ) ;
 
52
        vbox ->pack_start( label_current, Gtk::PACK_SHRINK ) ;
54
53
 
55
54
        progressbar_current .set_pulse_step( 0.01 ) ;
56
 
        this->get_vbox() ->pack_start( progressbar_current, Gtk::PACK_SHRINK );
 
55
        vbox ->pack_start( progressbar_current, Gtk::PACK_SHRINK );
57
56
        
58
57
        label_current_sub .set_alignment( Gtk::ALIGN_LEFT );
59
 
        this ->get_vbox() ->pack_start( label_current_sub, Gtk::PACK_SHRINK );
 
58
        vbox ->pack_start( label_current_sub, Gtk::PACK_SHRINK );
60
59
        
61
 
        this ->get_vbox() ->pack_start( * Utils::mk_label( "<b>" + Glib::ustring( _("Completed Operations:") ) + "</b>" ),
 
60
        vbox ->pack_start( * Utils::mk_label( "<b>" + Glib::ustring( _("Completed Operations:") ) + "</b>" ),
62
61
                                        Gtk::PACK_SHRINK );
63
 
        this ->get_vbox() ->pack_start( progressbar_all, Gtk::PACK_SHRINK );
 
62
        vbox ->pack_start( progressbar_all, Gtk::PACK_SHRINK );
64
63
        
65
64
        //create some icons here, instead of recreating them every time
66
65
        icon_execute = render_icon( Gtk::Stock::EXECUTE, Gtk::ICON_SIZE_LARGE_TOOLBAR ) ;
104
103
                sigc::mem_fun(*this, &Dialog_Progress::on_expander_changed) );
105
104
        expander_details .add( scrolledwindow ) ;
106
105
        
107
 
        this ->get_vbox() ->pack_start( expander_details, Gtk::PACK_EXPAND_WIDGET ) ; 
108
 
        this ->get_vbox() ->set_spacing( 5 ) ;
 
106
        vbox ->pack_start( expander_details, Gtk::PACK_EXPAND_WIDGET ) ; 
 
107
        vbox ->set_spacing( 5 ) ;
109
108
        
110
109
        this ->add_button( Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL ) ;
111
110