Piotr Drąg
8bdcff3320
Update POTFILES.in
2018-09-16 21:02:31 +02:00
Benjamin Otte
9ffd88012d
docs: Add missing TreeListModel docs
2018-09-16 19:39:39 +02:00
Matthias Clasen
563fb97f90
Merge branch 'wip/sadiq/fixes' into 'master'
...
gdkselectioninputstream-x11: Fix memory leak
See merge request GNOME/gtk!340
2018-09-16 17:06:29 +00:00
Benjamin Otte
ee5708f543
testtreelistmodel: Display the file icon, because why not
2018-09-16 18:50:17 +02:00
Benjamin Otte
b7bf04fabd
inspector: Update the controllers list to show parent controllers
...
Now we show all the controllers that are relevant when widget gets sent
events.
2018-09-16 18:50:17 +02:00
Benjamin Otte
b94b8ac38d
testtreelistmodel: Make the statusbar display more info
...
Now display how many items were filtered (if any) and how many
directories remain to be sanned (if any).
2018-09-16 18:50:17 +02:00
Benjamin Otte
afd69db678
testtreelistmodel: Sort files by name
2018-09-16 18:50:17 +02:00
Benjamin Otte
f3834138f7
GtkSortListModel: Add
2018-09-16 18:50:17 +02:00
Benjamin Otte
64b7c123cc
testtreelistmodel: Add search
...
Add a simple search that does a case insensitive substring search of the
file paths.
2018-09-16 18:50:17 +02:00
Benjamin Otte
fcb780ee13
testtreelistmodel: Make the directory loading async
...
This is way more complicated than it should be, because it requires
manually limiting the number of open file enumerators.
On the other hand, it exhaustively tests the items-changed emission of
all involved listmodels because those signals come in pretty much
randomly.
It's also 50% slower than the sync version, with the caeat that the sync
version only shows the UI after it's done loading, while this version
shows it right away.
2018-09-16 18:50:17 +02:00
Benjamin Otte
65b795b861
testtreelistmodel: Add a hack to handle LONG lists
...
... and make the lists long by autoexpanding the tree.
2018-09-16 18:50:17 +02:00
Benjamin Otte
64d97b233b
GtkSliceListModel: add
2018-09-16 18:50:17 +02:00
Benjamin Otte
db8474e5b1
inspector: Make controllers page use gtk_list_box_bind_model()
2018-09-16 18:50:17 +02:00
Benjamin Otte
5e8983883e
inspector: Rename "Gestures" page to "Controllers"
...
And rename GtkInspectorGestures => GtkInspectorControllers, too.
2018-09-16 18:50:17 +02:00
Benjamin Otte
59006e2e03
inspector: Make gestures page handle all controllers
...
This requires removing support for gesture groups.
2018-09-16 18:50:17 +02:00
Benjamin Otte
b6acc31d44
GtkMapListModel: add
2018-09-16 18:50:17 +02:00
Benjamin Otte
6d0fe46cba
propertylookuplistmodel: Add
...
This model just takes an object and a property name and recursively
looks it up. In particular, I want it for:
widget, widget.parent, widget.parent.parent, ...
2018-09-16 18:50:17 +02:00
Benjamin Otte
05e752e096
inspector: Turn object tree into a GtkListBox
...
The code gets rid of the GtkTreeView and replaces it with a GtkListBox.
Most of the logic is now done via GListModel subclasses.
A big change is that this new list is now tracking updates itself and
doesn't need to be manually updated. All code that used to cause rescans
or add forgotten objects to the tree has been removed.
If objects are missing from the object tree, the logic for tracking them
needs to be added.
2018-09-16 18:50:17 +02:00
Benjamin Otte
2237009983
testsuite: Disable some tests with older glib
...
Fixes CI.
2018-09-16 18:50:17 +02:00
Benjamin Otte
417ac4ab43
inspector: Use a GtkPicture to display render nodes
...
Instead of the outdated render node view, use modern GTK APIs.
2018-09-16 18:50:17 +02:00
Benjamin Otte
4495eaae84
inspector: Add an icon to the render node list
2018-09-16 18:50:17 +02:00
Benjamin Otte
aba76fe8e9
inspector: Make the render node tree use a ListBox
...
It used to be a treeview.
2018-09-16 18:50:17 +02:00
Benjamin Otte
867042f88f
widget: Add gtk_widget_observe_controllers()
...
This mirrors gtk_widget_observe_children() - just that it observes the
controllers, not the children.
2018-09-16 18:50:17 +02:00
Benjamin Otte
32ec7dec61
gtk: Add GtkFlattenListModel
...
We can flatten lists of lists into lists now!
2018-09-16 18:50:17 +02:00
Benjamin Otte
d6161e09cd
treelistmodel: Add more API to navigate the tree
...
This adds functionality from GtkTreeIter into GtkTreeListRow that allows
finding items in the model and getting their position for use in
GtkListBox.
2018-09-16 18:50:17 +02:00
Benjamin Otte
4b5fb5ec79
treelistmodel: Refactor to add GtkTreeListRow
...
This patch does multiple things:
1. Add a custom persistent per-row object.
2. Move all per-row API to that object. This means notifications are now
possible.
3. Add a "passthrough" construct-only property to the TreeListModel that
influences if the model returns these new object or passes through
the ones from the model.
This greatly simplifies the code needed to be written for widgetry,
because one can just connect the per-row object to the expanders that
expand and collapse rows.
As an added power feature, these objects can also be passed through
further models (like filter models).
It also adds kind of a hack to Adwaita to make the test look neat.
2018-09-16 18:50:17 +02:00
Benjamin Otte
4f70f72349
gtk: Add GtkFilterListModel
...
This is a GListModel implementation that filters the given source model.
2018-09-16 18:50:17 +02:00
Benjamin Otte
dd94129e27
widget: Add gtk_widget_observe_children()
...
This creates a listmodel that tracks a widget's children. Doing so turns
adding/removing children from O(1) to O(N) though, so use with caution.
2018-09-16 18:50:17 +02:00
Benjamin Otte
63e5b827ed
window: Add gtk_window_get_toplevels()
...
This one returns a list of all toplevel windows.
2018-09-16 18:50:17 +02:00
Benjamin Otte
573c63973a
gtk: Add GtkTreeListModel
...
This is a GListModel implementation with a neat API that can be used to
implement trees inside GtkListBox.
2018-09-16 18:50:17 +02:00
Mohammed Sadiq
1ce960c85b
gdkselectioninputstream-x11: Fix memory leak
2018-09-16 20:08:25 +05:30
Matthias Clasen
d7a5dcba0b
gtk_application_inihit: allow no reason
...
We document this argument as nullable, so treat it as such.
Closes: https://gitlab.gnome.org/GNOME/gtk/issues/1327
2018-09-13 23:31:48 -04:00
Emin Tufan Çetin
a4b1c6b384
Update Turkish translation
2018-09-11 20:17:29 +00:00
Jakub Steiner
0edec9bcae
Merge branch 'adwaita-fixes' into 'master'
...
Adwaita fixes
See merge request GNOME/gtk!333
2018-09-10 14:29:54 +00:00
Adrien Plazas
7d12a843f2
Adwaita: Set selection mode to headerbars if it's on ancestors
...
This allows to set the container of the headerbars in selection mode
rather than having to set the mode to each element of the title bar.
2018-09-10 15:51:12 +02:00
Adrien Plazas
867efe2e33
Adwaita: Style separator.sidebar
...
Let separators be declared as sidebars to have the same style as those
drawn by GtkStackSidebar. This also let them handle the selection-mode
class, whether they are assigned it or they descend from something in
selection mode.
Also drop setting the selection mode color for non-sidebar separators.
This is convenient when building a custom sidebar using a GtkSeparator
and to extend a sidebar to the title bar.
2018-09-10 15:50:43 +02:00
Adrien Plazas
a121bfa7ec
Adwaita: Drop the background of nested headerbars
...
This is needed to work around headerbar sliding animation issues without
refactoring Adwaita's support of titlebars and headerbars as it may
break applications.
https://gitlab.gnome.org/GNOME/gtk/issues/1264
2018-09-10 15:49:37 +02:00
Jakub Steiner
02758cd48d
Merge branch 'wip/adwaita/linked-entry-error-state-fix-master' into 'master'
...
Adwaita: Fix linked elements in error state
See merge request GNOME/gtk!315
2018-09-10 10:47:05 +00:00
Jakub Steiner
005f932d13
Merge branch 'css-fix' into 'master'
...
win32 theme: Fix css syntax error
See merge request GNOME/gtk!324
2018-09-07 20:35:07 +00:00
Peter Simonyi
4e8c06eb7a
win32 theme: Fix css syntax error
2018-09-07 08:31:22 -04:00
Matthias Clasen
ca9aa23619
Add devel style to demos
...
Lets show this off. Its cool.
2018-09-05 20:10:41 -04:00
Matthias Clasen
ae2c765ffd
Fix portal path handling
...
This was broken when I recently introduced this helper
function.
2018-09-05 19:54:32 -04:00
Benjamin Otte
ab9455ea1b
rendernodepaintable: Fix clipping
...
We need to translate before clipping, otherwise we clip in totally the
wrong place.
2018-09-05 16:25:07 +02:00
Benjamin Otte
89522e6923
iconhelper: Fix drawing of empty and paintable helpers
...
Empty helpers did try to draw a NULL paintable (not good) and in the
non-null case code used the wrong width/height.
2018-09-05 06:34:32 +02:00
Timm Bäder
506a4ddad5
Merge branch 'gtkbbox-doc-fix' into 'master'
...
Minor fixes in documentation of gtkbbox
See merge request GNOME/gtk!318
2018-09-04 10:02:05 +00:00
Lennart Buhl
272e4a0a9d
Minor fixes in documentation of gtkbbox
2018-09-03 19:53:16 +02:00
Ask Hjorth Larsen
16deffb48d
Updated Danish translation of gtk-properties
2018-09-02 23:46:33 +02:00
Ask Hjorth Larsen
a60e951941
Updated Danish translation of gtk
2018-09-02 23:45:47 +02:00
Ask Hjorth Larsen
05306470b0
Updated Danish translation of gtk
2018-09-02 23:19:35 +02:00
Ask Hjorth Larsen
803a8cf333
Updated Danish translation of gtk-properties
2018-09-02 21:42:45 +02:00