Timm Bäder
2c174319ea
widget-factory: Fix listbox row alignment
2017-05-01 21:21:40 +02:00
Timm Bäder
5c4934cfc0
Chain up in size-allocate implementations
...
Otherwise we're not setting an allocation at all.
2017-05-01 21:21:40 +02:00
Matthias Clasen
92b0d2e8ea
Remove GtkWindow::hide-titlebar-when-maximized
...
This was only every implemented under X11, and with CSD,
this is clearly in the application realm. We should not
pretend that we can support it on the toolkit level.
https://bugzilla.gnome.org/show_bug.cgi?id=775061
2017-05-01 13:26:46 -04:00
Timm Bäder
c405fe23bf
widget: remove double assignment
...
We never read the value we assign here.
2017-04-30 20:22:42 +02:00
Timm Bäder
9c347c3012
placesview: Remove duplicate GtkMountOperation assignment
...
we assign a new mount operation a few lines later again.
2017-04-30 20:22:34 +02:00
Timm Bäder
6ae0aef840
levelbar: Don't allocate 0 blocks
...
Could result in a division by zero later on and doesn't make a lot of
sense anyway.
2017-04-30 20:22:25 +02:00
Timm Bäder
b950b775fa
gtksettings: Remove unnecessary deprecation guards
...
Nothing between them is deprecated.
2017-04-30 19:48:39 +02:00
Timm Bäder
1b36c325eb
widget: Fold queue_resize_on_widget into its only caller
2017-04-30 18:38:10 +02:00
Kukuh Syafaat
596317c25b
Update Indonesian translation
2017-04-29 02:08:22 +00:00
Emmanuele Bassi
2a4f07ed9f
wayland: Annotate the log_handler function
...
The log_handler() internal function is a candidate for the GCC format
attribute for printf-like functions.
2017-04-28 23:12:26 +01:00
Emmanuele Bassi
739588cc3c
wayland: Add declaration of private get_type() function
2017-04-28 23:03:14 +01:00
Emmanuele Bassi
278e54b88d
gdk: Make more private functions static
...
These symbols are not exported and are local to their compilation unit.
2017-04-28 23:03:10 +01:00
Emmanuele Bassi
7619c9c739
wayland: Mark private function as static
2017-04-28 22:47:29 +01:00
Emmanuele Bassi
82800fae52
wayland: Mark private function as static
...
The selection_lookup_offer_by_atom() function is private to the file and
not used elsewhere.
2017-04-28 22:21:19 +01:00
Emmanuele Bassi
4724a89022
build: Don't include the marshallers header file
...
We used to inject the inclusion of the generated header file into the
generated body of the marshallers source code in order to avoid compiler
warnings about missing prototypes. The glib-genmarshal utility has been
fixed in GLib to include the prototype in the generated source, so now
we're going to trip -Werror=redundant-decls.
2017-04-28 21:50:41 +01:00
Timm Bäder
bb1deaafa4
migration guide: Extend GtkBox child property section
...
Mention the removed expand and fill child properties as well.
2017-04-28 17:14:10 +02:00
Olivier Fourdan
502e0a3a9e
wayland: make key event log more explicit
...
With Wayland, GDK_DEBUG=events would log key events but not explicitly
state whether the event is a key press or release, or if it's
originating from a key repeat.
Add some more verbosity to make sure these informations are logged on
key delivery when GDK_DEBUG is set.
https://bugzilla.gnome.org/show_bug.cgi?id=781767
2017-04-28 13:09:39 +02:00
Timm Bäder
bbe5385541
frame: Properly initialize clip
...
GtkCssGadget initializes the content clip to {0, 0, 0, 0}, so we can't
just union the child clip with it.
2017-04-28 11:27:09 +02:00
Timm Bäder
70aeeab355
grid: Remove unnecessary NULL checks
...
The minimum and natural pointers passed to measure are never NULL and
that's the only place where we call gtk_grid_get_size_for_size.
2017-04-28 11:27:09 +02:00
Timm Bäder
79de641e9b
GtkGestureMultiPress: Remove superfluous NULL check
...
The rect parameter in gtk_gesture_multi_press_set_area is annotated as
nullable and the code handles the rect==NULL case, but the
g_return_if_fail kept that case from ever happening.
2017-04-28 11:27:09 +02:00
Timm Bäder
80fe1dfe02
label: Remove dead ternary operator
2017-04-28 11:27:09 +02:00
Timm Bäder
2a0a87049e
headerbar: Compute clip directly
2017-04-28 11:27:09 +02:00
Timm Bäder
179b8b0cbc
Fix gdk_rectangle_union calls
...
Turns out that the destination is the last parameter, not the first one.
This fixes the flickering in the first page of the widget-factory when
using the expander on page 2.
2017-04-28 11:27:09 +02:00
Timm Bäder
b97b8b6ec1
button: Compute clip directly
2017-04-28 11:27:08 +02:00
Timm Bäder
a50dc94381
filechooserwidget: Remove always-false error case
...
_gtk_search_engine_new never returns NULL, it always returns a valid
GObject with at least the simple search engine initialized.
2017-04-28 11:27:08 +02:00
Timm Bäder
03bfdce406
sidebarrow: Remove useless size group
...
Nice try, but size groups don't work with invisible widgets anyway.
Invisible widgets request 0×0.
2017-04-28 11:27:08 +02:00
Florian Müllner
5527732763
gdk: Relicense translate_wm_button_layout_to_gtk()
...
It is generally a good idea to license individual files under the
same terms as the project license (in particular when the mismatch
boils down to having copied the wrong license header), so relicense
the code under the LGPL.
https://bugzilla.gnome.org/show_bug.cgi?id=781422
2017-04-27 21:05:12 +02:00
Piotr Drąg
69fe6207ff
Update Polish translation
2017-04-26 19:44:06 +02:00
Emmanuele Bassi
fca3f93114
gsk: Mark finalize() implementation as static
2017-04-26 17:28:14 +01:00
Emmanuele Bassi
9442ef055d
gsk: Mark internal symbol as static
...
Nothing uses this function outside of GskVulkaneRenderPass.
2017-04-26 17:27:24 +01:00
Emmanuele Bassi
c71aeff9b2
gsk: Mark internal symbols as static
...
These symbols are not used anywhere outside of GskVulkanImage.
2017-04-26 17:25:24 +01:00
Emmanuele Bassi
7ae5b516ac
gsk: Mark private symbol as static
...
The ellipsis_contains_point() function is not used anywhere else.
2017-04-26 17:25:24 +01:00
Stas Solovey
ed2aaafa2c
Update Russian translation
...
(cherry picked from commit edf00914e5
)
2017-04-26 14:44:56 +00:00
Daniel Boles
8308ce1e61
Scale: Fix documentation of digits per last revert
...
Revert doc changes that were for the behavioural change just reverted.
Add a clarifying note that, under the original behaviour, :digits only
rounds the Adjustment if :draw-value is TRUE at the time of the change.
https://bugzilla.gnome.org/show_bug.cgi?id=781605
https://bugzilla.gnome.org/show_bug.cgi?id=358970
2017-04-26 12:32:07 +01:00
Matthias Clasen
197355e15a
Revert "Scale: Always sync ::digits to Range::round-digits"
...
This reverts commit 4a6bd134bd
.
This change in behavior broke various things.
https://bugzilla.gnome.org/show_bug.cgi?id=781605
2017-04-26 07:30:19 -04:00
Timm Bäder
dfcde113e8
GskRoundedRect: Include private header file
...
So we don't have implementations without previous prototypes.
2017-04-26 11:07:40 +02:00
Timm Bäder
0105bf82c0
GskRenderNode: Fix set_scaling_filters function name
...
The implementation sed _filters while the prototype used _filter.
2017-04-26 11:06:55 +02:00
Timm Bäder
6c7f1d8885
GskRenderNode: add missing prototype
2017-04-26 11:06:32 +02:00
Timm Bäder
57b8a136bf
reftests: Remove reference to deleted files
2017-04-25 20:55:56 +02:00
Timm Bäder
6364231571
testdnd2: Don't pass a toplevel to gtk_drag_set_icon_widget
2017-04-25 20:30:37 +02:00
Timm Bäder
db4b1d28f5
label: Remove angle property
2017-04-25 20:30:37 +02:00
Timm Bäder
cb80b32ee8
label: Move if statement where it makes sense
...
In the else branch of the if statement before this one, we're assigning
*smallest = *widest anyway, so this if statement is never true. Move it
to the if block before instead, where it can apply.
2017-04-25 20:30:37 +02:00
Timm Bäder
4e0f10955a
label: Remove useless if statements
...
We never pass nullable pointers into get_size_for_allocation.
2017-04-25 20:30:37 +02:00
Timm Bäder
2fc92db25c
label: Remove useless if statement
...
The if before this one already makes sure priv->wrap is TRUE.
2017-04-25 20:30:37 +02:00
Timm Bäder
6b12e3948e
gtkmain: Fix code example
...
gtk_init doesn't take parameters anymore
2017-04-25 20:30:37 +02:00
Timm Bäder
29f7bde023
label: Don't use gtk_widget_set_simple_clip
...
The clip returned by gtk_css_gadget_allocate already includes the
box-shadow size and we manually care about the text-shadow size.
2017-04-25 20:30:37 +02:00
Timm Bäder
b01b5267bb
frame: Compute clip directly
2017-04-25 20:30:37 +02:00
Timm Bäder
167fc2b659
listbox: Compute clips directly
2017-04-25 20:30:37 +02:00
Timm Bäder
fe429f8806
gtkwidget: Queue a resize on the parent when unparenting
...
gtk_widget_set_parent (via gtk_widget_reposition_after) will queue a
resize on the parent widget automatically when adding a child widget, so
unparent should do the same
2017-04-25 20:30:37 +02:00
Timm Bäder
7e1373a08c
widget: Fix set_parent/unparent docs to not mention GtkContainer
...
They can both be used by non-container widgets these days.
2017-04-25 20:30:37 +02:00