Commit Graph

47237 Commits

Author SHA1 Message Date
Matthias Clasen
adcbd8add9 gtk3-demo: Add a close button to the markup window 2016-05-19 12:10:07 -04:00
Matthias Clasen
13a14d071a gtk-demo: Don't duplicate text in markup example
I forgot to clear the buffer before inserting the new markup. Oops.
2016-05-19 12:10:07 -04:00
Matthieu Gautier
2cb24c7975 revealer: emit notify::child-revealed when animation stops
Depending of float rounding during target calculation, the size of the
GtkRevealer can be set to zero will the animation is not finished.
If the GtkRevealer is in a GtkPaned, it will be hidden and so the animation
will be stopped before it is finished.

In this case, force the emission of the child-revealed signal to let
client code know the animation is finished.

https://bugzilla.gnome.org/show_bug.cgi?id=765973
2016-05-19 12:10:07 -04:00
Timm Bäder
0377a8c408 infobar: Fix typo
Style class names are prefixed with a '.'
2016-05-19 12:10:07 -04:00
Lapo Calamandrei
101c06da53 Adwaita: fix scale theming
rely on toplevel styleclass for scale with marks.

See https://bugzilla.gnome.org/show_bug.cgi?id=766440
2016-05-19 17:27:00 +02:00
Lapo Calamandrei
fb3e626400 color scale: Really sync style classes with GtkScale
sync the alpha scale styleclass too.
2016-05-19 17:24:51 +02:00
Matthias Clasen
6170149393 color scale: Sync style classes with GtkScale
We should use the same style classes here, to avoid theme
confusion.
2016-05-19 11:06:51 -04:00
Ignacio Casal Quinteiro
ee841a282b gtkselectionprivate: minor style fix
This seems to make some issue with the gtk# scanner.
2016-05-19 16:57:55 +02:00
Matthias Clasen
1fde631031 scale: Use more succinct names for style classes
Use .marks-before/after to indicate the presence of marks.
As Lapo points out, compatibility with the previous names
is not really that important, since everything else changed
around it.

https://bugzilla.gnome.org/show_bug.cgi?id=766440
2016-05-19 09:50:23 -04:00
Matthias Clasen
e441c17a0a scale: Bring back marks-related style classes
It turns out that it is too hard (and in some cases, impossible)
to get this information from node positioning, so bring back the
.scale-has-marks-above/below style classes on the main node.

This should allow us to fix the 'pointy sliders'.

https://bugzilla.gnome.org/show_bug.cgi?id=766440
2016-05-18 13:02:11 -04:00
Carlos Garnacho
aec4dbfa94 x11/dnd: Ignore grab broken events from other devices than our DnD device.
The GdkDragContext should only listen to GDK_GRAB_BROKEN events sent to
its own pointer device. It turns out that the passive key grabs mistake
GDK into sending a GdkEventGrabBroken on the master keyboard, which the
DnD machinery mistakes as a signal to cancel the operation.

https://bugzilla.gnome.org/show_bug.cgi?id=766442
2016-05-18 13:09:55 +02:00
Baurzhan Muftakhidinov
d1585a7a60 Updated Kazakh translation 2016-05-17 10:18:52 +00:00
Matthias Clasen
b893b62d7a Docs: Clarify life cycle issue
gtk_gesture_get_last_event() wasn't very clear about how long
it is safe to use the returned pointer.

(cherry picked from commit c891ceb31d)
2016-05-17 10:30:56 +02:00
Matthias Clasen
e006f3ca98 DND: Avoid a use-after-free
Cancelling the gesture causes the last_event pointer to become
invalid. Make a copy of the event so we can keep using it
regardless of the gesture state.

(cherry picked from commit 358eec2972)
2016-05-17 10:30:44 +02:00
Tiago Santos
4424bf8135 Updated Portuguese translation 2016-05-15 21:42:16 +00:00
Tiago Santos
818266a805 Updated Portuguese translation 2016-05-15 21:25:26 +00:00
Chun-wei Fan
1994f37481 Visual Studio builds: Refine "installation" process
Split out the part where we generate/update the caches for the GSchemas
and the icons, so that it is easier to ensure that things continue to
function correctly when we have GlibEtcInstallRoot != CopyDir.
2016-05-10 13:33:40 +08:00
Matthias Clasen
13f45bd4cd 3.20.4 3.20.4 2016-05-09 14:33:41 -04:00
Matthias Clasen
1b07cf6522 Update css node tests for removal of .slider from GtkSwitch 2016-05-09 14:33:41 -04:00
Emmanuele Bassi
1e7ded6a47 docs: Update examples of matching key bindings
The selector for matching GtkEntry has changed to `entry` after 3.20.

https://bugzilla.gnome.org/show_bug.cgi?id=766166
2016-05-09 12:46:35 +01:00
Rafael Fontenelle
207b793316 Updated Brazilian Portuguese translation 2016-05-08 14:25:31 +00:00
Lapo Calamandrei
4ece50a13c Adwaita: relocate a selector
relocate treview acceleditor > label in the treeview section and
add a comment for a testcase.
2016-05-06 18:50:37 +02:00
Lapo Calamandrei
659329c168 Adwaita: tidy treeview style properties...
...removing a double definition in the process.
2016-05-06 15:42:07 +02:00
Matthias Clasen
162e41633d scale: Fix mark positioning at the left/top edge
We were failing to take the widget allocation.x/y into account
when deciding whether we need to push in the mark.

https://bugzilla.gnome.org/show_bug.cgi?id=765922
2016-05-05 15:19:15 -04:00
Carlos Garnacho
6f2187270e x11: Rely on passive keyboard grabs with XI2 for DnD
The active keyboard grab can be spared then. This way the passive
key grabs allow other key combinations (eg. alt-tab) that are not
mandatory to grab here.
2016-05-05 15:04:02 -04:00
Carlos Garnacho
c509a104b7 searchenginetracker: Quote fts match so it's seen as a single phrase
FTS5 has a complex enough syntax that it makes not much sense to wrap
in simple search boxes.

https://bugzilla.gnome.org/show_bug.cgi?id=765981
2016-05-05 15:04:02 -04:00
Matthias Clasen
08e508889f css names are always set
No need to check for it, we set the css name on GtkWidgetClass
ourselves.
2016-05-05 15:04:02 -04:00
Timm Bäder
e9713145f9 switch: Remove .slider from slider gadget
As the documentation states, neither the switch nor the slider gadget
should be using any style classes.
2016-05-05 15:04:02 -04:00
Timm Bäder
f203f7ccc0 switch: Create less pango layouts
Instead of creating 2 pango layouts in every draw() and on in
_get_content_size (and calling into gettext twice in both cases), just
keep the layouts around and create them in only one place.
2016-05-05 15:04:02 -04:00
Timm Bäder
b9926f65a3 label: Also initialize text
So gtk_label_get_text returns the default value of "". Broke the
GtkModelButton default value test.
2016-05-05 15:04:02 -04:00
Timm Bäder
efcfa0ec94 label: don't use set_text in gtk_label_new
It would just set up lots of things with the default values, but a
common case is that a few gtk_label_set_* calls follow.
2016-05-05 15:04:02 -04:00
Timm Bäder
200ed52e92 label: minimum/natural size parameters are not nullable
Stop comparing them to NULL.
2016-05-05 15:04:02 -04:00
Timm Bäder
304e2d5711 label: Don't set out parameters twice
We set them later again when we calculate the vertical size, so just
move the general assignment to -1 into the horizontal branch.
2016-05-05 15:04:02 -04:00
Timm Bäder
0a3122b541 widget: Remove useless NULL check
We are checking for allocation != NULL at the beginning of the function
already. This also means that the allocation parameter is not nullable.
2016-05-05 15:04:01 -04:00
Benjamin Otte
1bac6684f1 cssimagebuiltin: Remove icons that don't draw anything anymore 2016-05-05 15:04:01 -04:00
Benjamin Otte
9d1a64455b cssimagebuiltin: Remove unused variables 2016-05-05 15:04:01 -04:00
Matthias Clasen
c46bfcf752 css: Stop drawing double borders for builtins
The fallback code for rendering builtin checks, radios
and expanders was using border parameters. With the generic
gadget borders using the same parameters, this was giving
double borders.
2016-05-05 15:04:01 -04:00
Timm Bäder
bab6cb6d97 shadowsvalue: Don't draw invisible box shadows 2016-05-05 15:04:01 -04:00
Matthias Clasen
f58aaf2ccf Fix gtk_paned_set_position to set position_set consistently
As pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=765676,
we were failing to set position_set if the position did not change.
2016-05-05 15:04:01 -04:00
Руслан Ижбулатов
86855f7531 GtkPlacesView: check for network:// URI support before using it
Specifically, this URI is not supported on Windows, but GFile will
do its "best" and turn it into GLocalFile("$pwd/network"), with
spectacularly bad results.

https://bugzilla.gnome.org/show_bug.cgi?id=765858
2016-05-05 15:04:01 -04:00
Carlos Garnacho
25672b7f39 gdkevents: Free motion events discarded by motion compression
Those should be freed together with their list link.
2016-05-05 15:04:01 -04:00
Matthias Clasen
1065506257 dnd: Make sure to free a stashed event
I am not sure if this happens in practice, but better to be safe.
2016-05-05 15:04:01 -04:00
Matthias Clasen
e3e84de96c gesture: Don't leak stashed events
These events were never freed.
2016-05-05 15:04:01 -04:00
Matthias Clasen
964eb99a5e Drop unused macros
These have been sitting here forever, unused. Time to drop them
2016-05-05 15:04:01 -04:00
Matthias Clasen
518023df56 x11: drop a useless list
We were keeping all the event sources in a list, only to remove
them at the end of their life. Not useful.
2016-05-05 15:04:01 -04:00
Matthias Clasen
86f197893a wayland: drop a useless list
We were keeping all the event sources in a list, only to remove
them at the end of their life. Not useful.
2016-05-05 15:04:01 -04:00
Matthias Clasen
ac26fc3be4 wayland: Tag the event source with the acutal display name 2016-05-05 15:04:00 -04:00
Matthias Clasen
4ad8436316 wayland: Make gdk_display_get_name work
It should just return the same as gdk_screen_make_display_name.
2016-05-05 15:04:00 -04:00
Matthias Clasen
631123bbd4 Use a better hash for arcs 2016-05-05 15:04:00 -04:00
Matthias Clasen
5f9a19ff33 box gadget: Redo expand flag handling
We only keep one align flag per child, so it seems odd to
keep separate h/v expand flags. Just keep one expand flag
and interpret it according to orientation. Allow setting
the expand flag for child widgets too, though, so we can
make widget expand without interfering with the recursive
widget expand flag.

Update all callers.

Use the new possibility of expanding child widgets to make
the label of check and radio buttons expand. This fixes
unexpected behavior of these widgets in RTL in some places.

https://bugzilla.gnome.org/show_bug.cgi?id=765742
2016-05-05 15:04:00 -04:00