ladybird/Libraries/LibGUI
Andreas Kling 3a01df9fb1 GWidget: Fix accidentally ignored set_relative_rect() with empty size
To protect the layout system from negative input values, we were using
an empty Rect() whenever an empty rect (width/height <= 0) was provided
to set_relative_rect().

This caused Terminal's scrollbar code to fail, since it relies on first
setting only the scrollbar width on startup, and then setting up the
proper geometry in response to the initial resize event.

Fixes #753.
2019-11-10 12:57:37 +01:00
..
GAboutDialog.cpp LibCore: Make CObject reference-counted 2019-09-22 00:25:25 +02:00
GAboutDialog.h LibGUI: Fix crash in GAboutDialog::show() 2019-09-29 20:37:02 +02:00
GAbstractButton.cpp LibCore: Remove CTimer::create() overloads in favor of construct() 2019-09-21 18:13:17 +02:00
GAbstractButton.h LibCore: Remove ObjectPtr in favor of RefPtr 2019-09-22 00:31:54 +02:00
GAbstractView.cpp LibGUI: Allow override the font on a per-index basis in GListView 2019-10-22 21:38:04 +02:00
GAbstractView.h LibGUI: Allow override the font on a per-index basis in GListView 2019-10-22 21:38:04 +02:00
GAction.cpp LibGUI: Let's say that Alt+Home is the "go home" keyboard shortcut 2019-10-08 21:45:29 +02:00
GAction.h LibGUI: Add "Go home" to GCommonActions 2019-10-06 22:00:04 +02:00
GActionGroup.cpp LibGUI: Add GActionGroup, a way to group a bunch of GActions. 2019-07-09 22:10:03 +02:00
GActionGroup.h LibGUI: Add GActionGroup, a way to group a bunch of GActions. 2019-07-09 22:10:03 +02:00
GApplication.cpp LibGUI: Rename GEventLoop.{cpp,h} => GWindowServerConnection 2019-11-08 11:40:25 +01:00
GApplication.h LibGUI: Added window creation callback to GApplication/GWindow 2019-10-25 15:29:19 +02:00
GBoxLayout.cpp Libraries: Create top level directory for libraries. 2019-07-04 16:16:50 +02:00
GBoxLayout.h Libraries: Create top level directory for libraries. 2019-07-04 16:16:50 +02:00
GButton.cpp LibGUI+TextEditor: Make GButton activate its action if present 2019-08-25 21:46:39 +02:00
GButton.h GButton: Make the constructors protected in favor of construct() 2019-09-21 19:37:38 +02:00
GCheckBox.cpp LibDraw: Introduce (formerly known as SharedGraphics.) 2019-07-18 10:18:16 +02:00
GCheckBox.h LibGUI: Convert GCheckBox to ObjectPtr 2019-09-21 18:58:48 +02:00
GClipboard.cpp LibGUI: Rename GEventLoop.{cpp,h} => GWindowServerConnection 2019-11-08 11:40:25 +01:00
GClipboard.h WindowServer+LibGUI: Store a "data type" with the clipboard content 2019-09-14 09:19:05 +02:00
GComboBox.cpp GButton: Convert most code to using ObjectPtr for GButton 2019-09-21 19:28:28 +02:00
GComboBox.h LibCore: Remove ObjectPtr in favor of RefPtr 2019-09-22 00:31:54 +02:00
GDesktop.cpp LibGUI: Rename GEventLoop.{cpp,h} => GWindowServerConnection 2019-11-08 11:40:25 +01:00
GDesktop.h AK: Rename <AK/AKString.h> to <AK/String.h> 2019-09-06 15:36:54 +02:00
GDialog.cpp LibCore+LibGUI: Remove GEventLoop and use CEventLoop everywhere 2019-09-22 20:50:39 +02:00
GDialog.h LibCore+LibGUI: Remove GEventLoop and use CEventLoop everywhere 2019-09-22 20:50:39 +02:00
GDirectoryModel.cpp LibGUI: Fix GDirectoryModel lifetime bug. 2019-10-03 08:17:41 +02:00
GDirectoryModel.h LibGUI: Fix GDirectoryModel lifetime bug. 2019-10-03 08:17:41 +02:00
GEvent.h WindowServer+LibGUI: Remove old "icon path" way of doing things. 2019-07-28 10:24:58 +02:00
GFilePicker.cpp GFilePicker: Allow overriding the window title for get_open_filepath() 2019-10-26 21:42:34 +02:00
GFilePicker.h GFilePicker: Allow overriding the window title for get_open_filepath() 2019-10-26 21:42:34 +02:00
GFileSystemModel.cpp FileManager+LibGUI: Fix two folder-related crashes (#569) 2019-09-17 09:26:10 +02:00
GFileSystemModel.h FileManager+LibGUI: Fix two folder-related crashes (#569) 2019-09-17 09:26:10 +02:00
GFontDatabase.cpp GFontDatabase: Iterate the font database in alphabetical order 2019-08-29 19:30:48 +02:00
GFontDatabase.h AK: Rename <AK/AKString.h> to <AK/String.h> 2019-09-06 15:36:54 +02:00
GFrame.cpp LibDraw: Introduce (formerly known as SharedGraphics.) 2019-07-18 10:18:16 +02:00
GFrame.h LibGUI: Convert GFrame to ObjectPtr 2019-09-21 19:21:36 +02:00
GGroupBox.cpp LibDraw: Introduce (formerly known as SharedGraphics.) 2019-07-18 10:18:16 +02:00
GGroupBox.h LibGUI: Convert GGroupBox to ObjectPtr 2019-09-21 16:13:33 +02:00
GIcon.cpp LibGUI: Remove use of copy_ref(). 2019-07-11 15:49:47 +02:00
GIcon.h LibDraw: Introduce (formerly known as SharedGraphics.) 2019-07-18 10:18:16 +02:00
GInputBox.cpp LibCore: Make CObject reference-counted 2019-09-22 00:25:25 +02:00
GInputBox.h LibCore: Remove ObjectPtr in favor of RefPtr 2019-09-22 00:31:54 +02:00
GItemView.cpp GItemView: Elide item names that won't fit 2019-09-15 15:47:26 +02:00
GItemView.h LibGUI: Convert GItemView to ObjectPtr 2019-09-21 15:47:58 +02:00
GJsonArrayModel.cpp AK: Allow JsonValue to store 64-bit integers internally 2019-10-29 16:36:50 +01:00
GJsonArrayModel.h GJsonArrayModel: Add hook for customizing the GModel::Role::Custom data 2019-08-14 20:30:18 +02:00
GLabel.cpp LibGUI: Fix move() of const StringView& 2019-09-16 07:49:43 +02:00
GLabel.h LibGUI: Make the GLabel constructors protected 2019-09-21 15:25:08 +02:00
GLayout.cpp LibCore+LibGUI: Allow inserting a CObject/GWidget before another 2019-11-05 20:41:27 +01:00
GLayout.h LibCore+LibGUI: Allow inserting a CObject/GWidget before another 2019-11-05 20:41:27 +01:00
GLazyWidget.cpp LibGUI: Add GLazyWidget, a convenience widget for lazily-built UI's 2019-10-02 20:24:29 +02:00
GLazyWidget.h LibGUI: Add GLazyWidget, a convenience widget for lazily-built UI's 2019-10-02 20:24:29 +02:00
GListView.cpp LibGUI: Allow override the font on a per-index basis in GListView 2019-10-22 21:38:04 +02:00
GListView.h LibGUI: Allow specifying the model column for GListView and GComboBox 2019-08-05 18:32:04 +02:00
GMargins.h Libraries: Create top level directory for libraries. 2019-07-04 16:16:50 +02:00
GMenu.cpp LibGUI: Rename GEventLoop.{cpp,h} => GWindowServerConnection 2019-11-08 11:40:25 +01:00
GMenu.h GMenu: Allow constructing without a name 2019-09-13 21:29:47 +02:00
GMenuBar.cpp LibGUI: Rename GEventLoop.{cpp,h} => GWindowServerConnection 2019-11-08 11:40:25 +01:00
GMenuBar.h LibGUI: Convert Vector<OwnPtr> to NonnullOwnPtrVector. 2019-07-24 09:13:06 +02:00
GMenuItem.cpp LibGUI: Rename GEventLoop.{cpp,h} => GWindowServerConnection 2019-11-08 11:40:25 +01:00
GMenuItem.h AK: Rename <AK/AKString.h> to <AK/String.h> 2019-09-06 15:36:54 +02:00
GMessageBox.cpp LibCore: Remove ObjectPtr in favor of RefPtr 2019-09-22 00:31:54 +02:00
GMessageBox.h GMessageBox: Hide the constructor and fix broken usages 2019-09-30 17:20:53 +02:00
GModel.cpp GModel: Remove selected_index() and set_selected_index() 2019-09-07 21:39:44 +02:00
GModel.h LibGUI: Allow override the font on a per-index basis in GListView 2019-10-22 21:38:04 +02:00
GModelEditingDelegate.h LibCore: Remove ObjectPtr in favor of RefPtr 2019-09-22 00:31:54 +02:00
GModelIndex.h LibGUI: Include internal_data() in GModelIndex LogStream output 2019-11-09 11:56:28 +01:00
GModelSelection.cpp GModelSelection: Add contains_row(int) and toggle(GModelIndex) 2019-09-07 19:33:58 +02:00
GModelSelection.h FileManager+LibGUI: Fix two folder-related crashes (#569) 2019-09-17 09:26:10 +02:00
GPainter.cpp Libraries: Create top level directory for libraries. 2019-07-04 16:16:50 +02:00
GPainter.h LibDraw: Introduce (formerly known as SharedGraphics.) 2019-07-18 10:18:16 +02:00
GProgressBar.cpp StylePainter: Move progress bar painting from GProgressBar to here 2019-08-14 20:31:46 +02:00
GProgressBar.h LibGUI: Convert GProgressBar to ObjectPtr 2019-09-21 16:31:12 +02:00
GRadioButton.cpp LibGUI: Add a simple GWidget class registry/factory 2019-11-10 12:57:37 +01:00
GRadioButton.h LibGUI: Add a simple GWidget class registry/factory 2019-11-10 12:57:37 +01:00
GResizeCorner.cpp GWidget: Add set_preferred_size(width, height) overload. 2019-07-20 22:39:24 +02:00
GResizeCorner.h LibGUI: Convert GTextBox, GTextEditor and GResizeCorner to ObjectPtr 2019-09-21 15:46:47 +02:00
GScrollableWidget.cpp LibGUI: Add GScrollableWidget::to_widget_position() 2019-10-09 21:16:49 +02:00
GScrollableWidget.h LibGUI: Add GScrollableWidget::to_widget_position() 2019-10-09 21:16:49 +02:00
GScrollBar.cpp LibGUI: Add a simple GWidget class registry/factory 2019-11-10 12:57:37 +01:00
GScrollBar.h LibGUI: Add a simple GWidget class registry/factory 2019-11-10 12:57:37 +01:00
GShortcut.cpp Libraries: Create top level directory for libraries. 2019-07-04 16:16:50 +02:00
GShortcut.h AK: Rename <AK/AKString.h> to <AK/String.h> 2019-09-06 15:36:54 +02:00
GSlider.cpp LibGUI: Add a simple GWidget class registry/factory 2019-11-10 12:57:37 +01:00
GSlider.h LibGUI: Add a simple GWidget class registry/factory 2019-11-10 12:57:37 +01:00
GSortingProxyModel.cpp GModel: Remove selected_index() and set_selected_index() 2019-09-07 21:39:44 +02:00
GSortingProxyModel.h GSortingProxyModel: Sort case insensitively by default (#441) 2019-08-11 18:11:25 +02:00
GSpinBox.cpp GButton: Convert most code to using ObjectPtr for GButton 2019-09-21 19:28:28 +02:00
GSpinBox.h LibCore: Remove ObjectPtr in favor of RefPtr 2019-09-22 00:31:54 +02:00
GSplitter.cpp GSplitter: Change default spacing to 3 pixels 2019-09-04 18:53:46 +02:00
GSplitter.h LibGUI: Convert GSplitter to ObjectPtr 2019-09-21 16:11:02 +02:00
GStackWidget.cpp GStackWidget: Add a notification hook for when the active widget changes. 2019-07-07 21:50:38 +02:00
GStackWidget.h LibCore: Remove ObjectPtr in favor of RefPtr 2019-09-22 00:31:54 +02:00
GStatusBar.cpp LibGUI: Add very limited multi-label support to GStatusBar 2019-10-24 09:57:27 +02:00
GStatusBar.h LibGUI: Add very limited multi-label support to GStatusBar 2019-10-24 09:57:27 +02:00
GTableView.cpp GTableView: Paint with white background when model-less 2019-11-09 00:41:00 +01:00
GTableView.h LibGUI: Convert GTableView to ObjectPtr 2019-09-21 16:03:59 +02:00
GTabWidget.cpp LibGUI: GTabWidget should not set children to have negative size 2019-10-23 19:51:09 +02:00
GTabWidget.h LibCore: Remove ObjectPtr in favor of RefPtr 2019-09-22 00:31:54 +02:00
GTextBox.cpp Libraries: Create top level directory for libraries. 2019-07-04 16:16:50 +02:00
GTextBox.h LibGUI: Make GTextBox non-final 2019-10-28 19:08:48 +01:00
GTextDocument.cpp LibGUI: Move text search functions from GTextEditor to GTextDocument 2019-11-01 21:31:06 +01:00
GTextDocument.h LibGUI: Move text search functions from GTextEditor to GTextDocument 2019-11-01 21:31:06 +01:00
GTextEditor.cpp LibGUI: Add a simple GWidget class registry/factory 2019-11-10 12:57:37 +01:00
GTextEditor.h LibGUI: Add a simple GWidget class registry/factory 2019-11-10 12:57:37 +01:00
GTextPosition.h LibGUI: Move GTextPosition and GTextRange LogStream<< to their headers 2019-11-03 09:57:14 +01:00
GTextRange.h LibGUI: Move GTextPosition and GTextRange LogStream<< to their headers 2019-11-03 09:57:14 +01:00
GToolBar.cpp LibGUI: Allow overriding the button size when constructing GToolBar 2019-11-09 00:41:00 +01:00
GToolBar.h LibGUI: Allow overriding the button size when constructing GToolBar 2019-11-09 00:41:00 +01:00
GTreeView.cpp LibGUI: Make GTreeView fire the on_selection hook 2019-11-09 11:57:08 +01:00
GTreeView.h LibGUI: Convert GTreeView to ObjectPtr 2019-09-21 16:06:43 +02:00
GVariant.cpp AK: Allow JsonValue to store 64-bit integers internally 2019-10-29 16:36:50 +01:00
GVariant.h LibGUI: Make it possible to wrap a Font in a GVariant 2019-10-22 21:37:11 +02:00
GWidget.cpp GWidget: Fix accidentally ignored set_relative_rect() with empty size 2019-11-10 12:57:37 +01:00
GWidget.h LibGUI: Add a simple GWidget class registry/factory 2019-11-10 12:57:37 +01:00
GWindow.cpp LibGUI: Rename GEventLoop.{cpp,h} => GWindowServerConnection 2019-11-08 11:40:25 +01:00
GWindow.h LibGUI: Make GWindow drive relayout and do it recursively 2019-10-26 12:28:54 +02:00
GWindowServerConnection.cpp LibGUI: Rename GEventLoop.{cpp,h} => GWindowServerConnection 2019-11-08 11:40:25 +01:00
GWindowServerConnection.h LibGUI: Rename GEventLoop.{cpp,h} => GWindowServerConnection 2019-11-08 11:40:25 +01:00
GWindowType.h WindowServer: Add a custom window type for Launcher 2019-07-14 00:06:47 +02:00
install.sh POSIX compliance: (most) shell scripts converted to generic shell 2019-11-03 09:26:22 +01:00
Makefile LibGUI: Rename GEventLoop.{cpp,h} => GWindowServerConnection 2019-11-08 11:40:25 +01:00