summaryrefslogtreecommitdiff
path: root/gtk
Commit message (Collapse)AuthorAgeFilesLines
* entry completion: Update popup visibility on manual completeMichael Gratton2019-06-151-121/+119
| | | | | | | | | | | | | | | | Currently, calling `gtk_entry_completion_complete()` does not adjust the visbility of the popup used to show completion entries. This makes it difficlt to dynamically populate the model based on what is being entered into the completion's entry. For example, if the model is being populated from a database, and no matches have (yet) been added between typing a character and the 100ms delay before completion is automatically triggered, the popup will not be shown even after matches have been added. This patch simply moves the related code from the private timeout method to the public function and shuffles the position of some functions so as to keep the compiler happy.
* Merge branch 'wip/dboles/scrolledwindow-annotations' into 'master'Matthias Clasen2019-06-121-6/+6
| | | | | | | | | | ScrolledWindow: Replace deprecated annotations; add (nullable) to set_[hvadjustment]() See merge request GNOME/gtk!868 (cherry picked from commit 28c40a4c3d40ed580ffc82f6b20d78e80982a46e) 45a98d6a ScrolledWindow: Replace deprecated (allow-none) 7575d521 ScrolledWindow: Annotate h|vadjustment as nullable
* window: Fix focus wraparoundMatthias Clasen2019-06-121-2/+4
| | | | | | | If tab focus falls off the end, and we have an empty headerbar, we end up with window->focus == NULL. Don't let that happen Close https://gitlab.gnome.org/GNOME/gtk/issues/686#note_529577
* Merge branch 'popover-state-sync' into 'gtk-3-24'Matthias Clasen2019-06-111-0/+5
|\ | | | | | | | | popover: Sync parent state when needed See merge request GNOME/gtk!931
| * popover: Sync parent state when neededMatthias Clasen2019-06-111-0/+5
| | | | | | | | | | | | | | When the relative-to widget changes, we need to re-sync our parent state. Closes: https://gitlab.gnome.org/GNOME/gtk/issues/1943
* | HighContrast: Improve contrast of notebook tabsColomban Wendling2019-06-111-3/+3
|/
* Adwaita: update treeview progressbarsJakub Steiner2019-06-073-34/+15
| | | | | | - The style resembles Clearlooks and is way outdated. https://gitlab.gnome.org/GNOME/gtk/issues/1938
* gdk: backport GdkProfilerChristian Hergert2019-06-061-0/+155
| | | | | | | | | | This is a backport of the GdkProfiler from master. It does not include the pixel bandwidth numbers that come from gdkdrawcontext.c since there does not seem to be an analog in 3.x. Additionally, this implements the recent changes for SYsprof's D-Bus profiler API which adds a Capabilities property and an options hash-table to the D-Bus interface for forward portability.
* gtk: fix weed_out_neg_zero() in spinbutton and scaleMichael Natterer2019-06-032-2/+2
| | | | | It was not copying the terminating \0 in the string, breaking output in spinbutton (didn't try scale). Fixes #3452.
* va_marshaller: add various va_marshallersChristian Hergert2019-06-0118-29/+221
| | | | | | | | | We don't need to cover every case with a va_marshaller, but there are a number of them that are useful because they will often only be connected to by a single signal handler. Generally speaking, if I opened into a file to add a va_marshaller, I just set all of them.
* gtk: fix all uses of g_cclosure_marshal_genericChristian Hergert2019-06-0116-30/+147
| | | | | | This adds specific marshallers for all of the locations where a generic marshaller is being used. It also provides va_marshallers to reduce the chances that we get stack traces from perf going through ffi_call_unix64.
* Merge branch 'overlay-scrolling-for-3' into 'gtk-3-24'Matthias Clasen2019-05-312-2/+29
|\ | | | | | | | | Overlay scrolling for 3 See merge request GNOME/gtk!895
| * scrolled window: respect overlay-scrolling settingMatthias Clasen2019-05-311-1/+9
| | | | | | | | | | If the gtk-overlay-scrolling setting is FALSE, don't use overlay scrollbars.
| * Add a gtk-overlay-scrolling settingMatthias Clasen2019-05-311-1/+20
| | | | | | | | | | This is in preparation for letting user opt out of overlay scrolling in the control-center.
* | gtk: rely on default marshallersChristian Hergert2019-05-3119-29/+29
|/ | | | | | | | | | Similar to previous removals of g_cclosure_marshal_VOID__VOID we can remove other marshallers for which are a simple G_TYPE_NONE with single parameter. In those cases, GLib will setup both a c_marshaller and va_marshaller for us. Before this commit, we would not get a va_marshaller because the c_marshaller is set. Related to GNOME/Initiatives#10
* marshallers: ensure g_cclosure_marshal_VOID__VOIDv is usedChristian Hergert2019-05-2932-58/+58
| | | | | | | If we set c_marshaller manually, then g_signal_newv() will not setup a va_marshaller for us. However, if we provide c_marshaller as NULL, it will setup both the c_marshaller (to g_cclosure_marshal_VOID__VOID) and va_marshaller (to g_cclosure_marshal_VOID__VOIDv) for us.
* Merge branch 'gtk3-remove-pixel-cache-from-treeview' into 'gtk-3-24'Timm Bäder2019-05-291-127/+28
|\ | | | | | | | | treeview: Remove the pixel cache See merge request GNOME/gtk!867
| * treeview: Remove the pixel cachegtk3-remove-pixel-cache-from-treeviewTimm Bäder2019-05-211-127/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This has caused numerous issues for users, especially in the filechooser, which have not been fixed in all the years since the pixel cache has been introduced. If anyone seriously has complaints about the treeview performance (and those did not exist with the pixel cache), feel free to revert this commit *and* fix the pixel cache issues. Closes #503 Closes #1691 Closes #466
* | Use g_once for all the mkenums template filesFederico Mena Quintero2019-05-212-16/+26
|/ | | | | | | Without this, initialization of enum/flags values from multithreaded programs may not work correctly. Fixes #1617.
* Merge branch 'fix-non-csd-menu-corners-gtk3' into 'gtk-3-24'Timm Bäder2019-05-173-6/+8
|\ | | | | | | | | Adwaita: Don't round the non-csd menu corners (GTK3) See merge request GNOME/gtk!834
| * Adwaita: Don't round the non-csd menu cornersnana-42019-05-123-6/+8
| | | | | | | | | | | | Otherwise, the menu will have ugly black corners. Fixes https://gitlab.gnome.org/GNOME/gtk/issues/1661
* | emoji chooser: populate incrementallyMatthias Clasen2019-05-161-22/+47
|/ | | | | | | It takes half a second on my system to initially populate the Emoji chooser. That is too long. Do the work in 8 millisecond chunks to give GTK a chance to get some frames done.
* GtkHeaderBar: Don't leak decoration layoutGuido Günther2019-05-061-0/+1
| | | | | | | Currently we leak priv->decoration_layout if the layout is set multiple times. Signed-off-by: Guido Günther <agx@sigxcpu.org>
* css: Use multiple font-family valuesMatthias Clasen2019-05-031-2/+12
| | | | | | | Pango API to support this, so we can implement this very easily. Closes: https://gitlab.gnome.org/GNOME/gtk/issues/1854
* treeview: Draw rubber band rectangle more oftenErnestas Kulik2019-05-011-4/+2
| | | | | | | | If the cursor coordinates are outside of the content (the GtkRBTree), gtk_tree_view_bin_draw() will return and not draw the rubber band rectangle. Fixes https://gitlab.gnome.org/GNOME/gtk/issues/1859
* Add a few placeholder documentation block to have g-i annotationsRico Tzschichholz2019-05-011-0/+16
|
* Adwaita: tone down lowres icon aidJakub Steiner2019-04-293-6/+6
| | | | Fixes https://gitlab.gnome.org/GNOME/gtk/issues/1818
* GtkTextBufferSerialize: Add missing format string argumentFelix Riemann2019-04-271-1/+2
| | | | The format string has two string parameters however only one was supplied.
* GtkTextBufferSerialize: Add G_GNUC_PRINTF() to set_error()Felix Riemann2019-04-271-0/+8
| | | | This allows the compiler to warn if format string and arguments do not match.
* meson: underscorify immodule name when using it as a macro nameChristoph Reiter2019-04-121-1/+1
| | | | | This resulted in -DINCLUDE_IM_ti-et getting passed to gcc resulting in lots of warnings. Use underscorify() so we get the correct -DINCLUDE_IM_ti_et instead.
* meson: Preserve compatibility with Autotools buildEmmanuele Bassi2019-04-111-0/+1
| | | | | The Meson build is missing the libtool versioning of the shared libraries.
* meson: Fix building with builtin immodulesChun-wei Fan2019-04-111-1/+2
| | | | | | | We also need to ensure that we pass in -DINCLUDE_IM_xxxx when building the GTK DLL/.so, in addition to building the respective (static) immodules, so that we did really link in the immodules into the final GTK DLL/.so.
* autotools: dist gen-c-array.py and gen-rc.pyChristoph Reiter2019-04-111-0/+1
|
* meson: simplify builtin_immodules build optionChristoph Reiter2019-04-111-1/+1
| | | | | | | | Make it a yes/no/auto combo. "yes" means all modules are built into libgtk, "no" that none are and "auto" uses the platform defaults, yes on win32, no otherwise. If we need more we can always extend it later.
* meson: Various config.h related fixesChristoph Reiter2019-04-111-5/+7
| | | | | | | | Various adjustments to make the config.h output between autotools and meson more similar by testing on Linux and Windows/MSYS2. Setting things to 1 instead of true and shifting things around is motivated by reducing the diff between the generated files.
* meson: static immodules: depend on generated headersChristoph Reiter2019-04-111-2/+3
|
* meson: set the soversion to just '0' everywhereChristoph Reiter2019-04-111-0/+1
| | | | | This is what glib did for the meson port, so can't be that wrong. This also makes the DLL names match the autotools Windows DLLs.
* meson: build print backendsChristoph Reiter2019-04-111-2/+0
| | | | | | | | This changes the configure option into two states: auto: build all that can be build (default) A list of backend names: build them and fail if we can't "papi" is missing because it's not in Debian and I can't test it.
* autotools: dist all meson related build filesChristoph Reiter2019-04-111-1/+10
|
* meson: build all input modules; fix static build on LinuxChristoph Reiter2019-04-111-1/+20
|
* meson: install unix-print headersChristoph Reiter2019-04-111-0/+12
|
* meson: mkenums: only write basenames in the commentsChristoph Reiter2019-04-111-1/+1
| | | | | | | The autotools build uses relative filenames here while with meson we get absolute paths. Switch to basename so we get the same result for both and don't break reproducible builds with absolute paths in public headers.
* meson: gtk gir: depend on xlib and include gtkx.h if X11 is enabledChristoph Reiter2019-04-111-5/+10
| | | | To match what the autotools build does.
* meson: install gtkbuilder.rng/its/loc filesChristoph Reiter2019-04-111-0/+7
|
* meson: Install key themesChristoph Reiter2019-04-111-6/+11
|
* meson: add fribidi depChristoph Reiter2019-04-111-0/+1
|
* meson: Build the input modulesChun-wei Fan2019-04-111-2/+2
| | | | | | | | | | | Build the input modules for GTK+, either as modules or built directly into GTK. Also provide a configure option to build the specified immodules, or all, or the backend immodule(s) or none of the immodules into GTK. Note that for Visual Studio all immodules are built into the GTK DLL by default, like what is done in the Visual Studio projects. Note that building the backend immodules for Quartz, X11 and Wayland are currently untested.
* meson: Build the .rc files on WindowsChun-wei Fan2019-04-113-1/+61
| | | | | | This will ensure that the version info is easily visible from the GDK/GTK+ DLLs, and ensure that the print dialogs will have a more modern look and feel.
* meson: Fix Broadway buildsChun-wei Fan2019-04-111-4/+0
| | | | | Make sure the source files are in line with GTK+-3.x Broadway backend sources.
* meson: Fix introspection generation on LinuxNirbheek Chauhan2019-04-111-62/+13
|