summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Applications/Browser/main.cpp2
-rw-r--r--Applications/Calculator/main.cpp2
-rw-r--r--Applications/Calendar/main.cpp2
-rw-r--r--Applications/DisplaySettings/main.cpp1
-rw-r--r--Applications/FontEditor/main.cpp2
-rw-r--r--Applications/Help/main.cpp2
-rw-r--r--Applications/HexEditor/main.cpp2
-rw-r--r--Applications/IRCClient/IRCAppWindow.cpp2
-rw-r--r--Applications/KeyboardMapper/main.cpp1
-rw-r--r--Applications/KeyboardSettings/main.cpp2
-rw-r--r--Applications/Piano/main.cpp2
-rw-r--r--Applications/PixelPaint/main.cpp2
-rw-r--r--Applications/QuickShow/main.cpp2
-rw-r--r--Applications/SoundPlayer/main.cpp2
-rw-r--r--Applications/SystemMonitor/main.cpp2
-rw-r--r--Applications/Terminal/main.cpp1
-rw-r--r--Applications/TextEditor/main.cpp2
17 files changed, 14 insertions, 17 deletions
diff --git a/Applications/Browser/main.cpp b/Applications/Browser/main.cpp
index ca5c606398..a9bf5769cd 100644
--- a/Applications/Browser/main.cpp
+++ b/Applications/Browser/main.cpp
@@ -121,7 +121,7 @@ int main(int argc, char** argv)
auto bookmarks_bar = Browser::BookmarksBarWidget::construct(Browser::bookmarks_filename, bookmarksbar_enabled);
auto window = GUI::Window::construct();
- window->set_rect(100, 100, 640, 480);
+ window->resize(640, 480);
window->set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/app-browser.png"));
window->set_title("Browser");
diff --git a/Applications/Calculator/main.cpp b/Applications/Calculator/main.cpp
index e61c498026..c2bf86ffeb 100644
--- a/Applications/Calculator/main.cpp
+++ b/Applications/Calculator/main.cpp
@@ -58,7 +58,7 @@ int main(int argc, char** argv)
auto window = GUI::Window::construct();
window->set_title("Calculator");
window->set_resizable(false);
- window->set_rect({ 300, 200, 254, 213 });
+ window->resize(254, 213);
window->set_main_widget<CalculatorWidget>();
diff --git a/Applications/Calendar/main.cpp b/Applications/Calendar/main.cpp
index 3e21c591df..e640964e72 100644
--- a/Applications/Calendar/main.cpp
+++ b/Applications/Calendar/main.cpp
@@ -58,7 +58,7 @@ int main(int argc, char** argv)
auto window = GUI::Window::construct();
window->set_title("Calendar");
- window->set_rect(20, 200, 596, 475);
+ window->resize(596, 475);
auto& calendar_widget = window->set_main_widget<CalendarWidget>();
window->show();
diff --git a/Applications/DisplaySettings/main.cpp b/Applications/DisplaySettings/main.cpp
index aa6a2c34ad..44cdeeb708 100644
--- a/Applications/DisplaySettings/main.cpp
+++ b/Applications/DisplaySettings/main.cpp
@@ -56,7 +56,6 @@ int main(int argc, char** argv)
auto window = GUI::Window::construct();
dbg() << "main window: " << window;
window->set_title("Display settings");
- window->move_to(100, 100);
window->resize(360, 390);
window->set_resizable(false);
window->set_main_widget(instance->root_widget());
diff --git a/Applications/FontEditor/main.cpp b/Applications/FontEditor/main.cpp
index 9dfbdd14b4..7668f06e01 100644
--- a/Applications/FontEditor/main.cpp
+++ b/Applications/FontEditor/main.cpp
@@ -86,7 +86,7 @@ int main(int argc, char** argv)
auto& font_editor_widget = window->set_main_widget<FontEditorWidget>(path, move(font));
window->set_rect({ point, { font_editor_widget.preferred_width(), font_editor_widget.preferred_height() } });
};
- set_edited_font(path, move(edited_font), { 50, 50 });
+ set_edited_font(path, move(edited_font), window->position());
auto menubar = GUI::MenuBar::construct();
diff --git a/Applications/Help/main.cpp b/Applications/Help/main.cpp
index 406bcab5d6..28dfb6b5cf 100644
--- a/Applications/Help/main.cpp
+++ b/Applications/Help/main.cpp
@@ -86,7 +86,7 @@ int main(int argc, char* argv[])
auto window = GUI::Window::construct();
window->set_icon(app_icon.bitmap_for_size(16));
window->set_title("Help");
- window->set_rect(300, 200, 570, 500);
+ window->resize(570, 500);
auto& widget = window->set_main_widget<GUI::Widget>();
widget.set_layout<GUI::VerticalBoxLayout>();
diff --git a/Applications/HexEditor/main.cpp b/Applications/HexEditor/main.cpp
index bedea6c209..32c986b58f 100644
--- a/Applications/HexEditor/main.cpp
+++ b/Applications/HexEditor/main.cpp
@@ -44,7 +44,7 @@ int main(int argc, char** argv)
auto window = GUI::Window::construct();
window->set_title("Hex Editor");
- window->set_rect(20, 200, 640, 400);
+ window->resize(640, 400);
auto& hex_editor_widget = window->set_main_widget<HexEditorWidget>();
diff --git a/Applications/IRCClient/IRCAppWindow.cpp b/Applications/IRCClient/IRCAppWindow.cpp
index be7afdcb00..9b447f0b33 100644
--- a/Applications/IRCClient/IRCAppWindow.cpp
+++ b/Applications/IRCClient/IRCAppWindow.cpp
@@ -58,7 +58,7 @@ IRCAppWindow::IRCAppWindow(String server, int port)
set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/app-irc-client.png"));
update_title();
- set_rect(200, 200, 600, 400);
+ resize(600, 400);
setup_actions();
setup_menus();
setup_widgets();
diff --git a/Applications/KeyboardMapper/main.cpp b/Applications/KeyboardMapper/main.cpp
index 67e265725d..65a99beccc 100644
--- a/Applications/KeyboardMapper/main.cpp
+++ b/Applications/KeyboardMapper/main.cpp
@@ -50,7 +50,6 @@ int main(int argc, char** argv)
window->set_icon(app_icon.bitmap_for_size(16));
window->set_main_widget<KeyboardMapperWidget>();
window->resize(775, 315);
- window->move_to(50, 50);
window->set_resizable(false);
window->show();
diff --git a/Applications/KeyboardSettings/main.cpp b/Applications/KeyboardSettings/main.cpp
index a79ce7f081..6f53644c44 100644
--- a/Applications/KeyboardSettings/main.cpp
+++ b/Applications/KeyboardSettings/main.cpp
@@ -90,7 +90,7 @@ int main(int argc, char** argv)
auto window = GUI::Window::construct();
window->set_title("Keyboard settings");
- window->set_rect(200, 200, 300, 70);
+ window->resize(300, 70);
window->set_icon(app_icon.bitmap_for_size(16));
auto& root_widget = window->set_main_widget<GUI::Widget>();
diff --git a/Applications/Piano/main.cpp b/Applications/Piano/main.cpp
index 2ed6c0f0f7..cfcee1a709 100644
--- a/Applications/Piano/main.cpp
+++ b/Applications/Piano/main.cpp
@@ -54,7 +54,7 @@ int main(int argc, char** argv)
auto window = GUI::Window::construct();
auto& main_widget = window->set_main_widget<MainWidget>(track_manager);
window->set_title("Piano");
- window->set_rect(90, 90, 840, 600);
+ window->resize(840, 600);
window->set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/app-piano.png"));
window->show();
diff --git a/Applications/PixelPaint/main.cpp b/Applications/PixelPaint/main.cpp
index d54052f612..24bcffa377 100644
--- a/Applications/PixelPaint/main.cpp
+++ b/Applications/PixelPaint/main.cpp
@@ -71,7 +71,7 @@ int main(int argc, char** argv)
auto window = GUI::Window::construct();
window->set_title("PixelPaint");
- window->set_rect(40, 100, 950, 570);
+ window->resize(950, 570);
window->set_icon(app_icon.bitmap_for_size(16));
auto& horizontal_container = window->set_main_widget<GUI::Widget>();
diff --git a/Applications/QuickShow/main.cpp b/Applications/QuickShow/main.cpp
index 2d00285421..61d699d3b6 100644
--- a/Applications/QuickShow/main.cpp
+++ b/Applications/QuickShow/main.cpp
@@ -69,7 +69,7 @@ int main(int argc, char** argv)
auto window = GUI::Window::construct();
window->set_double_buffering_enabled(true);
- window->set_rect(200, 200, 300, 200);
+ window->resize(300, 200);
window->set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/filetype-image.png"));
window->set_title("QuickShow");
diff --git a/Applications/SoundPlayer/main.cpp b/Applications/SoundPlayer/main.cpp
index c90fff2794..66fab01b71 100644
--- a/Applications/SoundPlayer/main.cpp
+++ b/Applications/SoundPlayer/main.cpp
@@ -61,7 +61,7 @@ int main(int argc, char** argv)
auto window = GUI::Window::construct();
window->set_title("SoundPlayer");
window->set_resizable(false);
- window->set_rect(300, 300, 350, 140);
+ window->resize(350, 140);
window->set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/app-sound-player.png"));
auto menubar = GUI::MenuBar::construct();
diff --git a/Applications/SystemMonitor/main.cpp b/Applications/SystemMonitor/main.cpp
index ac62ddf1bc..ddc56bfd66 100644
--- a/Applications/SystemMonitor/main.cpp
+++ b/Applications/SystemMonitor/main.cpp
@@ -153,7 +153,7 @@ int main(int argc, char** argv)
auto window = GUI::Window::construct();
window->set_title("System Monitor");
- window->set_rect(20, 200, 680, 400);
+ window->resize(680, 400);
auto& keeper = window->set_main_widget<GUI::Widget>();
keeper.set_layout<GUI::VerticalBoxLayout>();
diff --git a/Applications/Terminal/main.cpp b/Applications/Terminal/main.cpp
index 85ccb58cc9..7d1aee8712 100644
--- a/Applications/Terminal/main.cpp
+++ b/Applications/Terminal/main.cpp
@@ -255,7 +255,6 @@ int main(int argc, char** argv)
terminal.on_title_change = [&](auto& title) {
window->set_title(title);
};
- window->move_to(300, 300);
terminal.apply_size_increments_to_window(*window);
window->show();
window->set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/app-terminal.png"));
diff --git a/Applications/TextEditor/main.cpp b/Applications/TextEditor/main.cpp
index 580daa20d5..56026bff07 100644
--- a/Applications/TextEditor/main.cpp
+++ b/Applications/TextEditor/main.cpp
@@ -55,7 +55,7 @@ int main(int argc, char** argv)
auto window = GUI::Window::construct();
window->set_title("Text Editor");
- window->set_rect(20, 200, 640, 400);
+ window->resize(640, 400);
auto& text_widget = window->set_main_widget<TextEditorWidget>();