Added text selectable parameter to mk_label()

svn path=/trunk/; revision=996
This commit is contained in:
Curtis Gedak 2008-12-03 18:18:04 +00:00
parent 95a42b866e
commit 4370af8779
3 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2008-12-03 Curtis Gedak <gedakc@gmail.com>
* include/Utils.h,
src/Utils.cc: Added text selectable parameter to mk_label()
2008-12-02 Curtis Gedak <gedakc@gmail.com> 2008-12-02 Curtis Gedak <gedakc@gmail.com>
* configure.in: Append -svn to version for continuing development * configure.in: Append -svn to version for continuing development

View File

@ -121,6 +121,7 @@ public:
Gtk::AlignmentEnum x_align = Gtk::ALIGN_LEFT, Gtk::AlignmentEnum x_align = Gtk::ALIGN_LEFT,
Gtk::AlignmentEnum y_align = Gtk::ALIGN_CENTER, Gtk::AlignmentEnum y_align = Gtk::ALIGN_CENTER,
bool wrap = false, bool wrap = false,
bool selectable = false,
const Glib::ustring & text_color = "black" ) ; const Glib::ustring & text_color = "black" ) ;
static Glib::ustring num_to_str( Sector number, bool use_C_locale = false ) ; static Glib::ustring num_to_str( Sector number, bool use_C_locale = false ) ;
static Glib::ustring get_color( FILESYSTEM filesystem ) ; static Glib::ustring get_color( FILESYSTEM filesystem ) ;

View File

@ -35,6 +35,7 @@ Gtk::Label * Utils::mk_label( const Glib::ustring & text,
Gtk::AlignmentEnum x_align, Gtk::AlignmentEnum x_align,
Gtk::AlignmentEnum y_align, Gtk::AlignmentEnum y_align,
bool wrap, bool wrap,
bool selectable,
const Glib::ustring & text_color ) const Glib::ustring & text_color )
{ {
@ -42,6 +43,7 @@ Gtk::Label * Utils::mk_label( const Glib::ustring & text,
label ->set_use_markup( use_markup ) ; label ->set_use_markup( use_markup ) ;
label ->set_line_wrap( wrap ) ; label ->set_line_wrap( wrap ) ;
label ->set_selectable( selectable ) ;
if ( text_color != "black" ) if ( text_color != "black" )
{ {