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
Matthias Clasen
5a319f66af
Merge branch 'window-activate-grab-4-again' into 'master'
...
gdk: activate surface on keyboard grabs
Closes #85
See merge request GNOME/gtk!174
2018-06-18 11:36:09 +00:00
Samuel Thibault
35417a5a74
gdk: activate surface on keyboard grabs
...
In 01455399e8
("gdk: do not deactivate surface on keyboard grabs"), we
made gdk avoid deactivating surfaces when another application takes a
keyboard grab, by using has_focus_window instead of has_focus. That however
broke activating surfaces when the gdk application acquired a grab itself,
in which case has_focus_window is false but has_focus is true.
We thus actually need to use both: surfaces should be activated either
because we have normal keyboard focus, or because we grabbed the keyboard.
This also renames HAS_FOCUS to APPEARS_FOCUSED to better reflect its
role.
Fixes #85
2018-06-18 10:31:15 +02:00
Piotr Drąg
fdfbbc8246
Update Polish translation
2018-06-17 17:24:07 +02:00
Timm Bäder
f6d70f7225
search bar example: remove unused function
2018-06-16 10:16:41 +02:00
Timm Bäder
0b12fd9c1b
center box: Remove snapshot implementation
2018-06-16 10:09:12 +02:00
Timm Bäder
7f8106f2a9
gl renderer: call glViewport directly
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
Matthias Clasen
1528665662
Merge branch 'wip/lantw/fix-gtkdoc-build-without-wayland' into 'master'
...
docs: Fix gtk-doc build when wayland is disabled
See merge request GNOME/gtk!193
2018-06-15 16:27:44 +00:00
Ting-Wei Lan
751c1877b1
docs: Fix gtk-doc build when wayland is disabled
...
Unconditionally putting 'gdkwayland_inc' in src_dir argument of gtkdoc
call tells gtkdoc-scan to scan source files in a non-existent build
directory, gdk/wayland. To avoid causing build failure when a specific
backend is disabled, we should include directories conditionally.
2018-06-15 23:51:15 +08:00
Matthias Clasen
66e0060836
Merge branch 'design_by' into 'master'
...
aboutbox: use a more fitting 'design by" role
Closes #1153
See merge request GNOME/gtk!192
2018-06-15 02:00:57 +00:00
Mohammed Sadiq
b2db7bb95b
examples: Simplify handling events in search-bar
...
In search-bar example, we can use gtk_search_bar_set_key_capture_widget()
which would simplify handling keyboard events.
2018-06-14 23:23:17 +05:30
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
Mohammed Sadiq
6033bc56b4
examples: Fix alignment of search-bar example
...
The search entry was taking the whole window size.
Let's reduce the size so as to have more natural size.
2018-06-14 11:09:19 +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
daf72e2e96
docs: Update getting started docs
...
We have removed references to private members in our examples.
Let the docs be updated to reflect that.
2018-06-14 05:30:21 +05:30
Mohammed Sadiq
7e98741793
docs: Use gtk_widget_show() to show window
...
gtk_window_show_all() is no longer available (and no longer needed)
2018-06-13 20:15:20 +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
Mohammed Sadiq
fd4bfd5050
build: Fix compiler warnings
2018-06-11 21:12:41 +05:30
Mohammed Sadiq
0c57e3131f
overlay: Use the right property variable name
2018-06-11 17:43:16 +05:30
Benjamin Otte
b22f45b2f6
Merge branch 'wip/sadiq/fixes' into 'master'
...
overlay: Add support for clipping overlay widgets
See merge request GNOME/gtk!189
2018-06-11 11:55:09 +00:00
Mohammed Sadiq
0d46081645
overlay: Add support for clipping overlay widgets
...
Sometimes users may want to restrict the growth of child
widgets in a GtkOverlay to grow atmost the size of the overlay.
Let's add a support for that.
2018-06-11 16:24:29 +05:30
Matthias Clasen
4f632296a5
Merge branch 'lrn/gtk4warnings' into 'master'
...
Fix a lot of warnings in GTK4
See merge request GNOME/gtk!188
2018-06-10 23:14:42 +00:00
Matthias Clasen
c047e97cfa
Merge branch 'master' into 'master'
...
gtk: Add gtk_is_initialized() and gtk_get_main_thread()
See merge request GNOME/gtk!186
2018-06-10 23:05:50 +00:00
Matthias Clasen
bc13a58f3c
Merge branch 'lrn/aligned-alloc' into 'master'
...
Aligned allocators for GTK4
Closes #856
See merge request GNOME/gtk!187
2018-06-10 22:05:12 +00:00
Руслан Ижбулатов
43f37894b0
Use correct stat struct for ftw()
...
check_dir_mtime() is called by ftw() and is given
the real stat struct, not its glib version (which may
or may not be the same as "struct stat").
This is irrelevant for MSVC (it has no ftw()) and
works correctly for MinGW-w64 (which declares stat
structures correctly). If mingw.org complains, add
a special ifdef for it later.
2018-06-10 21:21:27 +00:00
Руслан Ижбулатов
0365dadad9
See if _MSC_VER is defined before checking its value
2018-06-10 21:21:25 +00:00
Руслан Ижбулатов
9330be8cf9
Fix missing default switch case in DllMain
2018-06-10 21:21:24 +00:00
Руслан Ижбулатов
43d6fe2583
Fix missing default switch cases in gtkimcontextsimple
2018-06-10 21:21:22 +00:00
Руслан Ижбулатов
411c535956
Fix some warnings in W32 part of gtkmain
...
* Add missing default cases
* Cast string literals as non-const
2018-06-10 21:21:20 +00:00
Руслан Ижбулатов
cddc9ff424
Fix a typo in W32 event-handling code
...
It's quite old, but mostly harmless (both "message == WM_KEYUP"
and "message = WM_KEYUP" evaluate to not-FALSE, and message
value is not used after that line).
2018-06-10 21:21:19 +00:00
Руслан Ижбулатов
e73dc5c779
Fix a warning about uninitialized variable
2018-06-10 21:21:17 +00:00
Руслан Ижбулатов
93f8f3c406
Remove unused code in gdksurface-win32.c
2018-06-10 21:21:16 +00:00
Руслан Ижбулатов
3acd26c64a
Fix more signedness issues in W32 backend
2018-06-10 21:21:14 +00:00
Руслан Ижбулатов
cacdef8db7
A quick and dirty fix for a circular allocation issue
...
query_targets() tried to write to struct that
wasn't yet allocated.
This code is going to change soon, so this is a temporary
fix until then.
2018-06-10 21:21:12 +00:00