Commit graph

85 commits

Author SHA1 Message Date
Benoît Minisini
0cd8047efa Closing the main window when it is persistent correctly quits the application. Reparenting a window correctly triggers automatic arrangement.
[GB.GTK]
* BUG: Reparenting a window correctly triggers automatic arrangement.
* BUG: Closing the main window when it is persistent correctly quits the application.

[GB.GTK3]
* BUG: Reparenting a window correctly triggers automatic arrangement.
* BUG: Closing the main window when it is persistent correctly quits the application.
2022-05-14 20:10:19 +02:00
Benoît Minisini
efe474719a Don't recreate the view when clearing it, it segfaults on Wayland. Just fill it with a void page.
[GB.GTK3.WEBVIEW]
* BUG: Don't recreate the view when clearing it, it segfaults on Wayland. Just fill it with a void page.
2022-05-10 14:47:11 +02:00
gambas
34846dbe31 Fix use of GB.Wait().
[GB.GTK3.WEBVIEW]
* BUG: Fix use of GB.Wait().

[GB.QT5.WEBVIEW]
* BUG: Fix use of GB.Wait().
2022-04-13 11:38:01 +02:00
gambas
1c985ac3ad Allow calling 'WAIT' alone during a keyboard event handler.
[GB.GTK]
* BUG: Allow calling 'WAIT' alone during a keyboard event handler.

[GB.GTK3]
* BUG: Allow calling 'WAIT' alone during a keyboard event handler.
2022-04-12 20:00:06 +02:00
gambas
41ee2c8f9c Remove now useless ComboBox source code.
[GB.GTK]
* NEW: Remove now useless ComboBox source code.

[GB.GTK3]
* NEW: Remove now useless ComboBox source code.

[GB.QT4]
* NEW: Remove now useless ComboBox source code.

[GB.QT5]
* NEW: Remove now useless ComboBox source code.
2022-04-12 13:32:10 +02:00
gambas
4b6c6e2d0f Remove the native ComboBox.
[GB.GTK]
* NEW: UserControl._Focus is a new property that defines if a UserControl can take focus.
* BUG: UserControl_Draw() event handler is called before drawing the control children.
* NEW: Remove the native ComboBox.

[GB.GTK3]
* NEW: UserControl._Focus is a new property that defines if a UserControl can take focus.
* BUG: UserControl_Draw() event handler is called before drawing the control children.
* NEW: Remove the native ComboBox.

[GB.QT4]
* NEW: UserControl._Focus is a new property that defines if a UserControl can take focus.
* NEW: Style methods draw focus and tab focus.
* NEW: Remove the native ComboBox.

[GB.QT5]
* NEW: UserControl._Focus is a new property that defines if a UserControl can take focus.
* NEW: Style methods draw focus and tab focus.
* NEW: Remove the native ComboBox.
2022-04-12 13:06:38 +02:00
gambas
2742b48afa Support for "Wait 0" syntax. Fix support of "Wait" alone syntax in GTK+ components.
[GB.GTK]
* NEW: Support for "Wait 0" syntax.
* BUG: Fix support of "Wait" alone syntax.

[GB.GTK3]
* NEW: Support for "Wait 0" syntax.
* BUG: Fix support of "Wait" alone syntax.

[GB.SDL2]
* NEW: Support for "Wait 0" syntax.

[GB.QT4]
* NEW: Support for "Wait 0" syntax.

[GB.QT5]
* NEW: Support for "Wait 0" syntax.
2022-04-09 19:11:56 +02:00
gambas
b2c199e4fc The WAIT instruction alone now ignores input events like Qt components.
[GB.GTK]
* BUG: The WAIT instruction alone now ignores input events like Qt components.

[GB.GTK3]
* BUG: The WAIT instruction alone now ignores input events like Qt components.
2022-04-08 23:06:47 +02:00
Laurent Carlier
2fc17bacba
gb.gtk3.opengl: in some circumstances, opengl component needs linking with gl libraries
[GB.GTK3.OPENGL]
* BUG: Add linking against openGL libraries.
2022-03-13 13:57:14 +01:00
gambas
13df084748 Text direction can now be specified at control level.
[GB.GTK]
* NEW: Control.Direction is a new property that allows to specify the text direction of the control.
* NEW: Control.RightToLeft is a new property that returns if a control is right-to-left oriented.

[GB.GTK3]
* NEW: Control.Direction is a new property that allows to specify the text direction of the control.
* NEW: Control.RightToLeft is a new property that returns if a control is right-to-left oriented.

[GB.QT4]
* NEW: Control.Direction is a new property that allows to specify the text direction of the control.
* NEW: Control.RightToLeft is a new property that returns if a control is right-to-left oriented.

[GB.QT5]
* NEW: Control.Direction is a new property that allows to specify the text direction of the control.
* NEW: Control.RightToLeft is a new property that returns if a control is right-to-left oriented.
2022-01-22 16:27:17 +01:00
gambas
0b3d48b698 Check if the event loop must be stopped each time a timer is disabled.
[GB.GTK]
* BUG: Check if the event loop must be stopped each time a timer is disabled.

[GB.GTK3]
* BUG: Check if the event loop must be stopped each time a timer is disabled.

[GB.QT4]
* BUG: Check if the event loop must be stopped each time a timer is disabled.

[GB.QT5]
* BUG: Check if the event loop must be stopped each time a timer is disabled.
2022-01-14 19:17:09 +01:00
gambas
4ba0b9ad3c Don't quit if there is still one active timer.
[GB.GTK]
* NEW: Don't quit if there is still one active timer.

[GB.GTK3]
* NEW: Don't quit if there is still one active timer.

[GB.QT4]
* NEW: Don't quit if there is still one active timer.

[GB.QT5]
* NEW: Don't quit if there is still one active timer.
2022-01-14 12:34:40 +01:00
gambas
403ab00283 Fix font dependency of global application font.
[GB.GTK3]
* BUG: Fix font dependency of global application font.
2022-01-14 04:17:42 +01:00
gambas
a6efc1ae3d Clip the drawing of container children, as GTK+3 does not do that by default.
[GB.GTK3]
* BUG: Clip the drawing of container children, as GTK+3 does not do that by default.
2021-12-12 22:42:53 +01:00
gambas
4b2d0548a8 Forgot to commit the fix about window refresh priority.
[GB.GTK3]
* BUG: Forgot to commit the fix about window refresh priority.
2021-10-28 01:29:53 +02:00
gambas
6565b5e131 Try again to support both webkit2gtk 4.0 and 4.1.
[GB.GTK3]
* BUG: Try again to support both webkit2gtk 4.0 and 4.1.
2021-10-08 16:39:20 +02:00
gambas
73c22c5038 Try to support both webkit2gtk 4.0 and 4.1.
[GB.GTK3]
* BUG: Try to support both webkit2gtk 4.0 and 4.1.
2021-10-04 22:18:05 +02:00
gambas
f7cd9542c8 'Desktop.Type' property is now implemented in 'gb.gui.base'.
[GB.GTK]
* NEW: 'Desktop.Type' property is now implemented in 'gb.gui.base'.

[GB.GTK3]
* NEW: 'Desktop.Type' property is now implemented in 'gb.gui.base'.

[GB.QT4]
* NEW: 'Desktop.Type' property is now implemented in 'gb.gui.base'.

[GB.QT5]
* NEW: 'Desktop.Type' property is now implemented in 'gb.gui.base'.
2021-08-18 21:53:06 +02:00
gambas
46cdd482dc Fix startup initialization.
[GB.GTK3]
* BUG: Fix startup initialization.
2021-07-23 23:52:15 +02:00
gambas
212d0bdcb5 Forgot to comment a debugging variable declaration.
[GB.GTK3.WEBVIEW]
* BUG: Forgot to comment a debugging variable declaration.
2021-05-24 21:53:59 +02:00
gambas
866b512e0e Try to make Qt5 and GTK+3 webview raise their events the same way when loading pages.
[GB.GTK3.WEBVIEW]
* BUG: Try to make Qt5 and GTK+3 webview raise their events the same way when loading pages.

[GB.QT5.WEBVIEW]
* BUG: Try to make Qt5 and GTK+3 webview raise their events the same way when loading pages.
2021-05-24 21:33:57 +02:00
gambas
b01f603a4c Display the warning about calling the event loop during a keyboard event once.
[GB.GTK]
* NEW: Display the warning about calling the event loop during a keyboard event once.

[GB.GTK3]
* NEW: Display the warning about calling the event loop during a keyboard event once.

[GB.QT4]
* NEW: Display the warning about calling the event loop during a keyboard event once.

[GB.QT5]
* NEW: Display the warning about calling the event loop during a keyboard event once.
2021-05-14 01:19:29 +02:00
gambas
61ff5b9091 Disable a setting flag deprecated in WebKitGTK >= 2.32.0.
[GB.GTK3.WEBVIEW]
* BUG: Disable a setting flag deprecated in WebKitGTK >= 2.32.0.
2021-05-12 14:22:04 +02:00
gambas
25edb08f68 The GTK+3 GLArea control now works, by forcing the legacy mode.
[GB.GTK3.OPENGL]
* BUG: GLArea: Force legacy mode (OpenGL < 3.2), unless the 'GDK_GL' environment variale is already defined.
* BUG: GlArea: The control can now take the focus.
2021-05-02 00:31:54 +02:00
gambas
42673b0b2c New component that provides GlArea OpenGL control for 'gb.gtk3'. Does not work yet.
[GB.GTK3.OPENGL]
* NEW: New component that provides GlArea OpenGL control for 'gb.gtk3'. Does not work yet.
2021-04-30 21:44:30 +02:00
gambas
28ce6efc4c Don't remove file descriptors watches in the 'quit' hook to behave like Qt components.
[GB.GTK]
* BUG: Don't remove file descriptors watches in the 'quit' hook to behave like Qt components.

[GB.GTK3]
* BUG: Don't remove file descriptors watches in the 'quit' hook to behave like Qt components.
2021-04-30 00:33:20 +02:00
gambas
8002a21b1d Fix deferred arrangement because of a weird GTK+3 behaviour (2).
[GB.GTK3]
* BUG: Fix deferred arrangement because of a weird GTK+3 behaviour (2).
2021-04-18 23:47:56 +02:00
gambas
a41ae3d0bf WAIT instruction now processes all pending events.
[GB.GTK3]
* BUG: WAIT instruction now processes all pending events.
2021-03-30 13:17:07 +02:00
gambas
d65bd209d3 Remove Label and TextLabel controls. Support for UserControl_Font() handler. Some text size computation fixes.
[GB.GTK]
* NEW: Remove Label and TextLabel controls.
* NEW: Call UserControl_Font() handler when the UserControl font changes.
* BUG: Font size computation takes into account Pango ink rectangle.

[GB.GTK3]
* NEW: Remove Label and TextLabel controls.
* NEW: Call UserControl_Font() handler when the UserControl font changes.
* BUG: Font size computation takes into account Pango ink rectangle.

[GB.QT4]
* NEW: Remove Label and TextLabel controls.
* NEW: Call UserControl_Font() handler when the UserControl font changes.
* BUG: Border drawing routine now preserves paint color.
* BUG: All Paint text routines now workaround the font assignment bug.

[GB.QT5]
* NEW: Remove Label and TextLabel controls.
* NEW: Call UserControl_Font() handler when the UserControl font changes.
* BUG: Border drawing routine now preserves paint color.
* BUG: All Paint text routines now workaround the font assignment bug.
2021-03-06 13:17:35 +01:00
gambas
e0132ab1f2 Fix control enumerations.
[GB.GTK]
* BUG: Fix enumeration of all application controls.
* BUG: Fix enumeration of the controls of a specific window.

[GB.GTK3]
* BUG: Fix enumeration of all application controls.
* BUG: Fix enumeration of the controls of a specific window.
2021-03-06 13:17:35 +01:00
gambas
3d3fff17f7 Start to rework top-level window layout management.
[GB.GTK]
* BUG: Start to rework top-level window layout management.

[GB.GTK3]
* BUG: Start to rework top-level window layout management.
2021-03-06 13:17:35 +01:00
gambas
d900937949 Add an Orientation property to ScrollBar and Sldider that allows to define the orientation explicitly.
[GB.FORM]
* NEW: SliderBox: Use the new Slider.Orientation property.

[GB.GUI.BASE]
* NEW: ScrollArea: Use the new ScrollBar.Orientation property.

[GB.GTK]
* NEW: ScrollBar: Add orientation constants.
* NEW: ScrollBar: Orientation is a new property that allows to define the orientation explicitly.
* NEW: Slider: Orientation is a new property that allows to define the orientation explicitly.

[GB.GTK3]
* NEW: ScrollBar: Add orientation constants.
* NEW: ScrollBar: Orientation is a new property that allows to define the orientation explicitly.
* NEW: Slider: Orientation is a new property that allows to define the orientation explicitly.

[GB.QT4]
* NEW: ScrollBar: Add orientation constants.
* NEW: ScrollBar: Orientation is a new property that allows to define the orientation explicitly.
* NEW: Slider: Orientation is a new property that allows to define the orientation explicitly.

[GB.QT5]
* NEW: ScrollBar: Add orientation constants.
* NEW: ScrollBar: Orientation is a new property that allows to define the orientation explicitly.
* NEW: Slider: Orientation is a new property that allows to define the orientation explicitly.
2021-02-22 14:54:52 +01:00
gambas
f94a927e9c WebView: Implementing the Menu event automatically disables the default popup menu.
[GB.GTK3.WEBVIEW]
* NEW: WebView: Implementing the Menu event automatically disables the default popup menu.

[GB.QT4.WEBVIEW]
* NEW: WebView: Implementing the Menu event automatically disables the default popup menu.

[GB.QT5.WEBVIEW]
* NEW: WebView: Implementing the Menu event automatically disables the default popup menu.
2021-01-26 16:28:47 +01:00
gambas
b39e26a059 WebView: ExecJavascript() is a new method to run some javascript code in the browser and get the result.
[GB.GTK3.WEBVIEW]
* NEW: WebView: ExecJavascript() is a new method to run some javascript code in the browser and get the result.

[GB.QT4.WEBVIEW]
* NEW: WebView: ExecJavascript() is a new method to run some javascript code in the browser and get the result.

[GB.QT5]
* BUG: Forgot to implement the QT.GetDesktopScale() API.

[GB.QT5.WEBVIEW]
* NEW: WebView: ExecJavascript() is a new method to run some javascript code in the browser and get the result.
2021-01-25 08:05:25 +01:00
gambas
f588c83fda PictureBox now uses the new UserControl Draw pseudo-event and Frame container in now implemented in Gambas.
[GB.DRAW]
* NEW: Add PaintExtents W and H properties as synonymous of Width and Height.

[GB.GUI.BASE]
* NEW: PictureBox now uses the new UserControl Draw pseudo-event.
* NEW: Frame container in now implemented in Gambas.

[GB.GTK]
* NEW: Frame container in now implemented in Gambas.
* BUG: Style drawing routines now work correctly on UserControl.

[GB.GTK3]
* NEW: Frame container in now implemented in Gambas.

[GB.QT4]
* NEW: Frame container in now implemented in Gambas.

[GB.QT5]
* NEW: Frame container in now implemented in Gambas.
* BUG: Do not activate windows on Wayland, this is not supported.
2021-01-23 23:30:36 +01:00
gambas
bc170a2317 UserControl now can paint itself through a UserControl_Draw method.
[GB.GTK]
* NEW: UserControl now can paint itself through a UserControl_Draw method.

[GB.GTK3]
* NEW: UserControl now can paint itself through a UserControl_Draw method.
* BUG: Remove debugging message.

[GB.GUI.BASE]
* NEW: Separator: Use the new painting pseudo-event of UserControl.

[GB.QT4]
* NEW: UserControl now can paint itself through a UserControl_Draw method.

[GB.QT5]
* NEW: UserControl now can paint itself through a UserControl_Draw method.
2021-01-23 02:44:46 +01:00
gambas
b4ab1027d8 Separator is now a Gambas-made control.
[GB.GTK]
* NEW: Remove Separator control.
* BUG: Fix minimum size computation.

[GB.GTK3]
* NEW: Remove Separator control.
* BUG: Fix minimum size computation.

[GB.GUI.BASE]
* NEW: Separator is now a Gambas-made control.

[GB.QT4]
* NEW: Remove Separator control.

[GB.QT5]
* NEW: Remove Separator control.
2021-01-22 23:53:27 +01:00
gambas
01a666387f WebView: Finish event is correctly raised when the loaded URI is in the current page.
[GB.GTK3.WEBVIEW]
* BUG: WebView: Finish event is correctly raised when the loaded URI is in the current page.

[GB.QT4.WEBVIEW]
* BUG: WebView: Finish event is correctly raised when the loaded URI is in the current page.
* BUG: WebView: Start event is correctly raised.
* BUG: WebView: Cancelling the Start event now should cancel the load.

[GB.QT5.WEBVIEW]
* BUG: WebView: Finish event is correctly raised when the loaded URI is in the current page.
2021-01-22 21:04:56 +01:00
gambas
1c3e02257c Signal handlers are now checked only if requested explicitly by a component.
[INTERPRETER]
* OPT: Signal handlers are now checked only if requested explicitly by a component.

[GB.GTK]
* NEW: Request SIGCHLD handler check.

[GB.GTK3]
* NEW: Request SIGCHLD handler check.
2021-01-21 01:49:38 +01:00
gambas
d2349cdb6c Fix GTK+3 'get_preferred_height_and_baseline_for_width' overriding.
[GB.GTK3]
* BUG: Fix GTK+3 'get_preferred_height_and_baseline_for_width' overriding.
2021-01-18 23:01:07 +01:00
gambas
ab307322bf Do not crash if expanded widgets change during arrangement. Fix GTK+ window centering method.
[GB.GTK]
* BUG: Do not crash if expanded widgets change during arrangement.

[GB.GTK3]
* BUG: Remove platform-specific window centering method.
* BUG: Do not crash if expanded widgets change during arrangement.

[GB.QT4]
* BUG: Do not crash if expanded widgets change during arrangement.

[GB.QT5]
* BUG: Do not crash if expanded widgets change during arrangement.
2021-01-18 22:27:33 +01:00
gambas
8d652ed193 GTK+ fixes, especially for Wayland.
[GB.GTK]
* NEW: Add minimum size to buttons, TextBox and Slider controls.
* BUG: Handle key events before global shortcuts only for GtkEntry and GtkTextView widgets.
* BUG: Fix client decoration size computation.
* BUG: The size of a window is now always the size of its contents, without the decorations.

[GB.GTK3]
* NEW: Add minimum size to buttons, TextBox and Slider controls.
* BUG: Handle key events before global shortcuts only for GtkEntry and GtkTextView widgets.
* BUG: Fix client decoration size computation.
* BUG: The size of a window is now always the size of its contents, without the decorations.
* NEW: Centering a window is a now platform-specific.
2021-01-18 21:55:07 +01:00
gambas
a0a2d0379c MovieBox is now implemented in Gambas, through a new Animation class.
[DEVELOPMENT ENVIRONMENT]
* NEW: Support for the MovieBox Animation property.

[GB.GTK]
* NEW: Animation is a new class that represents an animated image.
* NEW: MovieBox has been removed.

[GB.GTK3]
* NEW: Animation is a new class that represents an animated image.
* NEW: MovieBox has been removed.

[GB.GUI.BASE]
* NEW: MovieBox is now implemented in Gambas.

[GB.QT4]
* NEW: Animation is a new class that represents an animated image.
* NEW: MovieBox has been removed.

[GB.QT5]
* NEW: Animation is a new class that represents an animated image.
* NEW: MovieBox has been removed.
2021-01-09 10:24:56 +01:00
gambas
a0b914a084 Do not include wayland specific includes if GDK_WINDOWING_WAYLAND is not defined.
[GB.GTK3]
* BUG: Do not include wayland specific includes if GDK_WINDOWING_WAYLAND is not defined.
2021-01-04 02:49:54 +01:00
gambas
cf1adc8238 Request Webkit2Gtk >= 2.20 instead of 2.28.
[GB.GTK3.WEBVIEW]
* NEW: Request Webkit2Gtk >= 2.20 instead of 2.28.
2021-01-02 11:35:02 +01:00
gambas
e4da796e5b WebView: Fix declaration of WebView.Settings property.
[GB.GTK3.WEBVIEW]
* BUG: WebView: Fix declaration of WebView.Settings property.
2020-12-29 21:36:20 +01:00
gambas
2a26a5d8b0 The 'GB_GUI_PLATFORM' environment variable allows to override the default platform.
[GB.GTK3]
* NEW: The 'GB_GUI_PLATFORM' environment variable allows to override the default platform.

[GB.QT5]
* NEW: The 'GB_GUI_PLATFORM' environment variable allows to override the default platform.
2020-12-22 01:36:13 +01:00
gambas
d12c57041c Fix platform component detection.
[GB.GTK3]
* BUG: Fix platform component detection.
2020-12-21 23:04:12 +01:00
Benoît Minisini
7d81756ead Some fixes in merge with master.
[GB.GTK3]
* BUG: Some fixes in merge with master.
2020-12-21 06:35:40 +01:00
Benoît Minisini
eefb03c5ba Merge branch 'wayland' of https://gitlab.com/gambas/gambas into wayland 2020-12-21 05:19:07 +01:00