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