| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Replace these calls with direct use of GMainContext api.
|
|
|
|
|
| |
Stop using gtk_main and gtk_main_quit in tests and
examples. These APIs are on the way out.
|
|
|
|
| |
Just use the GMainContext api directly.
|
|
|
|
|
|
| |
Instead, emit ::event on the surface. Neither of
these is a proper test api, but one works as well
as the other.
|
|
|
|
| |
Just use GtkBox instead
|
|\
| |
| |
| |
| | |
Better test isolation
See merge request GNOME/gtk!1391
|
| |
| |
| |
| |
| |
| | |
Not having an a11y bus around causes warnings from
at-spi, which make tests fail. Explicitly ignore those
warnings.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
These days initilizing gtk may create a connection to the sesson bus,
so we have to initialize GTestDBus before initalizing gtk, or we'll
use the address of the "real" session bus (and remember that in the
global).
To further muck things up, g_test_dbus_up() resets important env
vars like DISPLAY and XDG_RUNTIME_DIR, which we have to re-set.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This adds a GDK_DEBUG=default-settings flag which disables reads
from xsettings and Xft resources, and enables this for the testsuite.
This is one less way to get different testresults depending on the
environment. In particular, it was failing the css tests for me
due to getting the wrong font size because i have a different dpi.
|
| |
| |
| |
| |
| |
| |
| | |
Stylecontexts are on their way out and I'm removing API that the
testsuite was relying on, so remove the tests.
Put the useful parts of the tests elsewhere.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Instead, rely on people passing fallbacks explicitly.
Alternatively, GThemedIcon provides the functionality to create
fallbacks, which is what GtkImage and the testsuite now use.
That method is slightly better, too, so the expected test results
have been updated accordingly.
|
| |
| |
| |
| | |
This way, we can remove gtk_icon_theme_choose_icon() completely.
|
| |
| |
| |
| |
| |
| |
| |
| | |
There is no way to query contexts or do anything useful with them.
So don't keep track of them and don't make them an argument in public
APIs with the docs saying "I don't know what to use here, maybe read
some spec somewhere".
|
| |
| |
| |
| |
| |
| |
| |
| | |
We expose no API to get at any colors for drawing symbolics, so we
shouldn't have APIs to draw with them.
Apart from that, those APIs look like a box of crayons, not like an
icontheme.
|
| |
| |
| |
| |
| |
| | |
Most users were just forgetting to set the proper flags.
And flags aren't the right way to set this anyway, it was just
acceptable as a workaround during GTK3 to not break API.
|
| |
| |
| |
| |
| |
| |
| | |
Widgets would not use them properly. In fact, the only user was using
them wrong.
As icons are loaded async by default, this call isn't necessary.
|
|/
|
|
|
|
|
| |
The API encouraged wrong usage - most of the users were indeed wrong.
Use the correct version instead:
gtk_icon_theme_get_for_display (gtk_widget_get_display ())
|
|
|
|
|
| |
This is set on the GTask and lower priority will be loaded before,
this can be used to prioritize some icons for preloading.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
... and all associated demos and tests.
|
|
|
|
|
|
| |
We've changed some of the profiler mark names to
be clearer and more unique. Update the tests that
look for those marks to use the new names.
|
|
|
|
| |
Reuse the performance test for layout and snapshot timings.
|
|
|
|
|
| |
GtkDragIcon needs a special surface, so skip it
in the notify tests.
|
| |
|
|
|
|
| |
Menus are going away.
|
| |
|
|
|
|
|
|
|
|
|
| |
When looking for the get_type function for GThemedIcon,
try both g_themed_icon_get_type and gthemed_icon_get_type
The former is what gio has, the latter is still supported
to avoid breaking gweather_location_get_type.
Update tests to cover this new case.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
GtkBuilderScope is an interface that provides the scope that a builder
instance operates in.
It creates closures and resolves types. Language bindings are meant to
use this interface to customize the behavior of builder files, in
particular when instantiating templates.
A default implementation for C is provided via GtkBuilderCScope (to keep
with the awkward naming that glib uses for closures). It is derivable on
purpose so that languages or extensions that extend C can use it.
The reftest code in fact does derive GtkBuilderCScope for its own scope
implementation that implements looking up symbols in modules.
gtk-widget-factory was updated to use the new GtkBuilderCScope to add
its custom callback symbols.
So it does it different from gtk-demo, which uses the normal way of
exporting symbols for dlsym() and thereby makes the 2 demos test the 2
ways GtkBuilder uses for looking up symbols.
|
|
|
|
|
|
| |
They were failing to return a reference where they
need to. This was uncovered by fixing an unrelated
ref leak.
|
|
|
|
|
|
|
|
| |
All the list model tests were leaking items,
because g_list_model_get_item is transfer full.
Fixing these unveils a crash in the treelistmodel
and maplistmodel tests.
|
|
|
|
|
|
|
|
|
|
|
|
| |
We use a compilation symbol in our build to allow the inclusion of
specific headers while building GTK, to avoid the need to include only
the global header.
Each namespace has its own compilation symbol because we used to have
different libraries, and strict symbol visibility between libraries;
now that we have a single library, and we can use private symbols across
namespaces while building GTK, we should have a single compilation
symbol, and simplify the build rules.
|
|
|
|
|
|
| |
gtk_builder_connect_signals() is no longer necessary, because all the
setup that made it necessary to have this extra step is now done
automatically via the closure functions.
|
|
|
|
|
|
|
|
| |
This is pretty unused and gets in the way of the next steps.
A potential side effect is that for templates the widget was passed as
the user data argument. If that turns out to be important, we have to
special case that situation.
|
|
|
|
| |
... and don't instantly abort, test the rest of the properties, too.
|
|
|
|
|
|
| |
Don't allow manual creation of popover menus
anymore. This lets us also make GtkModelButton
private
|
|
|
|
|
|
|
|
|
| |
This adds support using the GtkTextHistory helper for undo/redo to the
GtkText widget. It is similar in use to GtkTextView, but with a simplified
interface.
You can disable undo support using the GtkText:enable-undo property. By
default, it is enabled.
|
|
|
|
| |
Allows not to have anything selected.
|
|
|
|
|
|
|
| |
1. Make the model property construct-only. Allowing to change the
model has invalid side effects.
2. Add a getter for the model property.
|
|
|
|
|
|
| |
contains-focus now returns TRUE when is-focus is TRUE instead of FALSE.
Fixes #2184
|
|
|
|
| |
...and use them.
|
| |
|
| |
|
|
|
|
|
|
|
| |
infobars being a GtkBox doesn't make sense.
Also implement infobars without exposing internal children.
Closes #1957 because it adds the bottom border.
|
|
|
|
| |
Fixes https://gitlab.gnome.org/GNOME/gtk/issues/2080
|
|
|
|
|
| |
Until we can depend on pango 1.44, these will
fail in ci. Partially reverts f1c7803f800588e
|