From 4370af87795caf2a97b938c813e244d927c23c8f Mon Sep 17 00:00:00 2001 From: Curtis Gedak Date: Wed, 3 Dec 2008 18:18:04 +0000 Subject: [PATCH] Added text selectable parameter to mk_label() svn path=/trunk/; revision=996 --- ChangeLog | 5 +++++ include/Utils.h | 1 + src/Utils.cc | 2 ++ 3 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 47c4f00e..7a100a25 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-12-03 Curtis Gedak + + * include/Utils.h, + src/Utils.cc: Added text selectable parameter to mk_label() + 2008-12-02 Curtis Gedak * configure.in: Append -svn to version for continuing development diff --git a/include/Utils.h b/include/Utils.h index 95cd53aa..61041960 100644 --- a/include/Utils.h +++ b/include/Utils.h @@ -121,6 +121,7 @@ public: Gtk::AlignmentEnum x_align = Gtk::ALIGN_LEFT, Gtk::AlignmentEnum y_align = Gtk::ALIGN_CENTER, bool wrap = false, + bool selectable = false, const Glib::ustring & text_color = "black" ) ; static Glib::ustring num_to_str( Sector number, bool use_C_locale = false ) ; static Glib::ustring get_color( FILESYSTEM filesystem ) ; diff --git a/src/Utils.cc b/src/Utils.cc index 28d45bff..bfd744dd 100644 --- a/src/Utils.cc +++ b/src/Utils.cc @@ -35,6 +35,7 @@ Gtk::Label * Utils::mk_label( const Glib::ustring & text, Gtk::AlignmentEnum x_align, Gtk::AlignmentEnum y_align, bool wrap, + bool selectable, 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_line_wrap( wrap ) ; + label ->set_selectable( selectable ) ; if ( text_color != "black" ) {