summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* singleselection: Add ::hide-selection propertywip/otte/hide-selectionBenjamin Otte2021-11-032-9/+91
| | | | | | | Add a property to hide the selection from the listview. This makes it possible to "turn off" selections in widgets like CCPanelList when collapsing from a sidebar to a menu view due to size constraints and back on when switching back.
* broadway: fix texture uploadBenjamin Otte2021-10-281-7/+14
| | | | | | | | This was carelessly broken by me in 5b473911. While fixing it anyway, at some support for better error handling. Fixes #4381
* cssparser: Remove unused argumentBenjamin Otte2021-10-286-14/+10
| | | | The base_directory argument is never used. So don't have it.
* Merge branch 'gtkeventcontroller.c-fix' into 'master'Matthias Clasen2021-10-271-1/+1
|\ | | | | | | | | master: premature controller unreferencing in gtk_event_controller_handle_event See merge request GNOME/gtk!4099
| * gtk: Hold reference on controller until events are fully handledMaxim Zakharov2021-10-281-1/+1
| | | | | | | | | | | | Fixes premature controller unreferencing in gtk_event_controller_handle_event() if the controller itself is being removed while handling the event.
* | Merge branch 'rgba-for-master' into 'master'Matthias Clasen2021-10-271-1/+1
|\ \ | | | | | | | | | | | | docs: standard names are CSS names, not X11 names See merge request GNOME/gtk!4100
| * | docs: standard names are CSS names, not X11 names Benjamin Otte2021-10-271-1/+1
|/ / | | | | We updated Pango a while ago to use these more common names, but apparently forgot the docs.
* | Merge branch 'wip/chergert/use-fabs-in-macos' into 'master'Matthias Clasen2021-10-271-1/+1
|\ \ | | | | | | | | | | | | macos: fix scale on macOS 12 beta See merge request GNOME/gtk!4065
| * | macos: fix scale on macOS 12 betaChristian Hergert2021-10-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a port of the fix in the quartz backend to the new macOS backend. From the original commit: In macOS-12.sdk CGContextConverSizeToDeviceSpace returns a negative height and passing that to CGContextScaleCTM in turn causes the cairo surface to draw outside the window where it can't be seen. Passing the absolute values of the scale factors fixes the display on macOS 12 without affecting earlier macOS versions.
* | | Merge branch 'wip/otte/for-master' into 'master'Benjamin Otte2021-10-2620-328/+391
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | gdktypes: Remove GDK_EXTERN_VAR Closes #4373 See merge request GNOME/gtk!4097
| * | css: Don't throw warnings on broken URL in image cssBenjamin Otte2021-10-265-0/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a URL can't be loaded, we might end up with a NULL file. Handle that case properly by creating an invalid image instead and don't crash or complain to stderr when files are NULL. This was broken since 0886ade182f1a958024202d5c20248d57fcdb053 A new reftest has been included. We need a reftest instead of a CSS parser test, because the error only becomes visible when compute()ing the actual image. Fixes #4373
| * | gdk: Split enums from typesBenjamin Otte2021-10-2615-306/+358
| | | | | | | | | | | | | | | | | | Add gdkenums.h for enums and keep gdktypes.h for types. Makes both files easier to read.
| * | gdktypes: Remove GDK_EXTERN_VARBenjamin Otte2021-10-261-23/+0
|/ / | | | | | | It is unused.
* | Merge branch 'bilelmoussaoui/missing-since-annotations' into 'master'Matthias Clasen2021-10-265-9/+25
|\ \ | | | | | | | | | | | | since annotations cleanup See merge request GNOME/gtk!4086
| * | g-i: add missing since 4.6 annotationsBilal Elmoussaoui2021-10-214-0/+16
| | |
| * | gdk: fix MemoryFormat since annotationsBilal Elmoussaoui2021-10-211-9/+9
| | |
* | | Merge branch 'alatiera/gdk_create_context_nullable' into 'master'Benjamin Otte2021-10-251-1/+1
|\ \ \ | | | | | | | | | | | | | | | | gdkdisplay: Remove (nullable) See merge request GNOME/gtk!4096
| * | | gdkdisplay: Remove (nullable)Jordan Petridis2021-10-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | gdk_display_create_gl_context only returns NULL when there is an error set or asserts/aborts. So nullalbe annotation isn't needed. Similar to 53312cf696516cdeb1c284008992022a210bb233
* | | | Update Latvian translationRūdolfs Mazurs2021-10-251-1752/+1787
|/ / / | | | | | | | | | (cherry picked from commit 4f5264d1b7dae98e1732d57098b9a7e4940964cd)
* | | Merge branch 'enterprisey-master-patch-53741' into 'master'Emmanuele Bassi2021-10-251-1/+1
|\ \ \ | | | | | | | | | | | | | | | | readme: Fix "Building GTK" docs link See merge request GNOME/gtk!4095
| * | | readme: Fix "Building GTK" docs linkenterprisey2021-10-251-1/+1
|/ / /
* | | Merge branch 'wip/exalm/polish' into 'master'Matthias Clasen2021-10-248-111/+52
|\ \ \ | | | | | | | | | | | | | | | | A few inspector papercut fixes See merge request GNOME/gtk!4092
| * | | inspector: Expand the controllers column viewAlexander Mikhaylenko2021-10-241-0/+1
| | | |
| * | | inspector: Use .list for property list as wellAlexander Mikhaylenko2021-10-241-0/+1
| | | |
| * | | inspector: Clean up the .list styleAlexander Mikhaylenko2021-10-241-11/+13
| | | | | | | | | | | | | | | | | | | | | | | | Make it work with the property list as well, handle spinbuttons, adjust paddings so that buttons don't touch each other, don't override horizontal padding unnecessarily.
| * | | inspector: Stop using .sidebar for the recorder pageAlexander Mikhaylenko2021-10-241-6/+6
| | | | | | | | | | | | | | | | | | | | Those aren't sidebars. Add separators manually instead of misusing the style class.
| * | | inspector: Use consistent GtkTextView marginsAlexander Mikhaylenko2021-10-242-0/+6
| | | |
| * | | inspector: Add a separator under toolbar in css editorAlexander Mikhaylenko2021-10-241-0/+3
| | | | | | | | | | | | | | | | Same as object properties.
| * | | inspector: Use tabular figures for list position labelAlexander Mikhaylenko2021-10-241-0/+3
| | | | | | | | | | | | | | | | Avoid buttons jumping around while moving through list models.
| * | | inspector: Use .toolbar for toolbarsAlexander Mikhaylenko2021-10-244-61/+16
| | | | | | | | | | | | | | | | | | | | Remove all of the manual margins, spacing and has-frame=0, be more consistent.
| * | | inspector: Use a GtkSeparator for the object details toolbarAlexander Mikhaylenko2021-10-242-7/+3
| | | | | | | | | | | | | | | | | | | | Remove a hardcoded light grey border from the sidebar that was used for this.
| * | | inspector: Remove list header styleAlexander Mikhaylenko2021-10-241-26/+0
|/ / / | | | | | | | | | The one from the theme works just fine.
* | | Update POTFILES.skipPiotr Drąg2021-10-232-0/+4
| | |
* | | Merge branch 'wip/otte/for-master' into 'master'Benjamin Otte2021-10-234-14/+7
|\ \ \ | | | | | | | | | | | | | | | | Fix a bunch of issues found by static analyzer See merge request GNOME/gtk!4090
| * | | png: allocate data before sigsetjmp()Benjamin Otte2021-10-231-2/+2
| | | | | | | | | | | | | | | | | | | | Makes the static analyzer not trip up when trying to analyze memory leaks.
| * | | demos: Remove unused codeBenjamin Otte2021-10-231-8/+2
| | | |
| * | | glx: Remove unused assignmentBenjamin Otte2021-10-221-2/+0
| | | |
| * | | tiff: Fix variable assignmentBenjamin Otte2021-10-221-2/+3
|/ / /
* | | Merge branch 'wip/otte/center-center-center' into 'master'Benjamin Otte2021-10-2239-6/+541
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Add a bunch of reftests and fix their failures Closes #4285 See merge request GNOME/gtk!4085
| * | | testsuite: Add lots of reftests for picture sizingBenjamin Otte2021-10-2235-0/+510
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Have square images in the following sizes: * 20 * 100 * 150 * 200 * 300 and place them in a can-shrink Picture allocated at the sizes: * 200x100 * 100x200 and set align to center/center. That's 10 combinations and they should all do the right thing.
| * | | widget: adjust allocation even betterBenjamin Otte2021-10-221-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes fallout from 3742fabae040d914e6ae58edf31170a54a980f21 where we would no longer allocate widgets to their natural size when align flags where used. GtkPicture wants to be allocated at 100% in that case, so a picture with a 100x100 image inside a 200x200 window should be allocated 100x100. The new adjustment code now does the following (for width-for-height instead of height-for-width, swap width and height in the following): 1. query the minimum width for the allocated height 2. query the natural width 3. compute the maximum of (1) and (2) 4. set the widget width to the minimum of (3) and the allocated width. 5. compute the natural height for (4) 6. set the widget height to the minimum of (5) and the allocated height.
| * | | reftests: Don't crash if no nodeBenjamin Otte2021-10-221-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | If we have no node, don't crash when trying to save the node file. Instead, write an empty file.
| * | | gl: Call make_current() before doing any GL workBenjamin Otte2021-10-221-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | But don't call it too early, we only want to call it once we have prepared the target. This way, we guarantee that a GL context is always available and that it is bound to the correct target.
| * | | build: Make sure ifuncs exist when using fp16Benjamin Otte2021-10-221-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | Fixes msys compiles on Windows (and everywhere else hopefully). Fixes #4285
* | | | Merge branch 'fix-mac-kana-eisu' into 'master'Emmanuele Bassi2021-10-221-0/+30
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | Correct translation of Mac JIS Eisu & Kana keys Closes #4117 See merge request GNOME/gtk!3782
| * | | Correct translation of Mac JIS Eisu & Kana keysgsittyz2021-07-241-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since UCKeyTranslate() converts these keys to Space key unexpectedly, applications can't distinguish these keys by keysyms. To solve it, this fix translates these keys by the same way with function keys & keypad keys. This patch is equivalent to the patch proposed in: https://bugzilla.gnome.org/show_bug.cgi?id=702841 Closes #4117
* | | | Update Croatian languagemuzena2021-10-211-50/+50
| | | |
* | | | Merge branch 'wip/otte/for-master' into 'master'Matthias Clasen2021-10-215-9/+25
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Better errors ftw! See merge request GNOME/gtk!4084
| * | | | css: Emit a special error for a common errorBenjamin Otte2021-10-211-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CSS: calc(5px+3px) is wrong because it gets broken to: calc( 5px +3px ) which is 2 numbers inside the calc, and what you want is: calc( 5px + 3px ) but you need to add a space to get this, like so: calc(5px + 3px) which is the recommended way to write calc() statements. So whenever we encounter an error, check if the next token is a signed number and if so, include it in the error message.
| * | | | css: Split dimension tokenBenjamin Otte2021-10-214-9/+17
| | |/ / | |/| | | | | | | | | | | | | | | | | | Add a signed and an unsigned version. This will become useful real soon.