Matthias Clasen
691c96db2a
Adwaita: Initial theming for scrollable indication
...
This just uses a narrow shadow for now.
2014-12-10 10:00:45 -05:00
Matthias Clasen
b73578f95d
Add a scrollable indication
...
Draw a themable indication when an edge of a scrolled window
is hiding some content that can be scrolled in.
2014-12-10 10:00:21 -05:00
Matthias Clasen
45d0a5cc4b
Trivial formatting fix
...
&& goes at the end of the line in GTK+ coding style.
2014-12-09 23:41:28 -05:00
Matthias Clasen
8463d0ee62
GtkMenuPositionFunc: Correct annotations
...
x and y are inout, not just out.
https://bugzilla.gnome.org/show_bug.cgi?id=674537
2014-12-09 22:56:39 -05:00
Benjamin Otte
b49c7c3421
styleprovider: Fold get_change() vfunc into lookup()
2014-12-10 03:49:40 +01:00
Benjamin Otte
14f5ce7108
cssselector: Rewrite change computation
...
We know that non-simple selectors cause a transition to the all matcher,
so just assume the all matcher from that point on.
2014-12-10 03:49:40 +01:00
Benjamin Otte
e2dddd62cf
cssselector: Redo change verification
...
Instead of walking the selector tree, we walk the selectors.
2014-12-10 03:49:40 +01:00
Benjamin Otte
5885950018
cssselector: Implement tree_match() using foreach_matcher()
2014-12-10 03:49:40 +01:00
Benjamin Otte
ad74fd9d7f
cssselector: Introduce a foreach_matcher vfunc
...
This vfunc iterates over all matchers of a selector and allows to write
functions like the match function in a generic way using foreach.
2014-12-10 03:49:40 +01:00
Benjamin Otte
8a8f34b2db
cssselector: Add a match_one vfunc
...
It allows a default implementation of the match() and tree_match()
functions.
2014-12-10 03:49:40 +01:00
Benjamin Otte
cab05f2b63
cssselector: Introduce a few more default functions
2014-12-10 03:49:40 +01:00
Benjamin Otte
06b0b47d04
cssselector: Make specificity handling a vfunc
...
The new region selector tracks more than just one soimple selector, so
it requires some more advanced specificity tracking.
Technically, this is still not correct, because it will report the same
specificity for
tab:sorted
and
tab:sorted:sorted
(and the second selector will be printed as the first) but this is
regions, so meh.
2014-12-10 03:49:40 +01:00
Benjamin Otte
371a601858
cssselector: Remove unused variable
...
The variable is FALSE for every class now.
2014-12-10 03:49:40 +01:00
Benjamin Otte
73823181d3
cssselector: Handle region selector like any selector
...
Instead of doing the previous match magic itself, use the
DESCENDANT_FOR_REGION hack and let that one do the magic.
2014-12-10 03:49:40 +01:00
Benjamin Otte
284ccdac45
cssselector: Use simple class macro for * selector
...
As a side effect, the :not(*) selector needs to be renamed because the
macro chooses a different name for it.
2014-12-10 03:49:40 +01:00
Benjamin Otte
528691f5b3
cssselector: Introduce descendant matcher for regions
...
This is just a way to handle regions more conveniently. What this does
is to change the descendant matcher into a maybe-descendant matcher
whenever the current object we're parsing might be a region. Because "*"
might also refer to a region and not just a new element.
See testsuite/reftests/css-match-region-matches-star.ui for a testcase.
2014-12-10 03:49:40 +01:00
Benjamin Otte
8b3f25ab96
cssselector: Support :not() for position pseudoclasses
...
This is simple now that the latest commit used the macro and
autogenerates the SelectorClass to use.
2014-12-10 03:49:40 +01:00
Benjamin Otte
88f28aee4f
cssselector: Use simple macro for position pseudoclass
...
This is possible now that the region-specific code is gone.
2014-12-10 03:49:40 +01:00
Benjamin Otte
28e80aa40b
cssselector: Handle region flags during parse
...
When parsing a selector like
tab:active
We used to create 2 selector objects, one for the region, and one for
the pseudoclass. Now, for convenience, we special-case region
pseudoclass parsing so that the active flag is added to the region
selector.
A side effect is that ":nth-child(1)" no longer works for regions.
Hopefully people didn't use this but used the saner ":first-child"
instead.
2014-12-10 03:49:40 +01:00
Benjamin Otte
272a0083a3
cssselector: Turn into a union
...
Instead of just keeping a gpointer data, make GtkCssSelector a union
that has actual proper members.
2014-12-10 03:49:39 +01:00
Benjamin Otte
03aabcff14
cssselector: Introduce a hash func per selector
...
This is unnecessary itself, but useful in preparation for further
commits.
2014-12-10 03:49:39 +01:00
Benjamin Otte
80a8b793e0
cssselector: Inline a function
2014-12-10 03:49:39 +01:00
Matthias Clasen
972ea14ef6
GtkStackSwitcher: Don't take focus on click
...
Moving the focus to the stack switcher buttons is
never what is wanted here.
2014-12-09 20:57:58 -05:00
Matthias Clasen
cf4afd0e93
inspector: Don't force-switch to the objects tab
...
We used to switch to the objects tab when an object is
picked, but now may have two places with picker buttons:
the objects tab and the interactive tab.
So, just don't do that anymore.
2014-12-09 20:57:58 -05:00
Matthias Clasen
702b647d4e
inspector: Allow extensions to request a picker
...
Look for a 'use-picker' property on the extension page
and add a picker button to the header bar if says so.
2014-12-09 20:57:51 -05:00
Matthias Clasen
44bf61baac
inspector: Another indentation fix
2014-12-09 19:23:54 -05:00
Matthias Clasen
536b10800f
inspector: Reindent ui file
2014-12-09 17:49:23 -05:00
Matthias Clasen
1ed5bd07bb
Make gtk_tree_model_foreach robust
...
Make gtk_tree_model_foreach safe for callbacks that modify
the model, even if the model does not have persistent iters.
https://bugzilla.gnome.org/show_bug.cgi?id=722781
2014-12-09 00:42:40 -05:00
Matthias Clasen
54e3711c39
Don't compare booleans
...
Just use negation.
2014-12-09 00:42:40 -05:00
Christian Hergert
fb8791cd16
window: fallback to window muxer if no widget has focus
...
This ensures that we can still match accelerators for the window even
if no widget currently has focus.
2014-12-08 20:19:33 -08:00
Carlos Soriano
235837ad49
gtkwindow: Use actions from focused widget to activate accel
...
Currently we only take into account the window GActionGroup for
activating the accels.
However, the application could have some custom GActionGroup in the
chain of focused widgets that could want to activate some action if
some accel is activated while that widget is focused.
To allow applications to set accels on widgets that use custom
GActionGroups, simply use the muxer of the focused widget, which
already contains the actions of the parents.
https://bugzilla.gnome.org/show_bug.cgi?id=740682
2014-12-08 20:19:33 -08:00
Matthias Clasen
4f96353964
Fix some oversights with header guards
...
Pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=741254
2014-12-08 19:31:56 -05:00
Alexander Larsson
2d6ae59d7f
Inspector: Support extending the inspector using GIOModules
...
This allows external modules to add a page to the Gtk Inspector.
https://bugzilla.gnome.org/show_bug.cgi?id=740983
2014-12-08 17:34:54 -05:00
Matthias Clasen
6c7e5039c7
Drop a few unneeded ifs
...
It does not hurt to pass NULL to g_list_free().
2014-12-08 17:30:35 -05:00
Matthias Clasen
64fd964703
GtkWidget: Don't return FALSE as a pointer
...
Pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=741251
2014-12-08 09:16:24 -05:00
Matthias Clasen
a3e37abb38
GtkPlacesSidebar: Don't return FALSE as a pointer
...
Pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=741250
2014-12-08 09:15:07 -05:00
Matthias Clasen
a3fbf29f17
GtkMenuTracker: Don't return FALSE as a pointer
...
Pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=741249
2014-12-08 09:13:57 -05:00
Matthias Clasen
8c3f04e754
GtkEntry: Refresh when activity ends
...
We need to queue a redraw when pulse mode is ended by
setting a fraction. Noticed in gtk3-demo's search entry demo.
2014-12-08 06:39:56 -05:00
Kjell Ahlstedt
5d3aa54a8a
docs: Explain 'icon theme context' better in gtkicontheme.c
...
Add links from gtk_icon_theme_list_contexts() to
gtk_icon_theme_list_icons(), and from there to the Icon Theme
Specification and the Icon Naming Specification.
https://bugzilla.gnome.org/show_bug.cgi?id=461249
2014-12-07 23:35:31 -05:00
Matthias Clasen
f74a75ae7e
Handle KP keys in copy/paste keybindings
...
We currently handle KP variants of some keys, but not consistenly.
https://bugzilla.gnome.org/show_bug.cgi?id=364566
2014-12-07 23:28:52 -05:00
Matthias Clasen
06745bc0aa
Add a note to the ::destroy docs
...
Clarify that ::destroy is not suitable for saving widget state.
https://bugzilla.gnome.org/show_bug.cgi?id=710793
2014-12-07 18:12:46 -05:00
Ankita Patil
a4e827e4bf
GtkEntry: Added gtk_entry_grab_focus_without_selection()
...
Providing a way to focus an entry without selecting its contents.
https://bugzilla.gnome.org/show_bug.cgi?id=735838
2014-12-05 23:17:25 -05:00
Matthias Clasen
45bed11272
GtkTextTag: Add two missing property set cases
...
These were overlooked when adding ::fallback and ::letter-spacing
recently.
2014-12-05 21:24:43 -05:00
Matthias Clasen
e1716611bd
Update docs
...
Document new fields in GtkTextAttributes, remove redundant comments.
2014-12-05 20:10:11 -05:00
Matthias Clasen
888304b172
Minor documentation fixes
2014-12-05 20:10:07 -05:00
Matthias Clasen
28497075c7
Raleigh: Fix css for active notebook tabs
...
This was not kept up-to-date when we changed notebootk
tab rendering.
https://bugzilla.gnome.org/show_bug.cgi?id=741185
2014-12-05 19:30:35 -05:00
Carlos Soriano
0504328bd8
gtkscale: Draw smaller marks
...
As a design request, use smaller marks.
https://bugzilla.gnome.org/show_bug.cgi?id=741117
2014-12-05 13:23:05 +01:00
Matthias Clasen
39c0ba59bc
places sidebar: Fix the sort function
...
When returning 1 for a pair (a,b), a sort function must
return -1 for the pair (b,a), otherwise things can go
badly.
https://bugzilla.gnome.org/show_bug.cgi?id=739729
2014-12-04 22:26:14 -05:00
Debarshi Ray
8718e9296e
file-chooser: Don't wait for ENTER to initiate search
...
Most of the core GNOME applications (eg., gnome-control-center,
gnome-documents, and nautilus) start searching as soon as the text
changes, and don't wait for the user to hit ENTER. It would be nice to
follow the same pattern.
https://bugzilla.gnome.org/show_bug.cgi?id=739977
2014-12-04 21:59:52 -05:00
Matthias Clasen
3d4bcf55a5
Allow inserting Pango markup in text buffers
...
This has been a very long-standing feature request.
https://bugzilla.gnome.org/show_bug.cgi?id=59390
2014-12-04 00:09:44 -05:00
Matthias Clasen
d184088cae
GtkTextView: Add fallback and letter-spacing support
...
Add support for the Pango attributes controlling font fallback
and letter spacing to GtkTextTag.
https://bugzilla.gnome.org/show_bug.cgi?id=740954
2014-12-04 00:09:44 -05:00
Jakub Steiner
66dfdc3cc2
HC: use child istead of descendant selectors for linking
...
Since widgets subelements are now both widget childs and widget
classes, say .spinbutton.button and .spinbutton .button,
the linking logic needs to be adapted to be stricter with
child selectors. This fixes vertically linked spinbuttons.
2014-12-03 11:42:06 +01:00
Jakub Steiner
88a12fe777
HC: sidebars and vertical toolbars with borders
...
- the assumption for vertical toolbar being on the left is perhaps
a little daring, but...
https://bugzilla.gnome.org/show_bug.cgi?id=740859
2014-12-03 11:37:21 +01:00
Lapo Calamandrei
825ef99e17
Adwaita: use child istead of descendant selectors for linking
...
Since widgets subelements are now both widget childs and widget
classes, say .spinbutton.button and .spinbutton .button, the linking
logic needs to be adapted to be stricter with child selectors.
This fixes vertically linked spinbuttons.
2014-12-03 11:34:15 +01:00
Carlos Garnacho
ccdcff9456
popover: make smarter wrt previous focus widget lifetime
...
If the previous focus widget is unmapped (eg. hidden, scheduled for
destruction, etc), make the popover forget about it and grant focus
back to the window itself.
2014-12-02 15:49:23 +01:00
Matthias Clasen
cb3393f001
css: Avoid excessive shadow rendering
...
The shadow rendering code had code to exit early if we determine
that the shadow is entirely clipped away. Unfortunately, the check
based on cairo clip extents fails for any clip regions that are
more complicated than axis-aligned rectangles, and we are using
a hollow rounded rectangle here. So, instead, do the check manually,
using the just-introduced API in GtkRoundedBox.
2014-12-02 08:29:24 -05:00
Matthias Clasen
73e6a05e38
Add clipping apis to GtkRoundedBox
...
This adds two functions for checking whether an axis-aligned
rectangle is completely outside or inside of a rounded box.
These are not trying to be exact, but fast.
2014-12-02 08:26:36 -05:00
Jasper St. Pierre
579c7f80a0
gtkwidget: Fix a typo preventing the CSD input shape from applying
...
We were setting "csd-shade" but reading from "csd-region".
2014-12-01 18:01:49 -08:00
Matias De Lellis
bd71849e26
GtkPlacesSidebar: Fix Home and Desktop on Windows.
...
We were concatenating "file://" to the result of g_get_user_special_dir() to build
a URI, but this is not enough on Windows. Use g_filename_to_uri() instead.
See https://bugzilla.gnome.org/show_bug.cgi?id=739453
2014-12-01 14:57:32 -06:00
Jakub Steiner
c1c68b409c
HC: clean up borders for buttons & entries
...
https://bugzilla.gnome.org/show_bug.cgi?id=740860
2014-12-01 20:35:58 +01:00
Jakub Steiner
3eaaf12c04
HC: vertical linked buttons,entries & combos
...
https://bugzilla.gnome.org/show_bug.cgi?id=740860
2014-12-01 20:35:58 +01:00
Jakub Steiner
cf7851b948
HC: wide separator styling
...
https://bugzilla.gnome.org/show_bug.cgi?id=740862
2014-12-01 20:35:58 +01:00
Jakub Steiner
5e71a49d5a
HC theme: more contrasty separators
...
https://bugzilla.gnome.org/show_bug.cgi?id=740863
2014-12-01 20:35:58 +01:00
Jakub Steiner
fb4073a60a
HC theme: implement scroll overshoot
...
https://bugzilla.gnome.org/show_bug.cgi?id=740876
2014-12-01 20:35:58 +01:00
Benjamin Otte
4d7369d1a8
inspector: Properly update flashing hilight
...
Previously, the inspector would not change the hilight while the
previous hilight was still flashing.
This is inconvenient while arrowing through the object selection
treeview though where you want the currently selected row to hilight
when arrowing quickly.
2014-12-01 15:43:43 +01:00
Marek Kasik
0b2bded110
printing: Don't crop dimensions of layout preview
...
Enlarge area for drawing of layout preview in the print dialog
so that it can embody landscape preview with dimensions.
https://bugzilla.gnome.org/show_bug.cgi?id=730232
2014-12-01 11:21:27 +01:00
Lapo Calamandrei
e355eff2bc
Adwaita: scss cosmetic fixes
2014-12-01 10:14:47 +01:00
Lapo Calamandrei
5e503c54c2
Adwaita: GtkTreeView tree lines fix
...
See https://bugzilla.gnome.org/show_bug.cgi?id=740904 for details.
2014-12-01 10:06:33 +01:00
Matthias Clasen
32e8c39ffd
Move print preview command to gtksettings.c
...
Having this in the source seems more appropriate.
2014-11-30 23:43:52 -05:00
Matthias Clasen
9e1187135e
Move print backend list to configure.ac
...
We already juggle the print backends here, might as well
produce the list.
2014-11-30 23:43:52 -05:00
Matthias Clasen
eee5947365
Rearrange Makefile some more
...
Move the introspection parts all together, drop several unused
variables and targets.
2014-11-30 23:43:52 -05:00
Matthias Clasen
908bb6955e
Drop a few more leftovers
...
The GTK_FILE_SYSTEM_ENABLE_UNSUPPORTED define is not used anymore,
and we don't install a gtk.css file for Raleigh, so no need to
uninstall one either.
2014-11-30 23:43:52 -05:00
Matthias Clasen
655c75cab7
Drop gtk-update-icon-cache complications
...
gtk-update-icon-cache is no longer used at build time, so a lot
of the complicated machinery we have around that (conditional
build, cross build, etc) are no longer required.
2014-11-30 23:43:52 -05:00
Matthias Clasen
75dab1662c
Add missing docs
...
Document GtkSwitch::state_set.
2014-11-30 19:22:51 -05:00
Matthias Clasen
4b9029c4cc
Cosmetic fixes
2014-11-30 19:07:52 -05:00
Matthias Clasen
f97780c574
Don't use escapes in echo strings
...
This forces us to fight with echo non-portability. Instead,
just use ' instead of \".
2014-11-30 17:25:43 -05:00
Matthias Clasen
bbb3f6a2db
quartz: Copy annotations
...
Better than juggling introspection sources in the Makefile.
2014-11-30 17:20:38 -05:00
Matthias Clasen
09f83fff52
Use subdir-objects in gtk/
2014-11-30 16:11:56 -05:00
Matthias Clasen
383d5b137b
inspector: Build nonrecursively
2014-11-30 16:11:56 -05:00
Matthias Clasen
25d9412c7e
Split subdirectory file lists off
...
This moves a little closer to a proper nonrecursive setup, and
makes the gtk Makefile.am less monstrous.
2014-11-30 16:11:56 -05:00
Matthias Clasen
93776ef88d
List formatting cleanup
...
Always put sublists first.
2014-11-30 16:11:56 -05:00
Matthias Clasen
11cf6763a3
Drop a nonexisting variable
2014-11-30 16:11:56 -05:00
Matthias Clasen
188424cb7c
Drop redundant include
2014-11-30 16:11:56 -05:00
Matthias Clasen
6e65f4235d
Drop an unused variable
...
This is another leftover from when we were doing export checks.
2014-11-30 16:11:55 -05:00
Matthias Clasen
e4335c62a1
Drop the extra resources/ subdirectory
...
This subdirectory gets in the way when integrating the inspector
build more fully with GTK+, and does not really add anything.
Just move everything one level up.
2014-11-30 16:11:55 -05:00
Cosimo Cecchi
94f412622e
GtkPlacesSidebar: add support for unmount notifications
...
Now that we can use GNotification from here, send a notification when
umounting from GtkPlacesSidebar.
https://bugzilla.gnome.org/show_bug.cgi?id=740896
2014-11-30 09:59:54 -08:00
Matthias Clasen
afe0d5ff00
HighContrast: in app notification padding
...
Copied the Adwaita treatment from
e5d34372c4
https://bugzilla.gnome.org/show_bug.cgi?id=740857
2014-11-29 17:06:52 -05:00
Lapo Calamandrei
d314625754
HighContrast: scale slider fix and cleanup
...
Set GtkScale margins on the .trough component so the .slider
doesn't inherit them vanishing.
Remove a bunch trailing white spaces in the process.
2014-11-29 18:46:06 +01:00
Lapo Calamandrei
57171ad7e6
Adwaita: set scale with marks trough margin where it belongs to
2014-11-29 18:21:12 +01:00
Matthias Clasen
6bf9d13041
GtkModelMenuItem: put some space between icon and label
...
This makes the bloatpad icons menu look slightly less odd.
2014-11-29 00:01:49 -05:00
Benjamin Otte
4c33645a7a
range: Implement :hover for the whole widget
2014-11-29 03:42:29 +01:00
Benjamin Otte
116cc53105
range: Handle redraws inside update_mouse_location
...
This way, we can do finer-grained invalidation. Plus, we get to not
duplicate all the queue_draw() calls.
2014-11-29 03:42:29 +01:00
Benjamin Otte
95dc96901e
range: Properly queue draws when doing a drag
...
The dragged area needs to be marked as :active during the drag.
2014-11-29 03:42:29 +01:00
Benjamin Otte
b8c0cfb663
range: Remove unused variable
...
The variable was TRUE from the beginning and only ever set to TRUE.
2014-11-29 03:42:28 +01:00
Benjamin Otte
4b92654b29
range: No need to update mouse location when starting a drag
...
The mouse position doesn't change here. Plus, all callers have just
updated it anyway.
2014-11-29 03:42:28 +01:00
Benjamin Otte
87c564ecf3
range: Only call needed functions from adjustment changes
...
No need to recalc the whole range when all that changed was the slider.
2014-11-29 03:42:28 +01:00
Benjamin Otte
f3b40ff55f
range: Implement gtk_range_calc_stepper_sensitivity() properly
2014-11-29 03:42:28 +01:00
Benjamin Otte
f63fe9b760
range: Implement gtk_range_calc_slider() properly
2014-11-29 03:42:28 +01:00
Benjamin Otte
040c31a32c
range: Refactor a function
...
This is in preparation for more places that want to
queue_draw_location().
2014-11-29 03:42:28 +01:00
Benjamin Otte
909d0caa6b
range: Introduce finer-grained invalidation
...
The invalidation doesn't do anything yet, it just clears up what
actually needs recalculation.
2014-11-29 03:42:28 +01:00