gparted r996 - in trunk: . include src



Author: gedakc
Date: Wed Dec  3 18:18:04 2008
New Revision: 996
URL: http://svn.gnome.org/viewvc/gparted?rev=996&view=rev

Log:
Added text selectable parameter to mk_label()

Modified:
   trunk/ChangeLog
   trunk/include/Utils.h
   trunk/src/Utils.cc

Modified: trunk/include/Utils.h
==============================================================================
--- trunk/include/Utils.h	(original)
+++ trunk/include/Utils.h	Wed Dec  3 18:18:04 2008
@@ -121,6 +121,7 @@
 			      	      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 ) ;

Modified: trunk/src/Utils.cc
==============================================================================
--- trunk/src/Utils.cc	(original)
+++ trunk/src/Utils.cc	Wed Dec  3 18:18:04 2008
@@ -35,6 +35,7 @@
 			      Gtk::AlignmentEnum x_align,
 			      Gtk::AlignmentEnum y_align,
 			      bool wrap,
+			      bool selectable,
 			      const Glib::ustring & text_color ) 
 {
 
@@ -42,6 +43,7 @@
 	
 	label ->set_use_markup( use_markup ) ;
 	label ->set_line_wrap( wrap ) ;
+	label ->set_selectable( selectable ) ;
 	
 	if ( text_color != "black" )
 	{



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]