summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Update the expected results in the testsuitecss-image-scaledMatthias Clasen2018-03-151-1/+1
| | | | | | the -gtk-scaled() change in the previous commit makes it so that we now print out the scale factors. Update the expected output of affected tests to take that into account.
* Make GtkCssImageScaled handle scales properlyMatthias Clasen2018-03-152-11/+64
| | | | | | | We slightly expand the syntax of -gtk-scaled to allow specifying an explicit scale after each image, and then we create a single-image GtkCssImageScaled with the preferred scale in compute().
* Trivial formatting fixesMatthias Clasen2018-03-141-10/+9
| | | | Fix some whitespace problems.
* Merge branch 'query-wayland-registry' into 'master'Matthias Clasen2018-03-131-1/+7
|\ | | | | | | | | gtkimmodule: make match_backend() query See merge request GNOME/gtk!56
| * gtkimmodule: make match_backend() queryPeter Bloomfield2018-03-121-1/+7
| | | | | | | | | | | | | | | | | | | | …the wayland registry. Wnen _gtk_im_module_get_default_context_id calls match_backend (context_id) and the default GdkDisplay is wayland, match_backend() should return TRUE only if gdk_wayland_display_query_registry (display, "gtk_text_input_manager") returns TRUE.
* | FileChooserWidget: Fix leaks in .get_subtitle()Daniel Boles2018-03-131-7/+4
| | | | | | | | | | | | | | | | | | | | Now that subtitle's default value "Searching" for OPERATION_MODE_SEARCH is duplicated as it should be, we cannot reassign other strings to it anymore, as that resulted in the original dupe of "Searching" leaking. Fix this by only assigning the dup'd "Searching" after trying to get more specific values, not before. We therefore need to set it to NULL during its declaration, and that means we needn't in the final else.
* | FileChooserWidget: Avoid crash freeing static strDaniel Boles2018-03-121-1/+1
|/ | | | | | | | | | | | | Having a FileChooserDialog in location-entry mode then pressing <primary>f to move to search mode would crash with an invalid free(). In that case, FileChooserWidget.get_subtitle() returned a static string straight from gettext. This crashed when the GBinding from :subtitle to FileChooserDialog’s HeaderBar:subtitle shortly tried to free the string. Fix by duplicating the string before returning it, like all other paths. https://bugzilla.gnome.org/show_bug.cgi?id=791004
* Update Russian translationStas Solovey2018-03-121-386/+394
| | | | (cherry picked from commit 0e016686838982253b1dc161f4d9df48ce091abd)
* Updated Lithuanian translationAurimas Černius2018-03-121-3618/+4122
|
* testinfobar: Test more properties, response signalDaniel Boles2018-03-121-38/+69
| | | | Also test :message-type, :show-close-button, and ::response.
* Updated Czech translationMarek Černocký2018-03-121-1837/+1839
|
* Update Estonian translationMart Raudsepp2018-03-121-682/+4875
| | | | (cherry picked from commit e4e2b7687d455566b2102404487fcaa6b1b0077a)
* texture: Change download vfuncBenjamin Otte2018-03-124-16/+69
| | | | | | | | | | | | | | | | A problem with textures is that they can become too big for GPU memory, which would require tiling. But for tiling we only need to download the pixels needed by the tile. Similarly, there might be interest to not upload full textures if a renderer knows it only needs a small part. Both of these methods require the ability to specify an area of the texture to be downloaded. So change the download vfunc to include this parameter now before we add even more textures later. A private gdk_texture_download_area() function has also been added, but nobody is using it yet.
* texture: Export gdk_memory_texture_new() and GdkMemoryFormatBenjamin Otte2018-03-128-37/+328
| | | | Also add tests for all these newfangled formats.
* Merge branch 'wip/dboles/frame-yalign-byealign' into 'master'Daniel Boles2018-03-123-93/+17
|\ | | | | | | | | Frame: Erase the now-useless property label-yalign See merge request GNOME/gtk!40
| * Frame: Erase the now-useless property label-yalignDaniel Boles2018-03-123-93/+17
| | | | | | | | | | | | | | | | | | The border is now drawn on the frame node, not using an internal border node, so we are no longer able to align the label to vertically overlap the border. The property no longer performs its original purpose, & nor is it a useful candidate for giving a new role, so no point keeping it. https://bugzilla.gnome.org/show_bug.cgi?id=778886
* | ListBox: Avoid ::row-activated/Row::activate ambigDaniel Boles2018-03-121-0/+8
| | | | | | | | | | | | | | …uity, by adding a doc comment to Row::activate explaining what it does and why it is probably not what the user reading that is looking for. https://bugzilla.gnome.org/show_bug.cgi?id=794008
* | Update Polish translationPiotr Drąg2018-03-122-1710/+1662
| |
* | testinfobar: Add simple test of :visible/:revealedDaniel Boles2018-03-122-0/+79
|/ | | | | | | This exists merely to prove that, having added :revealed, show() and hide() now work reliably, as does set_revealed() for the animated case. https://bugzilla.gnome.org/show_bug.cgi?id=710888
* Update Hungarian translationBalázs Meskó2018-03-121-1268/+2512
|
* Update POTFILES.inPiotr Drąg2018-03-112-12/+12
|
* Merge branch 'module-reorg' into 'master'Matthias Clasen2018-03-1123-56/+65
|\ | | | | | | | | Consolidate print backends into one directory See merge request GNOME/gtk!53
| * Consolidate print backends into one directoryMatthias Clasen2018-03-1123-56/+65
|/ | | | | This will let us use GTK_PATH to load them uninstalled, which is useful for in-tree tests.
* Exit cleanly if no display is foundMatthias Clasen2018-03-111-1/+1
| | | | | We should not try to create an inspector window and generate tons of ugly warnings in this case.
* Updated Czech translationMarek Černocký2018-03-111-9/+8
|
* Updated Czech translationMarek Černocký2018-03-111-1225/+2656
|
* Fixed typo in script name Kjohki -> KhojkiMarek Černocký2018-03-111-1/+1
|
* Merge branch 'wip/matthiasc/snapshot' into 'master'Matthias Clasen2018-03-1117-99/+234
|\ | | | | | | | | Implement builder pattern for GtkSnapshot See merge request GNOME/gtk!52
| * Use GtkSnapshot gettersMatthias Clasen2018-03-1112-18/+18
| | | | | | | | | | We can avoid direct struct access and gtksnapshotprivate.h everywhere.
| * GtkSnapshot: Add gettersMatthias Clasen2018-03-114-3/+23
| | | | | | | | | | These getters can be useful when creating new snapshots in a snapshot() vfunc.
| * Document new snapshot apiMatthias Clasen2018-03-113-2/+57
| |
| * GtkSnapshot: Drop init/finishMatthias Clasen2018-03-112-61/+11
| | | | | | | | We are ont using stack-allocated snapshots anymore.
| * Stop using stack-allocated snapshotsMatthias Clasen2018-03-117-57/+53
| | | | | | | | | | Use the new/free api instead of init/finish for GtkSnapshot.
| * GtkSnapshot: Implement the builder patternMatthias Clasen2018-03-113-11/+125
|/ | | | | | Make GtkSnapshot a refcounted boxed type, and add public API that follows the builder pattern described here: https://blogs.gnome.org/otte/2018/02/03/builders/
* GdkCursor: Add some missing (nullable) annotationsTimm Bäder2018-03-091-3/+3
|
* spinbutton: Remove priv pointerTimm Bäder2018-03-092-84/+67
|
* Avoid warningsMatthias Clasen2018-03-098-10/+34
| | | | | | When generating introspection data, we instantiate types without calling gtk_init, so make sure that extension points are registered before the type is trying to implement them.
* x11: Avoid a division by zeroPavel Roskin2018-03-081-1/+2
| | | | | | | | This is similar to f44baf51d9e8616a but for RandR 1.3 servers like x11rdp and Windows Exceed which don't return a refresh rate. Avoid a crash when that happens. https://bugzilla.gnome.org/show_bug.cgi?id=775546
* separator: Remove priv pointerTimm Bäder2018-03-072-11/+10
|
* menubutton: Remove priv pointerTimm Bäder2018-03-072-43/+45
|
* widget: Add a translate_coordinates version for doublesTimm Bäder2018-03-072-9/+73
| | | | | | | | So we can use that one when translating event coordinates. Also adapt the widgetfocus demo to ensure this works. We should probably at some point delete either the int or the double version.
* linkbutton: Remove priv pointerTimm Bäder2018-03-072-27/+33
|
* expander: Remove label-fill propertyTimm Bäder2018-03-073-74/+0
| | | | | It's just setting some internal boolean and nothing else. It's like this in gtk3 as well so it can't be too important either.
* Merge branch 'expander-add-like-bin' into 'master'Timm Bäder2018-03-071-1/+13
|\ | | | | | | | | expander: Check for an existing child when adding See merge request GNOME/gtk!48
| * expander: Check for an existing child when addingPeter Bloomfield2018-03-061-1/+13
| | | | | | | | | | | | | | | | Now that GtkExpander subclasses GtkContainer instead of GtkBin, it needs its own guard against adding more than one child. Also, the documentation should no longer describe adding a child as if it is descended from GtkBin.
* | overlay: Add GtkOverlay::measure child propertyBenjamin Otte2018-03-073-1/+130
| | | | | | | | | | | | | | It determines whether a child is included in the overlay's size measurement. The first user is (gonna be) GtkVideo.
* | eventcontroller: Remove unused evmask member variableBenjamin Otte2018-03-071-1/+0
| |
* | eventcontroller: Get rid of constructed vfuncBenjamin Otte2018-03-071-22/+9
| | | | | | | | Instead, add the controller to the widget in set_property.
* | texture: Add GdkMemoryTextureBenjamin Otte2018-03-074-162/+388
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | GdkMemoryTexture is a texture implementation for holding data in memory (read: GBytes). You specify the GdkMemoryFormat that data is in and off you go. Renderers can use this to add uploads in various different formats and don't need to fallback to GDK doing the conersion on the CPU. Supported formats can be extended if we need new ones, for now I just added the relevant ones for Cairo and GdkPixbuf. The constructor is also private still, because I'm not sure we want to export GdkMemoryFormat. Wrappers that do from_cairo_surface() and for_pixbuf() do exist though.
* | gdk: Split out GL textureBenjamin Otte2018-03-0711-232/+305
| | | | | | | | | | | | | | Put GdkGLTexture into its own file and rename the API to gdk_gl_texture_foo() instead of gdk_texture_foo_for_gl(). Apart from naming, no actual code changes.