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
Matthias Clasen
a7173d097f
Make overlay scrollbar fading interruptible
...
When the pointer starts hovering the scrollbar after it already
started fading out, interrupt the fade and keep the scrollbar
around.
2014-11-14 11:49:33 -05:00
Matthias Clasen
95b075b8eb
Drop unused variables
...
Keeps the compiler happy.
2014-11-14 11:48:50 -05:00
Lapo Calamandrei
a30a54a521
Adwaita: overshoot style tweaks
...
Trying to make it visible on the dark variant.
2014-11-14 15:37:02 +01:00
Matthias Clasen
2d1c7b8937
Trivial formatting fix
2014-11-14 06:16:41 -05:00
Matthias Clasen
49cf85509a
GtkPopover: Survive attach_widget == NULL
...
We can't render a tail, but otherwise things should just work.
This will be useful in glade.
2014-11-14 06:16:41 -05:00
Carlos Garnacho
632accd9cc
scrolledwindow: Use a fully transparent background for the overlay window
...
The background will be already given and updated in the GtkScrollbar widget,
plus the background remained static on the window since it is realized.
2014-11-13 21:25:52 +01:00
Carlos Garnacho
b591cacc39
scrolledwindow: Don't doubly draw overlay-indicator scrollbars
...
The scrollbars are still internal children of the GtkScrolledWindow
and handled in ::forall(), no need to propagate draw here again
after chaining up in ::draw().
2014-11-13 20:32:36 +01:00
Carlos Garnacho
733f70ea84
gtkpopover: Fix allocation of child widget wrt margins
...
During size request, all sides' margins are ensured to be as big
as TAIL_HEIGHT, just to avoid possible relocation loops if the
popover doesn't fit in its original position. This must be
accounted for in size_allocate() as well.
2014-11-13 20:32:36 +01:00
Carlos Garnacho
e0353b37a8
scrolledwindow: Only render overshoot on the widget window
...
Without any check, it was being rendered also on the indicator
GdkWindows, which resulted on an over-exposed effect there.
2014-11-13 20:32:36 +01:00
Lapo Calamandrei
69c30fda5c
Adwaita: reset some properties in the overshoot mixin
...
Otherwise we may inherit them see:
https://bugzilla.gnome.org/show_bug.cgi?id=740011
2014-11-13 18:47:42 +01:00
Lapo Calamandrei
360b516ef4
Adwaita: overshoot styling
2014-11-13 18:31:50 +01:00
Lapo Calamandrei
c9d0bd8a72
Adwaita: simplify scrollbar styling
...
By the use of slider margins. In the process darken the overlay
scrollbar trough in fine-tune mode to make it noticiable.
2014-11-13 11:26:40 +01:00
Matthias Clasen
85a539ce6d
inspector: Add frame clock info
...
Add the frame clocks of toplevel widgets to the object tree,
and show their frame count and frame rate in the misc tab.
2014-11-12 22:52:59 -05:00
Matthias Clasen
45528440e6
inspector: Show the refcount on the misc tab
2014-11-12 21:58:08 -05:00
Matthias Clasen
72b9d2861c
inspector: Update misc-info while the tab is shown
...
Update the values on the page once per second, while the tab
is shown.
2014-11-12 21:45:16 -05:00
Matthias Clasen
e2ce0700a6
GtkCssProvider: Load themes from versioned directories
...
Look for themes in $prefix/themes/$name/gtk-$version/ (for
version = 3.16, 3.14, ...), before using the old location
$prefix/themes/$name/gtk-3.0/. This gives theme authors a
way to support multiple versions of GTK+ 3 with separate
css files.
2014-11-12 19:22:55 -05:00
Matthias Clasen
55fd3a762c
GtkCssProvider: Factor out a function
...
Move finding the gtk.css file into its own function. We will
make this more complicated in the near future.
2014-11-12 18:20:35 -05:00