Skip to content

Commit

Permalink
LibGUI: Remove remaining G prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
xTibor authored and awesomekling committed Mar 19, 2020
1 parent 809490d commit 30964ba
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Libraries/LibGUI/Application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class Application::TooltipWindow final : public Window {
public:
void set_tooltip(const StringView& tooltip)
{
// FIXME: Add some kind of GLabel auto-sizing feature.
// FIXME: Add some kind of GUI::Label auto-sizing feature.
int text_width = m_label->font().width(tooltip);
set_rect(100, 100, text_width + 10, m_label->font().glyph_height() + 8);
m_label->set_text(tooltip);
Expand Down
4 changes: 2 additions & 2 deletions Libraries/LibGUI/InputBox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ void InputBox::build()
m_cancel_button->set_preferred_size(0, 20);
m_cancel_button->set_text("Cancel");
m_cancel_button->on_click = [this] {
dbgprintf("GInputBox: Cancel button clicked\n");
dbgprintf("GUI::InputBox: Cancel button clicked\n");
done(ExecCancel);
};

Expand All @@ -93,7 +93,7 @@ void InputBox::build()
m_ok_button->set_preferred_size(0, 20);
m_ok_button->set_text("OK");
m_ok_button->on_click = [this] {
dbgprintf("GInputBox: OK button clicked\n");
dbgprintf("GUI::InputBox: OK button clicked\n");
m_text_value = m_text_editor->text();
done(ExecOK);
};
Expand Down
2 changes: 1 addition & 1 deletion Libraries/LibGUI/TextPosition.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class TextPosition {
inline const LogStream& operator<<(const LogStream& stream, const TextPosition& value)
{
if (!value.is_valid())
return stream << "GTextPosition(Invalid)";
return stream << "GUI::TextPosition(Invalid)";
return stream << String::format("(%zu,%zu)", value.line(), value.column());
}

Expand Down
2 changes: 1 addition & 1 deletion Libraries/LibGUI/TextRange.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class TextRange {
inline const LogStream& operator<<(const LogStream& stream, const TextRange& value)
{
if (!value.is_valid())
return stream << "GTextRange(Invalid)";
return stream << "GUI::TextRange(Invalid)";
return stream << value.start() << '-' << value.end();
}

Expand Down

0 comments on commit 30964ba

Please sign in to comment.