Georges Basile Stavracas Neto
657fcd0717
tests: adapt testscrolledwindow to have max content sizes
...
This patch adpats the current test to show a popover with
max-content-width and -height properties set.
https://bugzilla.gnome.org/show_bug.cgi?id=742281
2016-06-05 11:03:11 -03:00
Georges Basile Stavracas Neto
4e5ecb7052
scrolledwindow: add ::max-content-width and -height properties
...
The GtkScrolledWindow has support to set the minimum content size (both
width and height) which controls the minimum space allocated, but does
not exposes any way to control the maximum size the content can grow.
After the introduction of GtkPopover, which always uses the minimum
size of it's children widgets, the lack of max-content-width and -height
properties became a concrete use case.
This patch introduces the GtkScrolledWindow::max-content-width and
-height properties. The properties will alter the minimum size of
the scrolled window, making it grow up to the set value. They also
respect the previously set ::min-content-width and -height.
https://bugzilla.gnome.org/show_bug.cgi?id=742281
2016-06-05 11:02:59 -03:00
Руслан Ижбулатов
bd86715ed3
GDK W32: Fix dragging AeroSnap application
...
The original patch for commit b420c53773
was applied incorrectly, doing the actual snapping in the wrong place.
Move the code.
2016-06-05 09:00:40 +00:00
Matthias Clasen
b42d4b5b9a
progressbar: Render text with the text css node
...
This is the same fix that was just applied to GtkScale.
2016-06-03 16:30:00 -04:00
Matthias Clasen
3f3c1768c9
scale: Also queue a resize if font changes
...
As Benjamin pointed out, what AFFECTS_FONT can also affect size,
but the implication is not automatic, so queue a resize manually.
2016-06-03 10:49:29 -04:00
Pavel Grunt
b18ebbb164
gdktypes: Update docs for GDK_GRAB_FAILED
...
Mention in documentation that it is available since 3.16
https://bugzilla.gnome.org/show_bug.cgi?id=767165
2016-06-03 00:44:45 -04:00
Matthias Clasen
fd9f7babf6
scale: Apply css style to text
...
Use the new functions we have to apply CSS styles to the
value and marks text from their respective subnodes.
2016-06-03 00:30:59 -04:00
Matthias Clasen
db50849d79
Add a function to get a font from a css style
...
Similar in spirit to
gtk_style_context_get (ctx, state, "font", ...)
but avoids the need for a style context.
This will be used to for css-styled text rendering
from css subnodes.
2016-06-03 00:30:29 -04:00
Matthias Clasen
7b0929ad38
Add a function to turn a css style into pango attributes
...
This is _gtk_style_context_get_pango_attributes, decoupled
from the GtkStyleContext. This will be used to drive css-styled
text rendering from css subnodes of widgets, e.g. for the value
in GtkScale.
2016-06-03 00:26:55 -04:00
Timm Bäder
a961b05200
widget: Avoid a deprecation warning
2016-06-02 21:52:11 +02:00
Matthias Clasen
de8af76897
Show a scroll cursor when appropriate
...
When doing two-finger scrolling or click scrolling using a
trackpoint, show the all-scroll cursor to indicate what is
going on.
https://bugzilla.gnome.org/show_bug.cgi?id=753202
2016-06-01 21:47:31 -04:00
Matthias Clasen
3d0f76801d
wayland: Provide information about scroll devices
...
The Wayland protocol does not share XI2's wealth of information
about individual devices, but it does provide discriminating
information about the source for scroll events. Pass this on to
the application by creating separate slave devices for these,
and setting them as source device on the scroll events.
These devices can be discriminated by their input-source property:
wheel - GDK_SOURCE_MOUSE
finger - GDK_SOURCE_TOUCHPAD
continuous - GDK_SOURCE_TRACKPOINT
https://bugzilla.gnome.org/show_bug.cgi?id=767093
fix up
2016-06-01 14:51:33 -04:00
Matthias Clasen
5264209bf1
a11y tests: Update expected output
...
These changes were caused by the introduction of GtkStackAccessible.
2016-06-01 14:18:46 -04:00
Matthias Clasen
1dbbe7f251
button css node test: Update for switch style changes
...
We no longer add the redundant .slider style class in GtkSwitch.
Update expected results to reflect that.
2016-06-01 13:12:19 -04:00
Matthias Clasen
28b9e16272
css node tests: Update expected results
...
We were not propagating direction changes in some places,
evidently. Now we do.
2016-06-01 13:11:27 -04:00
Matthias Clasen
f3f64d17c2
popover menu: Improved labeled separators
...
Embed the label in the middle of the separators instead of
putting it above the separator.
https://bugzilla.gnome.org/show_bug.cgi?id=767108
2016-06-01 11:52:20 -04:00
Bastien Nocera
bb6cce4e6f
Separators not correctly placed
...
What it should look like:
Bold
----
/Size/
x 0.5
x 1.0
What it looks like:
Bold
/Size/
----
x 0.5
x 1.0
https://bugzilla.gnome.org/show_bug.cgi?id=767108
2016-06-01 10:03:19 -04:00
Matthias Clasen
743d18c0f8
scrolled window: Remove trackpoint heuristics
...
This is now done in GDK, so we can just use the input type here.
https://bugzilla.gnome.org/show_bug.cgi?id=767100
2016-06-01 09:31:18 -04:00
Matthias Clasen
660c8b8f9b
x11: Mark trackpoints as GDK_SOURCE_TRACKPOINT
...
This uses the same heuristics that are currently used in
GtkScrolledWindow.
https://bugzilla.gnome.org/show_bug.cgi?id=767100
2016-06-01 09:31:18 -04:00
Matthias Clasen
a9f14846e4
gdk: Add GDK_SOURCE_TRACKPOINT
...
Having this as an input source type will let us do the heuristics
in the GDK backends.
https://bugzilla.gnome.org/show_bug.cgi?id=767100
2016-06-01 09:31:17 -04:00
Matthias Clasen
3ab7645ac1
Avoid a deprecation warning
2016-06-01 09:27:24 -04:00
Olivier Fourdan
7c397c621c
headerbar: do not show buttons for modals/transients
...
GtkHeadeBar checks the window type hint to determine if the regular
buttons such as menu, maximize or iconify should be visible in the
header bar.
However, an application may very well use a "normal" toplevel window and
set it transient and modal afterwards. In such a case, the iconify
button would remain visible, and the user can hide the window, but being
a modal, the parent window would remain insensitive.
Check for the window type, modality and transient relationship to decide
whether or not the regular toplevel buttons should be visible in the
header bar.
https://bugzilla.gnome.org/show_bug.cgi?id=767052
2016-06-01 09:47:23 +02:00
Matthias Clasen
11e22aadda
wayland: Better debug info for scroll axes
...
Print human readable names for axes and axis sources.
2016-05-31 22:18:08 -04:00
Matthias Clasen
dbe499bcfe
docs: Add a release note about GtkSizeGroup::ignore-hidden
2016-05-31 16:34:22 -04:00
Matthias Clasen
430916973a
GtkShortcutsSection: avoid deprecation warnings
...
We could just as well remove these calls here, since they
have no effect.
2016-05-31 16:34:22 -04:00
Matthias Clasen
d76c07836b
Document GtkSizeGroup::ignore-hidden as broken
...
...and deprecate it, recommending GtkStack as an alternative.
2016-05-31 16:34:22 -04:00
Lapo Calamandrei
69f8b4bb77
Adwaita: ensure menuitem labels are not overridden
...
see https://bugzilla.gnome.org/show_bug.cgi?id=767058
2016-05-31 20:59:23 +02:00
Timm Bäder
4dbe7c99c2
entry: Fix undershoot position wrt entry icons
...
Draw them inside of the icons, which is where the text scrolls.
2016-05-31 09:41:08 +02:00
Matthias Clasen
14e33ab0f5
README: Refer to release notes online
...
We don't want to maintain this information in two places,
so just link to the online documentation here.
2016-05-30 20:24:13 -04:00
Matthias Clasen
3bed458723
docs: Fix a duplicate ID
...
This was causing navigation in the online docs to be confused.
2016-05-30 20:21:48 -04:00
Matthias Clasen
f168de3ada
Add a warning for a broken situation
...
When we emit ::draw, the widget should not have alloc_needed set
anymore. If this happens, it indicates a broken situation. Add a
warning to help tracking down why this might occur.
See https://bugzilla.gnome.org/show_bug.cgi?id=765410
2016-05-30 16:19:29 -04:00
Matthias Clasen
d36f866b27
gtk3-demo: Fix some css warnings
...
Update the font: syntax to follow css.
2016-05-30 16:19:19 -04:00
Timm Bäder
9d5fe26420
build: add GtkStack accessible private header at the right place
2016-05-30 20:41:49 +02:00
Daniel Mustieles
1a9845c176
Updated Spanish translation
2016-05-30 19:16:21 +02:00
Timm Bäder
6301827dac
range: Properly indent closing brace
...
Make sure it's obvious what if block it belongs to.
2016-05-30 19:15:49 +02:00
Timm Bäder
0b0d4765a0
Add GtkStackAccessible
...
Show only the currently visible child to a11y.
2016-05-30 19:12:52 +02:00
Timm Bäder
5029e11473
tests/scrolling-performance: Define MyTextView
...
The type is used in widget-factory.ui, so add a dummy definition here to
keep the test working.
2016-05-30 19:11:27 +02:00
Cédric Valmary
106bc95771
Updated Occitan translation
2016-05-30 16:59:28 +00:00
Cédric Valmary
73708b39ac
Updated Occitan translation
2016-05-30 16:58:07 +00:00
Lapo Calamandrei
0c387b27ee
Adwaita: explicitelly set label caret-color to currentColor
...
since it doesn't always inherit 'color' color as it should.
2016-05-30 14:20:33 +02:00
Lapo Calamandrei
f54e28177c
Adwaita: make selection on infobars visible
...
see https://bugzilla.gnome.org/show_bug.cgi?id=745622
2016-05-30 13:56:23 +02:00
Theppitak Karoonboonyanan
77ef33b095
Updated Thai translation
2016-05-30 12:45:19 +07:00
Jordi Mas
e13f04a9fa
Fixes to Catalan translation
2016-05-28 07:27:51 +02:00
Jordi Mas
1fcf9c8f6d
Update Catalan translation
2016-05-28 07:21:39 +02:00
Lapo Calamandrei
d1d763ce58
Adwaita: remove textview border
...
see https://bugzilla.gnome.org/show_bug.cgi?id=764203
2016-05-27 11:38:20 +02:00
Theppitak Karoonboonyanan
a7e0695093
Updated Thai translation
2016-05-27 15:49:58 +07:00
Rico Tzschichholz
694ba1298e
x11: Replace RROutput with XID as used in GdkX11Monitor
...
This avoids an unconditional use of XRandr symbol.
2016-05-27 09:32:14 +02:00
Thomas Lange
e7765daf64
placesview: Do not mark icon name as translatable
...
https://bugzilla.gnome.org/show_bug.cgi?id=766878
2016-05-26 22:05:41 -04:00
Matthias Clasen
abdd7137b3
3.21.2
2016-05-26 14:41:14 -04:00
Matthias Clasen
8fb0950398
Updates
2016-05-26 14:41:14 -04:00