summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* canvas: Rename GtkCanvasVec2 to GtkCanvasVectorBenjamin Otte2022-07-0512-519/+518
| | | | | | | I want to export it as public API, so better choose a nice name. I also want to split the public API from the implementation details, so this file goes to gtkcanvasvectorimpl.c for now.
* canvas: Change the way boxes workBenjamin Otte2022-07-054-36/+48
| | | | | | | | Instead of normalized rectangles, make eval() return unnormalized ones. This means that we need to normalize before allocating - but it also means we can scale(-1) the widget if we want to. That is not implemented yet, but we can.
* canvas: Add variables to canvasitemsBenjamin Otte2022-07-058-36/+174
| | | | This allows referencing the actual allocation as well as the bounds.
* canvas: Redo points and sizesBenjamin Otte2022-07-0515-774/+695
| | | | | | | | | | | | | | | Instead of lots of special cases, just have 3 types: * sums * constants * variables And implement it in a new GtkCanvasVec2 struct and use it for points and sizes. Simplifies te code a lot. Requires some changes though so that now all variables are preinitialized instead of queried on demand.
* canvas: Add gtk_canvas_lookup_item()Benjamin Otte2022-07-042-7/+48
|
* canvas: Handle oversized widgets properlyBenjamin Otte2022-07-041-4/+13
| | | | | If a widget needs more size than given via its bounds, expand it according to its origin.
* canvasbox: Add gettersBenjamin Otte2022-07-042-0/+37
| | | | | Since the box is no longer specialized, it's easy to query it. Make that happen.
* canvasbox: Get rid of specializingBenjamin Otte2022-07-045-174/+130
| | | | | A box is a point, a size and an origin. All the specializing shall happen in size and point.
* demos: Add a puzzle demoBenjamin Otte2022-06-293-33/+94
|
* gtk-demo: Fix typo in commentBenjamin Otte2022-06-291-1/+1
|
* canvas: Add gtk_canvas_get_viewport_size()Benjamin Otte2022-06-295-3/+105
| | | | | | A meek attempt at exporting numbers into the sizing magic. Update the demo to really center the label now
* demos: Add a Canvas Hello World demoBenjamin Otte2022-06-293-0/+81
|
* Add GtkCanvasBenjamin Otte2022-06-2919-0/+2428
| | | | | | | A canvas is awidget that allows placing widgets onto the canvas using sophisticated relationships expressed via points, sizes and boxes. This is all very experimental.
* Merge branch 'wip/jimmac/selectable-labels' into 'main'Matthias Clasen2022-06-291-1/+1
|\ | | | | | | | | | | | | theme: selectable labels legibility Closes #5017 See merge request GNOME/gtk!4840
| * theme: selectable labels legibilityJakub Steiner2022-06-291-1/+1
|/ | | | | | - don't set fg color for selections Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/5017
* Merge branch 'matthiasc/for-main' into 'main'Matthias Clasen2022-06-291-4/+3
|\ | | | | | | | | gtk-demo: Cosmetics See merge request GNOME/gtk!4839
| * gtk-demo: CosmeticsMatthias Clasen2022-06-231-4/+3
| | | | | | | | Tweak the complicated textview demo a bit.
* | Merge branch 'testdatatable' into 'main'Benjamin Otte2022-06-292-1/+299
|\ \ | | | | | | | | | | | | tests: Add testdatatable See merge request GNOME/gtk!4838
| * | tests: Add testdatatableIvan Molodetskikh2022-06-282-1/+299
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | Add a GtkColumnView scrolling performance test similar to the one used previously in https://gitlab.gnome.org/GNOME/gtk/-/issues/3334. The test creates a table with 20 columns and 10,000 rows and scrolls it to a random position every frame, while measuring the frame times. There is a commandline flag to pick the cell widget between none (for benchmarking raw column view scrolling) and various label types. There is also a commandline switch to disable automatic scrolling in case a manual assessment is desired. Finally, there's an argument for controlling the number of columns.
* | Merge branch 'ebassi/ci-publish-doc-fix' into 'main'Emmanuele Bassi2022-06-281-0/+1
|\ \ | | | | | | | | | | | | ci: Force the fedora image for the publish-docs job See merge request GNOME/gtk!4837
| * | ci: Force the fedora image for the publish-docs jobEmmanuele Bassi2022-06-281-0/+1
|/ / | | | | | | | | Otherwise every CI runner might decide to use a different default image, and we'll end up on one that doesn't have curl.
* | Merge branch 'wip/otte/for-main' into 'main'Benjamin Otte2022-06-288-231/+310
|\ \ | | | | | | | | | | | | Rework listitemfactory See merge request GNOME/gtk!4835
| * | signallistitemfactory: Update signal prototypeBenjamin Otte2022-06-281-15/+17
| | | | | | | | | | | | | | | | | | | | | | | | I'm not sure this is API safe, but it is necessary if we want to support section items and canvas items. If it's deemed API-unstable, we have to copy this object and deprecate this one.
| * | listitemfactory: Make this callback-basedBenjamin Otte2022-06-287-185/+254
| | | | | | | | | | | | | | | | | | | | | | | | This way, we no longer prescribe the use of either GtkListItem or GtkListItemWidget. This means we can use it in other places, such as for custom section header objects or with my Canvas ideas.
| * | picture: Clear the paintable properlyBenjamin Otte2022-06-281-31/+39
| | | | | | | | | | | | | | | Add a clear() function and call it from dispose() instead of using set_paintable().
* | | Merge branch 'template-signals' into 'main'Emmanuele Bassi2022-06-281-1/+1
|\ \ \ | | | | | | | | | | | | | | | | Force quark creation for templates See merge request GNOME/gtk!4836
| * | | Force quark creation for templatesMaximiliano Sandoval R2022-06-281-1/+1
| | | |
* | | | Update Turkish translationSabri Ünal2022-06-281-391/+236
| | | |
* | | | Update Persian translationDanial Behzadi2022-06-281-89/+113
| | | |
* | | | Update Russian translationAleksandr Melman2022-06-251-17/+21
| | | |
* | | | Update Occitan translationQuentin PAGÈS2022-06-251-1631/+1190
| |/ / |/| |
* | | Merge branch 'wip/otte/for-main' into 'main'Benjamin Otte2022-06-242-26/+20
|\ \ \ | | | | | | | | | | | | | | | | gdk: Replace GTK_USE_PORTAL env var with GDK_DEBUG flag See merge request GNOME/gtk!4829
| * | | gdk: Replace GTK_USE_PORTAL env var with GDK_DEBUG flagBenjamin Otte2022-06-242-26/+20
|/ / / | | | | | | | | | | | | | | | | | | It's a debug flag, so make it clear that it is one. Related: Clowns on the Arch wiki on https://wiki.archlinux.org/title/Uniform_look_for_Qt_and_GTK_applications#Consistent_file_dialog
* | | Merge branch 'alatiera/doc-type' into 'main'Matthias Clasen2022-06-231-1/+1
|\ \ \ | | | | | | | | | | | | | | | | shortcutcontroller: fix typo in property docs See merge request GNOME/gtk!4827
| * | | shortcutcontroller: fix typo in property docsJordan Petridis2022-06-231-1/+1
| | | | | | | | | | | | | | | | followup of d7dae84af248bc198601cad89441724c5345504d
* | | | Update Portuguese translationHugo Carvalho2022-06-231-15/+18
|/ / /
* | | Merge branch 'bad-popup-extents' into 'main'Matthias Clasen2022-06-231-4/+9
|\ \ \ | |_|/ |/| | | | | | | | [x11] Fix coordinate space of rect in gdk_x11_surface_get_frame_extents when called on popups. See merge request GNOME/gtk!4820
| * | [x11] Fix coordinate space of rect in gdk_x11_surface_get_frame_extents when ↵Emilio Cobos Álvarez2022-06-201-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | called on popups. If we take the early return we don't unscale this at the bottom of the function, causing wrong coordinates in HiDPI screens. This bug also affects GTK3 (I noticed this running Firefox tests on X).
* | | Merge branch 'wip/jtojnar/demo-pickers-no-dirs' into 'main'Matthias Clasen2022-06-231-1/+1
|\ \ \ | | | | | | | | | | | | | | | | gtk-demo: Remove mention of directories in picker examples See merge request GNOME/gtk!4825
| * | | gtk-demo: Remove mention of directories in picker examplesJan Tojnar2022-06-221-1/+1
| | | | | | | | | | | | | | | | Those were removed in https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/2909.
* | | | Update Basque translationAsier Sarasua Garmendia2022-06-221-792/+970
| | | |
* | | | Update Ukrainian translationYuri Chornoivan2022-06-221-20/+29
| | | |
* | | | Merge branch 'wip/otte/inspector-inspector' into 'main'Matthias Clasen2022-06-224-18/+49
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | inspector: Inspect See merge request GNOME/gtk!4822
| * | | | inspector: Add an "inspect inspector" buttonBenjamin Otte2022-06-212-2/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | And launch a new inspector. The location of that button is rather random - I had no idea where to put it.
| * | | | object-tree: Allow inspecting inspectorsBenjamin Otte2022-06-211-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | We filter by display, so the inspector window should show up only when inspecting the inspector.
| * | | | inspector: Don't use global variable hereBenjamin Otte2022-06-211-13/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When inspecting the inspector, we want to create mutiple displays here. If we need this to be global, we should store it per-inspected-display.
* | | | | Merge branch 'wip/xdg-toplevel-bounds' into 'main'Matthias Clasen2022-06-223-9/+48
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | wayland: Add supports for xdg_toplevel.bounds See merge request GNOME/gtk!4261
| * | | | | wayland: Add support for xdg_toplevel.boundsJonas Ådahl2022-06-133-9/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The GdkToplevelSize struct already has the concept of "bounds", which means the largest size a window should reasonably have. It's practically the equivalent of the monitor the window is intended to be mapped on, with the "struts" (e.g. panels) cut out. It's used by GTK to use this information to calculate a default window size that is "lagom" (swedish; not too large, not too small).
* | | | | | Merge branch 'gtk-window-export-handle-win32' into 'main'Matthias Clasen2022-06-221-0/+37
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement gtk_window_export_handle for other backends See merge request GNOME/gtk!4824
| * | | | | | Add stub gtk_window_export_handle implementation for some backendsLuca Bacci2022-06-211-0/+37
| | |_|/ / / | |/| | | |