Matthias Clasen
c5b7f9f11c
inspector: Make sure something is focusable on the stats page
...
Without this, the focus will not be inside the top_stack when
we switch to the statistics page and it shows the excuse. This
in turn will make the next page not take focus as expected when
switching away from the statistics page again.
2014-12-10 22:41:45 -05:00
Matthias Clasen
18799d22cf
inspector: Fix focus in css editor
...
Give the text view initial focus, so things work as expected
when switching to the css editor for the first time.
2014-12-10 22:39:50 -05:00
Matthias Clasen
123c6dc558
GtkStack: Improve focus handling
...
Add notebook-like focus handling: Keep track of the last focused
descendent of each page, and focus it again when switching back
to the page. If there is no last focused child, we move the focus
into the page as if the user had hit Tab.
2014-12-10 22:32:45 -05:00
Matthias Clasen
5dd6ad0057
Typo fix
2014-12-10 21:08:08 -05:00
Matt Watson
f50d1b2584
GtkEntryCompletion: fix sizing bug with multiple cells
...
When using a completion with some custom cells in the cell layout,
if would often size wrong when first presented on screen.
The entry completion is the only place in the entire gtk code base
that calls gtk_tree_view_column_cell_get_size outside of gtktreeview
itself. It calls into the function before the tree view has done some
important validation on its cell state, the net result of which is
only the first element in the gtkcellareabox the entry completion uses
well actually have its size respected.
We now call gtk_widget_get_preferred_size on the tree view before
calling into the individual cell size routines, to guarantee that the
tree view has run its validate_rows routine and cell state is valid.
https://bugzilla.gnome.org/show_bug.cgi?id=741130
2014-12-10 13:29:32 -08:00
Matthias Clasen
a083809b93
GtkScrolledWindow: Take border into account
...
Use the new scrollable API for getting non-scrollable borders
and draw over/undershoot at the right place. In practice, this
means that they now appear below treeview headers.
2014-12-10 10:01:30 -05:00
Matthias Clasen
9431050618
GtkTreeView: Implement get_border
...
Add an implementation for the new scrollable vfunc that returns
the header height as top border.
2014-12-10 10:01:30 -05:00
Matthias Clasen
6f2fff56fb
Add a gtk_scrollable_get_border
...
Add a vfunc to return a non-scrollable border around scrollables.
This would be nicer as a property, but we can't add properties
to an interface without breaking 3rd party implementations, so
make this an optional vfunc, and handle it not being set.
2014-12-10 10:01:30 -05:00
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
Benjamin Otte
1c9fdc1f1f
range: Changing the min slider size requires a resize
2014-11-29 03:42:28 +01:00
Benjamin Otte
c80c7f7792
range: No need to frce a recalc
...
A resize will already trigger a recalc, so no need to explicitly trigger
it.
2014-11-29 03:42:28 +01:00
Benjamin Otte
7ecdaaacb2
widget: Clarify some corner cases
...
I checked Cairo source code (actually pixman, as Cairo just passes
through) to make sure that the behavior stays identical: negative values
cause an error message from pixman, zero is allowed. Both return an
empty region which gtk_widget_queue_draw_region() would then proceed to
ignore.
2014-11-29 03:42:28 +01:00
Matthias Clasen
2679f889a5
Drop an unused variable
2014-11-28 14:25:42 -05:00
Lapo Calamandrei
6962dcffac
Adwaita: GtkTreeView insensitive state style.
...
See https://bugzilla.gnome.org/show_bug.cgi?id=740770 .
2014-11-28 17:03:53 +01:00
Matthias Clasen
d3c96f9f17
inspector: Simplify some code
2014-11-27 23:21:42 -05:00
Yosef Or Boczko
bb5574c0bd
GtkStackSwitcher: Make the buttons fill vertically
...
It fix some cases with different height for the buttons,
like with Hebrew character.
https://bugzilla.gnome.org/show_bug.cgi?id=740642
2014-11-27 23:21:35 -05:00
Matthias Clasen
e26fddc544
Avoid a critical
...
gtk_window_get_focus can return NULL, deal with it.
https://bugzilla.gnome.org/show_bug.cgi?id=740812
2014-11-27 18:24:12 -05:00
Matthias Clasen
8753ef6129
Render shadows for half-tiled windows
...
Without this, side-by-side half-tiled windows are hard to discern.
https://bugzilla.gnome.org/show_bug.cgi?id=708857
2014-11-27 18:24:12 -05:00
Leo Wolf
c85c3510e7
printing: Fix origin for scaled, rotated pages
...
The calls to cairo_translate in
_gtk_print_context_rotate_according_to_orientation,
_gtk_print_context_reverse_according_to_orientation and
_gtk_print_context_translate_into_margin assume an unscaled context.
These functions should therefore be called before scaling the context,
otherwise the origin does not always end up in the top left corner.
https://bugzilla.gnome.org/show_bug.cgi?id=740742
2014-11-27 12:21:27 +01:00
Jasper St. Pierre
e3bf31886a
gtkentry: Optimize GtkStyleContext usage
2014-11-26 18:10:55 -08:00
Jasper St. Pierre
59629fa9e2
gtklabel: Optimize GtkStyleContext usage
2014-11-26 18:10:55 -08:00
Jasper St. Pierre
9c7a5f5efa
gtkstylecontext: Optimize GtkStyleContext usage
2014-11-26 18:10:55 -08:00
Jasper St. Pierre
50c4fdbacd
gtktextdisplay: Optimize GtkStyleContext usage
2014-11-26 18:10:55 -08:00
Matthias Clasen
80dbb4186a
GtkSpinButton: Use the proper state
...
Use the style contexts current state when querying it.
2014-11-26 18:38:43 -05:00
Carlos Garnacho
50076ed95b
popover: Send key events only to the focus widget
...
gtk_window_propagate_key_event() will run unstopped from the focus widget up to the
popover if GDK_EVENT_PROPAGATE was returned along the chain, resulting in infinite
recursion. This could be just triggered by pressing some modifier key on an entry...
2014-11-26 15:30:52 +01:00
Sebastien Lafargue
05893dd5a9
textbtree: Remove unneeded check
2014-11-26 13:53:57 +01:00
Benjamin Otte
11233678d9
range: Remove unnecessary argument
...
It's always the same value passed in, so just use that value directly.
2014-11-26 13:53:57 +01:00
Benjamin Otte
230aa99967
range: Query slider position instead of updating it
...
We're updating it later in the function, there's no need to do it here.
2014-11-26 13:53:57 +01:00
Benjamin Otte
7193043f7d
gtkrange: Fix copy/paste error
...
When factoring out a function in
b88584e7ba
I forgot to adapt these values.
2014-11-26 13:53:57 +01:00
Benjamin Otte
98da1ddfe2
range: Setting stepper visibility requires a restyle
2014-11-26 13:53:57 +01:00
Benjamin Otte
9b970d5f22
entry: Use correct state when computing icon padding
2014-11-26 13:53:57 +01:00
Emmanuele Bassi
cbb2938587
Freeze file system model during editing
...
If a file system event arrives while GtkFileChooserWidget is asking the
user to edit the name of a newly created folder, the file system model
will drop the row with the editable cell, and the user will have to
start from scratch.
This makes creating new directories impossible inside a directory with a
file currently being downloaded, for instance, and it's really unhelpful
to the user because the editable row simply disappears.
We already have a mechanism in place to freeze the file system model, so
we can reuse it between the add_editable() and the remove_editable()
calls.
https://bugzilla.gnome.org/show_bug.cgi?id=729927
2014-11-25 23:03:27 -05:00
Joanmarie Diggs
246c172e1e
GtkButtonAccessible: Stop emitting state-change signals for ATK_STATE_ARMED
...
ATK_STATE_ARMED is now deprecated. There is no replacement.
https://bugzilla.gnome.org/show_bug.cgi?id=740438
2014-11-25 22:33:27 -05:00
Emmanuele Bassi
605f2efa73
docs: Fix annotation for GtkCssProviderError
...
https://bugzilla.gnome.org/show_bug.cgi?id=740374
2014-11-25 22:15:24 -05:00
Jasper St. Pierre
a78b18c565
Revert part of "gtknotebook: Optimize GtkStyleContext usage"
...
This reverts part of commit c71e213134
.
This part was unfinished and was pushed simply to avoid the warnings.
2014-11-25 11:21:21 -08:00
Jasper St. Pierre
eba317228f
gtkstylecontext: Add an optional warning when misusing GtkStyleContext
...
This allows someone to quickly debug more performance issues with
G_DEBUG=fatal-warnings.
2014-11-25 11:07:31 -08:00
Jasper St. Pierre
d21dc0d91c
gtkcellarea: Optimize GtkStyleContext usage
...
This is a bit bizarre, but the cell renderer can apply different
flags from the actual style context, and we should use those instead
of the widget flags.
2014-11-25 11:05:57 -08:00
Jasper St. Pierre
c71e213134
gtknotebook: Optimize GtkStyleContext usage
2014-11-25 11:05:49 -08:00
Jasper St. Pierre
2cd835c076
gtkwindow: Optimize GtkStyleContext usage
2014-11-25 11:05:36 -08:00
Jasper St. Pierre
90f94de615
deprecated/gtkstyle: Optimize GtkStyleContext usage
...
Even though this is deprecated, it's still initialized for every
screen at startup, so let's minimize the cost.
2014-11-25 11:05:04 -08:00
Jasper St. Pierre
442fd63ea6
gtkentry: Pass the correct set of state flags to gtk_style_context_get*
...
This eliminates a lot of overhead in the CSS engine recalculating
cached CSS rules, and is overall the correct thing to do.
2014-11-25 11:04:36 -08:00
Jasper St. Pierre
0c09d44509
gtkwidget: Remove unnecessary code in get_state_flags
...
Any time has_focus is called, we will call gtk_widget_update_state_flags
which will assign the state flags properly.
2014-11-25 11:04:36 -08:00
Benjamin Otte
965da578c4
cssselector: Add none selector
...
We apparently didn't yet parse :not(*), so write a selector for this.
2014-11-25 19:31:23 +01:00
Benjamin Otte
8a3a617475
cssselector: Add initial support for :not()
...
:not() works for names, ids, classes and pseudoclasses based on states.
It does not yet work for positional pseudoclasses (like :last-child or
:even) as there is region madness going on with those.
2014-11-25 19:31:13 +01:00
Benjamin Otte
fd1eb92508
cssselector: Macroify simple selectors
...
This is in preparation for the next commits.
2014-11-25 19:19:12 +01:00
Benjamin Otte
c0123ae20e
range: Don't duplicate work
...
The adjustment value being equal is checked by
gtk_adjustment_set_value() and the necessity of calc_layout() is handled
by the value_changed signal handler.
2014-11-25 19:19:12 +01:00
Benjamin Otte
06150aa517
range: Don't invalidate layout when computing marks
...
We now have a function to compute a slider position. Use that one
instead.
2014-11-25 19:19:12 +01:00
Benjamin Otte
b88584e7ba
range: Split out a function
...
The position of a slider for a given value is something we care a
lot about and jump through hoops to get. See next commit for example.
2014-11-25 19:19:12 +01:00
Benjamin Otte
daabd0436f
range: Remove 2 variables
...
Instead, compute their value on-demand.
2014-11-25 19:19:12 +01:00
Benjamin Otte
447a439145
range: Remove unused variable
2014-11-25 19:19:12 +01:00
Benjamin Otte
79712f843c
scale: Always be flippable
...
GtkRange only flips horizontal ranges, so there's no need to unset it
for vertical scales.
Also, set_flippable() is a cute name.
2014-11-25 19:19:12 +01:00
Benjamin Otte
addcb7137e
range: Simplify defines
...
- Delete unused defines
- Don't have 2 defines that are multiplied later
2014-11-25 19:19:12 +01:00
Benjamin Otte
51f5433170
range: Deprecate detail strings in class struct
...
... and stop setting them.
2014-11-25 19:19:12 +01:00
Benjamin Otte
0d1395d07f
range: Remove unused detail quarks
2014-11-25 19:19:11 +01:00
Benjamin Otte
e7f2239cbb
range: Remove unused variable
2014-11-25 19:19:11 +01:00
Matthias Clasen
4634fd81ba
inspector: Make close buttons in search bars have no relief
...
Make our home-grown searchbar lookalike look more alike.
2014-11-25 08:42:26 -05:00
Carlos Garnacho
dde77704ed
popover: Forward key events to focus widget while visible/modal
...
This is the expected behavior while the popover keeps the grab, leaving
this up to the toplevel implementation gives place to key handlers
connected there to handle the event otherwise, and maybe redirect key
events somewhere else.
2014-11-25 14:08:34 +01:00
Matthias Clasen
f71831c780
GtkStack: silently ignore visible-child-name set to NULL
...
This can happen when loading empty stacks in glade.
2014-11-25 00:14:47 -05:00
Matthias Clasen
bef9d05812
inspector: minor cleanup
2014-11-24 20:36:00 -05:00
Matthias Clasen
c7f3b93d99
Keep gtk_window_set_hide_titlebar_when_maximized working
...
This broke in 510c2cdfb6
.
https://bugzilla.gnome.org/show_bug.cgi?id=740287
2014-11-24 06:49:19 -05:00
Matthias Clasen
d0d41dfeba
GtkModelButton: Add docs
2014-11-23 19:44:01 -05:00
Matthias Clasen
f95fb6f893
GtkGLArea: avoid extraneous property notifications
2014-11-23 18:30:13 -05:00
Matthias Clasen
ff4f918a69
GtkModelButton: specify the proper default values
...
Caught by the defaultvalue test: ::text starts out as "", and
::iconic should be FALSE by default.
2014-11-23 18:30:13 -05:00
Matthias Clasen
6b95810aae
inspector: Show object title in menu tab
2014-11-22 21:38:47 -05:00
Matthias Clasen
a7ba57f751
inspector: Add menu models to the tree
...
Add both the appmenu and the menubar models as children of the
application, if they exist.
2014-11-22 21:38:47 -05:00
Matthias Clasen
0a37493384
inspector: Show object title in size groups tab
2014-11-22 21:38:47 -05:00
Matthias Clasen
d09f66579b
inspector: Show object title in data tab
2014-11-22 21:38:47 -05:00
Matthias Clasen
af12993c4b
inspector: Show object title on the style property list
...
As with the property list, this replaces the search bar by
a stack containing a search entry.
2014-11-22 21:38:47 -05:00
Matthias Clasen
f38081a4a5
inspector: Show object title on selector tab
2014-11-22 21:38:47 -05:00
Matthias Clasen
38c3600d8b
inspector: Show object title in actions tab
2014-11-22 21:38:47 -05:00
Matthias Clasen
d2aad06513
inspector: Show object title in hierarchy tab
2014-11-22 21:38:47 -05:00
Matthias Clasen
85380f22f3
inspector: Show object title in the classes tab
2014-11-22 21:38:47 -05:00
Matthias Clasen
fe5f9c560b
inspector: Show object title in the css tab
2014-11-22 21:38:47 -05:00
Matthias Clasen
c2326aa5cf
inspector: Show object title in the gestures tab
2014-11-22 21:38:47 -05:00
Matthias Clasen
9e3d0651e1
inspector: Show object title in the signals tab
2014-11-22 21:38:47 -05:00
Matthias Clasen
7a1c5845ef
inspector: Show object title in the properties tab
...
Replace the search bar with a search entry in a stack to make
this work without unseemly height changes.
2014-11-22 21:38:47 -05:00
Matthias Clasen
2ea3171ff9
inspector: Show object title in the misc tab
2014-11-22 21:38:47 -05:00
Matthias Clasen
5b7233f136
inspector: Store object title on object
2014-11-22 21:38:46 -05:00
Matthias Clasen
84463b78e5
inspector: Drop an unused argument
2014-11-22 21:38:46 -05:00
Matthias Clasen
9fb2d6a6b9
inspector: Trivial typo fix
2014-11-22 21:38:46 -05:00
Matthias Clasen
72a501fe15
GtkGLArea: Formatting fixes
2014-11-22 21:38:46 -05:00
Matthias Clasen
45cfb405c0
GtkModelButton: Don't show both text and icon
...
The intention was that ::iconic indicates which representation is
preferred (text or icon). We fall back to the other representation
if one is missing.
2014-11-19 21:14:30 -05:00
Matthias Clasen
d51c9e0337
GtkPopoverMenu: be more careful about change notification
...
Only emit notify for ::visible-submenu when the visible page
in the stack actually changed.
2014-11-19 21:14:30 -05:00
Lapo Calamandrei
7197758600
Adwaita: typo fix
2014-11-18 15:17:06 +01:00
Matthias Clasen
955c798ab1
GtkPopoverMenu: expose more properties
...
Expose the position as a child property and the visible page
as a property. These are useful in glade.
2014-11-18 13:39:15 +01:00
Matthias Clasen
cd8576ec19
GtkStack: Fix an oversight in child renaming
...
We currently emit a warning if you rename a child to the name
it already has. We shouldn't do that.
2014-11-18 13:37:51 +01:00
Timm Bäder
0fac139057
Revert "GtkMenuSectionBox: Add tooltip to iconic buttons"
...
This reverts commit 7543e7b279
.
2014-11-17 18:39:15 +01:00
Timm Bäder
9b83858d9a
Revert "popover: Add show/hide transition"
...
This reverts commit 17f48e3a9e
.
2014-11-17 18:39:00 +01:00
Timm Bäder
56133a1feb
GtkDialog: Connect to activate signals only once
...
If the widget is an action widget, it's been previously added with
gtk_dialog_add_action_widget, which calls add_response_data on it, which
in turn connects to the clicked/activate signal of that widget, so we
don't need to connect to that signal a second time in
gtk_buildable_custom_finished.
2014-11-17 18:37:47 +01:00
Timm Bäder
17f48e3a9e
popover: Add show/hide transition
2014-11-17 18:37:47 +01:00
Timm Bäder
7543e7b279
GtkMenuSectionBox: Add tooltip to iconic buttons
2014-11-17 18:37:47 +01:00
Carlos Garnacho
7651061920
scrolledwindow: Avoid too frequent redraws of scrollbars
...
When overshooting through touchpad kinetic scrolling, the scrollbar remains
mostly static as it already hit a boundary. However, the fade in/out checks
are constantly run during scroll events, causing needless redraws in this
specific case.
2014-11-17 16:55:08 +01:00
Carlos Garnacho
6d5f2ff87e
scrolledwindow: Only render background/frame on the widget window
...
Otherwise it is rendered too on each indicator window, possibly bringing
in an unintended opaque background there. Better seen with git show -b.
2014-11-17 14:55:05 +01:00
Matthias Clasen
ecfcb3e2cc
Make gtk_container_remove work on popover menus
...
Extend the hack we have in place for composite containers to
GtkPopoverMenu.
2014-11-16 02:30:19 -05:00
Matthias Clasen
1e39790c49
GtkPopoverMenu: Implement forall
...
This is required to make glade work.
2014-11-16 02:30:19 -05:00
Lapo Calamandrei
4f7abe3762
Adwaita: no border radius for GtkTreeView:selected
2014-11-15 19:08:13 +01:00
Lapo Calamandrei
268efd1475
textview: remove osd style class from touch selection popover
...
The touch-selection class is sufficient since that needs special
casing whatever.
2014-11-15 16:09:39 +01:00
Lapo Calamandrei
df7b275de8
entry: remove osd style class from touch selection popover
...
The touch-selection class is sufficient since that needs special
casing whatever.
2014-11-15 16:08:15 +01:00
Lapo Calamandrei
beb28dd3e9
Adwaita: :selected cleanup and rationalization
2014-11-15 15:54:20 +01:00
Lapo Calamandrei
32aa33e8d1
Adwaita: popover scss cleanup
2014-11-14 19:34:09 +01:00
Lapo Calamandrei
ebc379287f
Adwaita: more overshoot tweakings and typo fix
2014-11-14 18:58:22 +01:00