summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Refresh the tutorial examplesMatthias Clasen2020-05-1170-1088/+284
| | | | | | | | | Redo this series of examples from 2013, and adapt it to modern way of doing things. The biggest differences are that we use a headerbar right from the start, and don't mention the app menu. Fixes: #2730
* applicationswindow: Make show-menubar FALSE by defaultMatthias Clasen2020-05-111-1/+1
| | | | | The fallback to the menubar is not a good sight, we should not do that by default.
* docs: Cosmetic updates to the tutorialMatthias Clasen2020-05-111-122/+124
| | | | | | Since the meson conversion, we are no longer expanding gtk-doc references in this file, so take them out. And touch up the wording in various places.
* Clean up a leak in a testMatthias Clasen2020-05-111-1/+1
| | | | | | | One of the treeview tests was calling gtk_widget_destroy on a child instead of the toplevel, which leaks the toplevel unnecessarily. Plus, we're moving towards allowing destroy only on toplevels.
* treeviewcolumn: Another case of box <> frame confusionMatthias Clasen2020-05-111-2/+5
| | | | Don't call your boxes frames, folks!
* builderscope: Fix finalize <> dispose confusionMatthias Clasen2020-05-111-1/+1
| | | | | | Don't chain up to dispose if you implement finalize. This fix s courtesy of GOBJECT_DEBUG=objects.
* print dialog: Fix frame <> box confusionMatthias Clasen2020-05-111-7/+5
| | | | | It is a bad idea to have a GtkBox called frame, event if it started out its existence as a GtkFrame.
* treeview: Ensure search popover is properly insertedMatthias Clasen2020-05-111-0/+3
| | | | | | | | | | The css tree and the widget tree are not in sync, so we need to explicitly set the parent of the css node before inserting the widget, or else we end up with critical warnings and a non-working popover. This can be seen in the print dialog, when moving the focus to the printer list.
* print-editor: CosmeticsMatthias Clasen2020-05-111-4/+5
| | | | Make the about dialog a bit less barren.
* print-editor: Fix a criticalMatthias Clasen2020-05-111-1/+1
| | | | | GtkWindow is no longer a container, so don't call gtk_container_add on it.
* testsuite: Add more tests for automated componentsMatthias Clasen2020-05-101-0/+104
| | | | | | | | | | | | Add template tests that show the complex dialogs before destroying them. This reveals that we are leaking in several of them. These leaks don't show up if the dialogs are destroyed right away, as the existing tests do. Disable the two failing tests for now: /template/GtkFileChooserDialog/show /template/GtkPrintUnixDialog/show
* testsuite: Use lowercase component in test pathsMatthias Clasen2020-05-101-23/+23
| | | | This is purely cosmetic.
* textview: Ensure popup menu is properly insertedMatthias Clasen2020-05-101-0/+3
| | | | | | | | | | In the presence of attached children, the css tree and the widget tree are not in sync, so we need to explicitly set the parent of the css node before inserting the widget, or else we end up with critical warnings and a non-working menu. This can be seen in testtextview.
* textview: Give attached children a different css nameMatthias Clasen2020-05-101-1/+1
| | | | | | | | If we use "text" for the children that are attached to the text view, they end up rendering the same background as the main text content, causing that content to be covered up. Fixes: #2729
* Updated Lithuanian translationAurimas Černius2020-05-101-105/+111
|
* Merge branch 'wip/exalm/headerbar-dragging' into 'master'Matthias Clasen2020-05-1013-575/+833
|\ | | | | | | | | | | | | Extract GtkWindow dragging and titlebar actions Closes #2689 See merge request GNOME/gtk!1814
| * testsuite: Update bloomfilter testAlexander Mikhaylenko2020-05-081-11/+13
| | | | | | | | Add the 2 new css nodes.
| * window: Stop handling dragging and titlebar actionsAlexander Mikhaylenko2020-05-081-522/+18
| | | | | | | | | | | | | | | | | | Since GtkWindowHandle and GtkHeaderBar do it now, it can be removed from GtkWindow, along with GTK_WINDOW_REGION_TITLE which at this point doesn't differ from GTK_WINDOW_REGION_CONTENT. Closes https://gitlab.gnome.org/GNOME/gtk/-/issues/2689, since GtkWindowHandle doesn't do that anymore.
| * headerbar: Include GtkWindowHandleAlexander Mikhaylenko2020-05-071-13/+20
| | | | | | | | | | This allows it to continue being draggable when placed inside a window, and will allow to remove the corresponding gestures from GtkWindow.
| * headerbar: Use GtkCenterBox internallyAlexander Mikhaylenko2020-05-072-37/+34
| | | | | | | | This will allow to easily wrap it into another widget in the next commits.
| * Add GtkWindowHandleAlexander Mikhaylenko2020-05-077-0/+754
| | | | | | | | This will allow to move the titlebar handling logic out from GtkWindow.
| * widget: Pass parent to gtk_widget_consumes_motion()Alexander Mikhaylenko2020-05-073-6/+8
| | | | | | | | | | Right now it assumes that the parent is a GtkWindow. This will break when window dragging is handled by another widget.
* | Update Ukrainian translationYuri Chornoivan2020-05-101-466/+482
| |
* | Update POTFILES.inPiotr Drąg2020-05-102-2/+0
| |
* | CI: install brotli in msys2Christoph Reiter2020-05-101-0/+3
| | | | | | | | Not a direct dependency, but the freetype package is missing it atm
* | Merge branch 'matthiasc/for-master' into 'master'Matthias Clasen2020-05-105-17/+44
|\ \ | | | | | | | | | | | | | | | | | | window: Remove some dead code Closes #2726 and #2724 See merge request GNOME/gtk!1862
| * | placesview: Don't do the same thing twiceMatthias Clasen2020-05-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | When the schema is supported, we want to remove the error style class, not add it again. Pointed out by Rafał Mikrut. Fixes: #2724
| * | gsk: Fix a typoMatthias Clasen2020-05-091-1/+1
| | | | | | | | | | | | | | | | | | | | | We were checking x_offset twice, when we meant to check x_offset and y_offset. Pointed out by Rafał Mikrut. Fixes: #2726
| * | Add a test for refcounts under reorderingMatthias Clasen2020-05-091-1/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | It turns out that we have a ref leak at the very core of our dom model :( gtk_widget_insert_before/after leak a reference if the widget was already under the same parent. This is something that GtkBox frequently does. It shows up e.g. when packing widgets at the end in a headerbar.
| * | widget: Don't leak a reference when reorderingMatthias Clasen2020-05-091-1/+2
| | | | | | | | | | | | | | | When reordering a widget that is alrady under the same parent, we must not take another reference.
| * | window: Remove some dead codeMatthias Clasen2020-05-091-13/+0
|/ / | | | | | | We are not attaching windows anymore.
* | Update Romanian translationDaniel Șerbănescu2020-05-091-2050/+2348
| |
* | Update Romanian translationFlorentina Mușat2020-05-091-1093/+1097
| |
* | Update Esperanto translationKristjan SCHMIDT2020-05-091-903/+920
| |
* | Merge branch 'carlosgc/content-provider-union-write' into 'master'Matthias Clasen2020-05-081-0/+1
|\ \ | | | | | | | | | | | | clipboard: GdkContentProviderUnion should return after writing the first matched format See merge request GNOME/gtk!1856
| * | clipboard: GdkContentProviderUnion should return after writing the first ↵Carlos Garcia Campos2020-05-071-0/+1
| |/ | | | | | | | | | | | | matched format It continues trying with the other providers due to a missing early return.
* | Merge branch 'tintou/gsk-transform-autocleanup' into 'master'Matthias Clasen2020-05-081-0/+1
|\ \ | | | | | | | | | | | | gsk: Add GskTransform autocleanup definition See merge request GNOME/gtk!1859
| * | gsk: Add GskTransform autocleanup definitionCorentin Noël2020-05-081-0/+1
| |/
* | Merge branch 'gbsneto/css-dequeue-fix' into 'master'Matthias Clasen2020-05-081-3/+1
|\ \ | | | | | | | | | | | | csswidgetnode: Don't check for container See merge request GNOME/gtk!1861
| * | csswidgetnode: Don't check for containerGeorges Basile Stavracas Neto2020-05-081-3/+1
| |/ | | | | | | | | | | | | | | | | | | | | | | | | The conditions to queue and dequeue a CSS validation are different; while queueing checks if the widget is a root, dequeueing checks that AND if the widget is a container. GtkWindow is not a GtkContainer anymore, and that is causing validations to be queued, but never dequeued. Don't require the widget to be a GtkContainer for dequeuing.
* | Merge branch 'matthiasc/for-master' into 'master'Matthias Clasen2020-05-083-15/+35
|\ \ | |/ |/| | | | | Matthiasc/for master See merge request GNOME/gtk!1860
| * placeview: Hide the protocols grid when its emptyMatthias Clasen2020-05-081-12/+34
| | | | | | | | | | | | Seeing just the bold headings at the bottom of the popover is confusing, so just hide the entire grid in this case.
| * droptarget: Fix confusion around ::leave signalMatthias Clasen2020-05-082-3/+1
|/ | | | | | | | | The leave signal should not take any arguments, don't pass the GdkDrop. Update the documentation, fix the emission and update users to match. This was showing up as crash when dragging files over the places sidebar.
* Merge branch 'matthiasc/for-master' into 'master'Matthias Clasen2020-05-071-8/+1
|\ | | | | | | | | Fix an inspector crash See merge request GNOME/gtk!1855
| * Fix an inspector crashMatthias Clasen2020-05-061-8/+1
|/ | | | | | Fix the listmodel semantics of the controller model, by making get_item return a reference. This was broken in 4b9e5304cc.
* Merge branch 'matthiasc/for-master' into 'master'Matthias Clasen2020-05-071-10/+19
|\ | | | | | | | | modelbutton: Unify activation code paths See merge request GNOME/gtk!1854
| * modelbutton: Unify activation code pathsMatthias Clasen2020-05-061-10/+19
|/ | | | | | Opening submenus by Enter or Space wasn't working, because we had different code paths for activation via keynav and via click. Unify them.
* Merge branch 'ebassi/for-master' into 'master'Emmanuele Bassi2020-05-062-4/+5
|\ | | | | | | | | Ebassi/for master See merge request GNOME/gtk!1853
| * Annotate gtk_text_child_anchor_get_widgets() correctlyEmmanuele Bassi2020-05-061-2/+3
| | | | | | | | | | | | We switched from returning a list to returning a C array, which means we need to update the introspection annotation and the documentation to match the implementation.
| * Annotate gdk_motion_event_get_history() correctlyEmmanuele Bassi2020-05-061-2/+2
|/ | | | | We moved from returning a list to returning a C array, and this requires a change in the annotations.