"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/DialogPasswordEntry.cc" between
gparted-1.2.0.tar.gz and gparted-1.3.0.tar.gz

About: GParted is a graphical partition editor for creating, reorganizing, and deleting disk partitions (using GNU libparted).

DialogPasswordEntry.cc  (gparted-1.2.0):DialogPasswordEntry.cc  (gparted-1.3.0)
skipping to change at line 29 skipping to change at line 29
#include <glibmm/ustring.h> #include <glibmm/ustring.h>
#include <gtkmm/box.h> #include <gtkmm/box.h>
#include <gtkmm/stock.h> #include <gtkmm/stock.h>
#include <gtkmm/button.h> #include <gtkmm/button.h>
#include <gtk/gtk.h> #include <gtk/gtk.h>
namespace GParted namespace GParted
{ {
DialogPasswordEntry::DialogPasswordEntry( const Partition & partition ) DialogPasswordEntry::DialogPasswordEntry(const Partition& partition, const Glib: :ustring& reason)
{ {
this->set_resizable( false ); this->set_resizable( false );
this->set_size_request( 400, -1 ); this->set_size_request( 400, -1 );
/* TO TRANSLATORS: dialog title, looks like LUKS Passphrase /dev/sda1 * / /* TO TRANSLATORS: dialog title, looks like LUKS Passphrase /dev/sda1 * /
this->set_title( Glib::ustring::compose( _("LUKS Passphrase %1"), partiti on.get_path() ) ); this->set_title( Glib::ustring::compose( _("LUKS Passphrase %1"), partiti on.get_path() ) );
// Separate vertical box to hold lines in the dialog. // Separate vertical box to hold lines in the dialog.
Gtk::Box *vbox(manage(new Gtk::Box(Gtk::ORIENTATION_VERTICAL))); Gtk::Box *vbox(manage(new Gtk::Box(Gtk::ORIENTATION_VERTICAL)));
vbox->set_border_width( 5 ); vbox->set_border_width( 5 );
vbox->set_spacing( 5 ); vbox->set_spacing( 5 );
get_vbox()->pack_start( *vbox, Gtk::PACK_SHRINK ); get_vbox()->pack_start( *vbox, Gtk::PACK_SHRINK );
// Line 1: "Enter LUKS passphrase to open /dev/sda1" // Line 1: Reason message, e.g. "Enter LUKS passphrase to open /dev/sda1"
vbox->pack_start( *Utils::mk_label( vbox->pack_start(*Utils::mk_label(reason), Gtk::PACK_SHRINK);
Glib::ustring::compose( _("Enter LUKS passphrase to open
%1"), partition.get_path() ) ),
Gtk::PACK_SHRINK );
// Line 2: "Passphrase: [ ]" // Line 2: "Passphrase: [ ]"
// (Horizontal box holding prompt and entry box) // (Horizontal box holding prompt and entry box)
Gtk::Box *entry_hbox(manage(new Gtk::Box(Gtk::ORIENTATION_HORIZONTAL))); Gtk::Box *entry_hbox(manage(new Gtk::Box(Gtk::ORIENTATION_HORIZONTAL)));
entry_hbox->pack_start( *Utils::mk_label( "<b>"+ Glib::ustring( _("Passph rase:") ) + "</b>" ) ); entry_hbox->pack_start( *Utils::mk_label( "<b>"+ Glib::ustring( _("Passph rase:") ) + "</b>" ) );
entry = manage( new Gtk::Entry() ); entry = manage( new Gtk::Entry() );
entry->set_width_chars( 30 ); entry->set_width_chars( 30 );
entry->set_visibility( false ); entry->set_visibility( false );
entry->set_activates_default( true ); entry->set_activates_default( true );
entry->grab_focus(); entry->grab_focus();
 End of changes. 2 change blocks. 
6 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)