From 2a8ec0e4bb40fcd7a5e427f9cabf4b34b9e8f425 Mon Sep 17 00:00:00 2001 From: Mike Fleetwood Date: Mon, 6 Nov 2023 21:08:29 +0000 Subject: [PATCH] Remove final namespace qualifiers from use of GParted's own enums ... because it is not necessary and clutters the code. --- include/Operation.h | 2 +- src/DrawingAreaVisualDisk.cc | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/Operation.h b/include/Operation.h index caee6bbe..02fd8c80 100644 --- a/include/Operation.h +++ b/include/Operation.h @@ -25,7 +25,7 @@ namespace GParted { - //FIXME: stop using GParted:: in front of our own enums.. it's not necessary and clutters the code + enum OperationType { OPERATION_DELETE = 0, OPERATION_CHECK = 1, diff --git a/src/DrawingAreaVisualDisk.cc b/src/DrawingAreaVisualDisk.cc index dbf4aade..0182ebbb 100644 --- a/src/DrawingAreaVisualDisk.cc +++ b/src/DrawingAreaVisualDisk.cc @@ -36,12 +36,12 @@ DrawingAreaVisualDisk::DrawingAreaVisualDisk() selected_vp = nullptr; // Set some standard colors - color_used .set( Utils::get_color( GParted::FS_USED ) ); - color_unused .set( Utils::get_color( GParted::FS_UNUSED ) ); - color_unallocated .set( Utils::get_color( GParted::FS_UNALLOCATED ) ); + color_used.set(Utils::get_color(FS_USED)); + color_unused.set(Utils::get_color(FS_UNUSED)); + color_unallocated.set(Utils::get_color(FS_UNALLOCATED)); color_text .set( "black" ); add_events( Gdk::BUTTON_PRESS_MASK ); - + set_size_request( -1, HEIGHT ) ; }