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
Josef Andersson
f875daeb6d
Updated Swedish translation
2014-11-27 22:01:44 +00:00
Marco Trevisan (Treviño)
b8925253b6
mir: clear screen, keymap and event source when disposing dpy
2014-11-27 19:25:55 +01:00
Marek Kasik
059fc5d3d9
printing: Fix build with CUPS older than 1.6
...
Define missing functions ippFirstAttribute(), ippNextAttribute()
and macro ippGetCollection(). These were added in CUPS 1.6.
https://bugzilla.gnome.org/show_bug.cgi?id=740358
2014-11-27 17:07:33 +01: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
Matthias Clasen
732af31424
x11: Handle obsolete selection requests without crashing
...
The ICCCM says:
If the specified property is None , the requestor is an obsolete client.
Owners are encouraged to support these clients by using the specified
target atom as the property name to be used for the reply.
Lets do that, instead of crashing.
https://bugzilla.gnome.org/show_bug.cgi?id=740613
2014-11-26 22:27:49 -05: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
Jasper St. Pierre
fe8f6f60dc
gdkdisplay-x11: Don't do extra work when simply moving the window
...
We shouldn't bother recalculating all the visible regions and wiping
away the old updating areas if we're simply dragging the window around.
2014-11-26 17:14:53 -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
Andre Heinecke
d9786d74db
Remove overzealous validity check for secrets
...
We directly get the length of the secret from the g_variant
and use it in a following g_strndup which ensures that the
resulting string is terminated.
This fixes reading secrets which were stored by system-config-printer.
https://bugzilla.gnome.org/show_bug.cgi?id=740612
2014-11-25 22:51:45 -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
06952d807a
testsuite: Add a bunch of parsing tests for :not()
2014-11-25 19:33:18 +01: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