Remove unused text_color argument from Utils::mk_label() method

None of the current GParted code uses the text_color argument for
Utils::mk_label().  Remove unused argument to simplify code.
This commit is contained in:
Curtis Gedak 2014-04-26 14:06:18 -06:00 committed by Mike Fleetwood
parent 09711ae22d
commit e075ab006e
2 changed files with 10 additions and 16 deletions

View File

@ -158,11 +158,11 @@ class Utils
{
public:
static Sector round( double double_value ) ;
static Gtk::Label * mk_label( const Glib::ustring & text,
bool use_markup = true,
bool wrap = false,
bool selectable = false,
const Glib::ustring & text_color = "black" ) ;
static Gtk::Label * mk_label( const Glib::ustring & text
, bool use_markup = true
, bool wrap = false
, bool selectable = false
) ;
static Glib::ustring num_to_str( Sector number ) ;
static Glib::ustring get_color( FILESYSTEM filesystem ) ;
static Glib::RefPtr<Gdk::Pixbuf> get_color_as_pixbuf( FILESYSTEM filesystem, int width, int height ) ;

View File

@ -42,11 +42,11 @@ Sector Utils::round( double double_value )
return static_cast<Sector>( double_value + 0.5 ) ;
}
Gtk::Label * Utils::mk_label( const Glib::ustring & text,
bool use_markup,
bool wrap,
bool selectable,
const Glib::ustring & text_color )
Gtk::Label * Utils::mk_label( const Glib::ustring & text
, bool use_markup
, bool wrap
, bool selectable
)
{
//xalign 0.0 == Gtk::ALIGN_LEFT (gtkmm <= 2.22)
// == Gtk::ALIGN_START (gtkmm >= 2.24)
@ -57,12 +57,6 @@ Gtk::Label * Utils::mk_label( const Glib::ustring & text,
label ->set_line_wrap( wrap ) ;
label ->set_selectable( selectable ) ;
if ( text_color != "black" )
{
Gdk::Color color( text_color ) ;
label ->modify_fg( label ->get_state(), color ) ;
}
return label ;
}