Benjamin Otte
8a08a325be
dnd: Implement gtk_drag_get_source_widget() differently
...
Instead of keeping a list of source contexts, just use the current
drag's info.
2018-06-18 23:49:52 +02:00
Benjamin Otte
d02b185a87
dnd: Add gdk_event_get_drop()
...
And remove gdk_event_get_drag_context().
All GTK code now only uses GdkDrop for dropping.
2018-06-18 23:49:52 +02:00
Benjamin Otte
b00609c21c
dnd: Make drag-motion and drag-drop signals use GdkDrop
2018-06-18 23:49:52 +02:00
Benjamin Otte
6d7cb2b781
dnd: Make drag-data-received use a GdkDrop
2018-06-18 23:49:52 +02:00
Benjamin Otte
314eaf7d10
widget: Make GtkWidgetClass::drag_leave() take a GdkDrop
...
Drag Contexts are on their way out!
2018-06-18 23:49:20 +02:00
Benjamin Otte
5b0a6a52c1
dnd: Get rid of gtk_drag_finish()
...
It's just a wrapper around gdk_drag_finish(), so use that one instead.
2018-06-18 23:49:20 +02:00
Benjamin Otte
13ae11ee01
dnd: Rename gdk_drop_finish() => gdk_drag_finish()
...
This is a simple rename, so that we can reintroduce gdk_drop_finish()
with the GdkDrop object.
2018-06-18 23:49:19 +02:00
Benjamin Otte
6919d8c532
drop: Move gdk_drop_read_async() to GdkDrop class
2018-06-18 23:49:19 +02:00
Matthias Clasen
841a29837e
Merge branch 'lrn/misc-gtk4-fixes' into 'master'
...
Misc GTK4 fixes
See merge request GNOME/gtk!195
2018-06-18 21:37:42 +00:00
Matthias Clasen
7554384b2d
Merge branch 'win32-filechooser-fix-file-list-order' into 'master'
...
win32 file chooser: add missing g_slist_reverse
See merge request GNOME/gtk!199
2018-06-18 20:09:47 +00:00
Timm Bäder
64313f4a4b
themes: Don't handle box.linked special
...
We don't reverse the css nodes anymore in RTL layouts.
2018-06-18 19:39:32 +02:00
Timm Bäder
34f556fc3e
filechooserbutton: Remove priv pointer
2018-06-18 17:35:03 +02:00
Timm Bäder
218b39fe01
GtkStyleContext: Remove the frame clock
...
It's unused within GtkStyleContext.
2018-06-18 17:35:03 +02:00
Timm Bäder
70c8cfa480
dnd: Fix up a comment
...
The below function does not take a GtkIconHelper anymore.
2018-06-18 17:35:03 +02:00
Timm Bäder
501efeb6b9
colorscale: Remove priv pointer
2018-06-18 17:35:03 +02:00
Timm Bäder
a7d8127d59
fontbutton: Remove priv pointer
2018-06-18 17:35:03 +02:00
Timm Bäder
beb4cb0e37
radiobutton: remove priv pointer
2018-06-18 17:35:03 +02:00
Timm Bäder
346ec706f7
picture: Fix up some docs
...
Use nullable instead of allow-none consistently, remove trailing
whitespace and fix some c&p problems.
2018-06-18 17:35:03 +02:00
Timm Bäder
d8274856de
drawingarea: Clarify some comments
2018-06-18 17:35:03 +02:00
Timm Bäder
3756234708
messagedialog: Remove priv pointer
2018-06-18 17:35:03 +02:00
Timm Bäder
2d6955285c
paned: Allocation x/y are always 0
...
The allocation position we get passed to size_allocate is always 0/0
these days.
2018-06-18 17:35:03 +02:00
Timm Bäder
10a0d6252e
paned: Remove handle_pos member
...
Query the handle bounds on demand instead.
2018-06-18 17:35:03 +02:00
Timm Bäder
f8ddc42638
paned: Chain up in snapshot
...
No need to snapshot all child widgets ourselves, the implementation in
GtkWidget can just do it for us.
2018-06-18 17:35:02 +02:00
Timm Bäder
e9a9bb069f
paned: Remove unnecessary local variable
...
We can just pass the given allocation on.
2018-06-18 17:35:02 +02:00
Timm Bäder
df79f02310
paned: Don't unnecessarily redraw handle in size_allocate
...
We size_allocate it after all, which will redraw it.
2018-06-18 17:35:02 +02:00
Timm Bäder
bd99ca2f04
paned: Store GParamSpecs
...
So we can use the more efficient g_object_notify_by_pspec everywhere.
2018-06-18 17:35:02 +02:00
Timm Bäder
889fcf64b6
Remove gtk_css_node_reverse_children
...
Not needed anymore.
2018-06-18 17:35:02 +02:00
Timm Bäder
3fadb536d9
toolbar: Stop reordering css nodes based on text direction
2018-06-18 17:35:02 +02:00
Timm Bäder
fb0d8eacc3
headerbar: Stop reordering css nodes depending on text direction
2018-06-18 17:35:02 +02:00
Timm Bäder
fffb3161bc
notebook: Stop reversing tabs based on text direction
2018-06-18 17:35:02 +02:00
Timm Bäder
3be2cb8f63
builder: Fix g-i annotations of _get_translation_domain
...
The return value can be null and is (transfer none).
2018-06-18 17:35:02 +02:00
Timm Bäder
8267605ba2
builder: Use TRUE/FALSE for error return values
...
Instead of guint and 0/1.
2018-06-18 17:35:02 +02:00
Timm Bäder
da4d8b7d94
builder: Remove priv pointer
2018-06-18 17:35:02 +02:00
Timm Bäder
01d4538223
box: Don't reorder children based on text direction
...
Make :first-child always be the first child, i.e. the leftest one in LTR
and the rightest one in RTL.
2018-06-18 17:35:02 +02:00
Timm Bäder
da27627696
paned: Don't reorder css nodes based on text direction
2018-06-18 17:35:02 +02:00
Timm Bäder
85e49a1051
center box: Don't reorder css nodes in RTL
...
So widget order matches css order. We will do the same thing with GtkBox
eventually.
2018-06-18 17:35:02 +02:00
Timm Bäder
798944cb26
scrolledwindow: Remove priv pointer
2018-06-18 17:35:02 +02:00
Nicolai Syvertsen
2d7cfdd7ed
win32 file chooser: add missing g_slist_reverse
...
the list is prepended to so we need to reverse the list
before returning
2018-06-18 09:44:46 +00:00
Руслан Ижбулатов
6bf88d90f3
W32: don't put a string literal into gtk_libdir
...
In all other instances gtk_libdir is a dynamically-allocated string,
so dup the literal in this case as well.
2018-06-16 18:22:12 +00:00
Руслан Ижбулатов
fb4d76d380
Add forward declaration for DllMain() in gtkwin32.c
2018-06-16 18:21:42 +00:00
Руслан Ижбулатов
dedc1ee1e5
Use const for media type in devmode_to_settings()
2018-06-16 18:20:49 +00:00
Руслан Ижбулатов
fe76984e89
Add foward declarations to gtk_print_operation_run_without_dialog
2018-06-16 18:20:22 +00:00
Timm Bäder
0b12fd9c1b
center box: Remove snapshot implementation
2018-06-16 10:09:12 +02:00
Timm Bäder
d3ffaa0236
button: Remove measure implementation
...
This is already done by GtkBin.
2018-06-16 10:09:12 +02:00
Timm Bäder
1b208eb457
combobox: Remove priv pointer
2018-06-16 10:09:12 +02:00
Jakub Steiner
c5fa657631
aboutbox: use a more fitting 'design by" role
...
- in most cases, authors listed under "artwork by" are actually responsible for
the design of the app as a whole
Fixes issue #1153
2018-06-14 16:36:38 +02:00
Mohammed Sadiq
bdf3b6f64d
Revert "imcontext: Make size arguments be gsize and not int"
...
This was committed accidently.
This reverts commit eefd2d6f10
.
2018-06-14 11:15:14 +05:30
Benjamin Otte
eefd2d6f10
imcontext: Make size arguments be gsize and not int
...
Otherwise gcc complains when we use these as arguments to g_new() on
32bit architectures with:
../gtk/gtkcomposetable.c: In function ‘gtk_compose_table_list_add_array’:
/usr/include/glib-2.0/glib/gmem.h:217:10: warning: argument 1 range [2147483648, 4294967295] exceeds maximum object size 2147483647 [-Walloc-size-larger-than=]
__p = g_##func##_n (__n, __s); \
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmem.h:279:42: note: in expansion of macro ‘_G_NEW’
#define g_new0(struct_type, n_structs) _G_NEW (struct_type, n_structs, malloc0)
^~~~~~
../gtk/gtkcomposetable.c:851:22: note: in expansion of macro ‘g_new0’
gtk_compose_seqs = g_new0 (guint16, length);
^~~~~~
/usr/include/glib-2.0/glib/gmem.h:96:10: note: in a call to allocation function ‘g_malloc0_n’ declared here
gpointer g_malloc0_n (gsize n_blocks,
^~~~~~~~~~~
2018-06-14 06:37:00 +05:30
Mohammed Sadiq
d4693b2dc8
snapshot: Trivial typo fix in comment
2018-06-13 19:58:01 +05:30
Rico Tzschichholz
b1f934d3b0
picture: Fix g-i annotation warning
2018-06-13 13:08:28 +02:00