summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Libraries/LibGUI/TextEditor.cpp4
-rw-r--r--Libraries/LibGUI/Widget.cpp20
-rw-r--r--Libraries/LibGUI/Widget.h2
3 files changed, 13 insertions, 13 deletions
diff --git a/Libraries/LibGUI/TextEditor.cpp b/Libraries/LibGUI/TextEditor.cpp
index f16d170ba1..94337e838f 100644
--- a/Libraries/LibGUI/TextEditor.cpp
+++ b/Libraries/LibGUI/TextEditor.cpp
@@ -45,7 +45,7 @@
#include <stdio.h>
#include <unistd.h>
-//#define DEBUG_GTEXTEDITOR
+//#define DEBUG_TEXTEDITOR
namespace GUI {
@@ -411,7 +411,7 @@ void TextEditor::paint_event(PaintEvent& event)
for_each_visual_line(line_index, [&](const Gfx::Rect& visual_line_rect, const StringView& visual_line_text, size_t start_of_visual_line) {
if (is_multi_line() && line_index == m_cursor.line())
painter.fill_rect(visual_line_rect, widget_background_color.darkened(0.9f));
-#ifdef DEBUG_GTEXTEDITOR
+#ifdef DEBUG_TEXTEDITOR
painter.draw_rect(visual_line_rect, Color::Cyan);
#endif
if (!document().has_spans()) {
diff --git a/Libraries/LibGUI/Widget.cpp b/Libraries/LibGUI/Widget.cpp
index 0f9036fd69..00b107a5f4 100644
--- a/Libraries/LibGUI/Widget.cpp
+++ b/Libraries/LibGUI/Widget.cpp
@@ -51,16 +51,16 @@
namespace GUI {
-REGISTER_GWIDGET(Button)
-REGISTER_GWIDGET(CheckBox)
-REGISTER_GWIDGET(GroupBox)
-REGISTER_GWIDGET(Label)
-REGISTER_GWIDGET(RadioButton)
-REGISTER_GWIDGET(ScrollBar)
-REGISTER_GWIDGET(Slider)
-REGISTER_GWIDGET(SpinBox)
-REGISTER_GWIDGET(TextBox)
-REGISTER_GWIDGET(Widget)
+REGISTER_WIDGET(Button)
+REGISTER_WIDGET(CheckBox)
+REGISTER_WIDGET(GroupBox)
+REGISTER_WIDGET(Label)
+REGISTER_WIDGET(RadioButton)
+REGISTER_WIDGET(ScrollBar)
+REGISTER_WIDGET(Slider)
+REGISTER_WIDGET(SpinBox)
+REGISTER_WIDGET(TextBox)
+REGISTER_WIDGET(Widget)
static HashMap<String, WidgetClassRegistration*>& widget_classes()
{
diff --git a/Libraries/LibGUI/Widget.h b/Libraries/LibGUI/Widget.h
index 5206290e58..a90f28c850 100644
--- a/Libraries/LibGUI/Widget.h
+++ b/Libraries/LibGUI/Widget.h
@@ -35,7 +35,7 @@
#include <LibGfx/Orientation.h>
#include <LibGfx/Rect.h>
-#define REGISTER_GWIDGET(class_name) \
+#define REGISTER_WIDGET(class_name) \
extern WidgetClassRegistration registration_##class_name; \
WidgetClassRegistration registration_##class_name(#class_name, []() { return class_name::construct(); });