Benjamin Otte
0d380f43d6
stylecontext: Factor out a function
2014-10-15 17:08:47 +02:00
Carlos Garnacho
103e11c937
scrolledwindow: Allow overshooting on scroll events
...
The overshoot visual notification is probably also nice to have in this
context.
https://bugzilla.gnome.org/show_bug.cgi?id=738533
2014-10-15 17:00:36 +02:00
Matthias Clasen
c26b2c9209
GtkPlacesSidebar: Don't leak an icon
...
Found in valgrind.
2014-10-14 23:59:51 -04:00
Matthias Clasen
2eacaf2dd2
GtkFontChooserWidget: Plug several memleaks
...
These were showing up in valgrind.
2014-10-14 23:59:25 -04:00
Matthias Clasen
ef62a872f5
GtkContainerAccessible: avoid resurrecting accessibles
...
When removing a child, we don't want to resurrect its
accessible needlessly.
2014-10-14 23:58:37 -04:00
Benjamin Otte
ccf6507f6a
render: Fix uninitialized variables
...
Refactoring for performance in 39097ea2da
caused border_width to be uninitialized when rendering border images.
https://bugzilla.gnome.org/show_bug.cgi?id=738483
2014-10-15 02:16:24 +02:00
Carlos Garnacho
c184bd4675
scrolledwindow: Simplify _gtk_scrolled_window_set_adjustment_value()
...
The two boolean arguments always received the same values, so wipe these
out. Likewise, the boolean return value is unused and sort of meaningless.
2014-10-14 15:53:14 +02:00
Carlos Garnacho
1ae5c2a138
window: unset menubar before unsetting focus on dispose()
...
If the menubar has an app-menu popover, and it is shown at the time of
disposing the window, it will attempt to transfer focus back to the
previous focus widget when undoing modality, even though the dispose()
code already did set_focus(NULL) previously.
At the time the popover is removed, there aren't many hints as to whether
the toplevel or the focus widget are being destroyed (ie. not still under
in_destruction), so just swap the order of these two calls.
For every other popover, this would all happen within dispose/destroy,
which is handled better.
2014-10-14 15:47:06 +02:00
Benjamin Otte
f5da87dde8
inspector: Add missing files
2014-10-14 14:32:57 +02:00
Benjamin Otte
eaa872f6c3
inspector: Replace reload with record
...
and when pressed, record instance counts at 1fps.
2014-10-14 14:03:06 +02:00
Benjamin Otte
43ad7c9714
inspector: Add a graph cell renderer
...
... and use it to display graphs for how object counts changed.
2014-10-14 14:03:06 +02:00
Benjamin Otte
0a6755b57c
inspector: Add a GraphData object for recording data
...
This way we can keep more data than just the 2 last values.
2014-10-14 14:03:06 +02:00
Benjamin Otte
14e0283413
inspector: Kepp tree iter in type data
...
This way we don't have to clear/refill the model every time but can keep
the existing model and only update the values.
A nice side benefit is that running an update keeps the current selection.
2014-10-14 14:03:06 +02:00
Benjamin Otte
e36bfb45cd
inspector: Make all statistics columns visible always
2014-10-14 14:03:06 +02:00
Benjamin Otte
8d06b84670
inspector: Update all statistics in same place
2014-10-14 14:03:06 +02:00
Benjamin Otte
d123ea579f
inspector: increase type by right amount
...
It's a shift, so we better shift it!
2014-10-14 14:03:05 +02:00
Benjamin Otte
525676435d
inspector: Add type column to statistics
...
Rename old type column to "type name"
2014-10-14 14:03:05 +02:00
Benjamin Otte
db8cdd6392
inspector: Split out a function
2014-10-14 14:03:05 +02:00
Matthias Clasen
b4a288a592
GtkBox: Ensure we only allow one center child
...
Glade was happily adding multiple center widgets. Oops.
2014-10-13 12:45:05 -04:00
Matthias Clasen
e7c16a5e82
Drop a reference to GtkGLArea::create-context
...
The signal no longer exists.
2014-10-13 10:43:32 -04:00
Matthias Clasen
e5e9d87171
Nitpicky documentation fixes
2014-10-13 10:43:32 -04:00
Alexander Larsson
fdeb4f8c16
gl: Make gdk_gl_context_make_current() return void
...
Its not really reasonable to handle failures to make_current, it
basically only happens if you pass invalid arguments to it, and
thats not something we trap on similar things on the X drawing side.
If GL is not supported that should be handled by the context creation
failing, and anything going wrong after that is essentially a critical
(or an async X error).
2014-10-13 10:43:32 -04:00
Alexander Larsson
535723ce86
Add GtkGLArea widget
2014-10-13 10:43:31 -04:00
Alexander Larsson
d0147a6f2c
Add gdk_window_mark_paint_from_clip and call from widget drawing
...
This is a new function that gets called every time we're drawing
some area in the Gtk paint machinery. It is a no-op right now, but
it will be required later to keep track of what areas which
we previously rendered with GL was overwritten with cairo contents.
2014-10-13 10:43:31 -04:00
Benjamin Otte
abfc9cd4eb
switch: Use trough style class by default
...
This allows animating the trough, and saves a save/restore pair.
2014-10-13 04:39:58 +02:00
Benjamin Otte
d1118071dd
switch: Set PRELIGHT state on widget
2014-10-13 04:39:58 +02:00
Benjamin Otte
3534225c76
progressbar: Make the trough the default element
...
Gets rid of a bunch of save/restore calls and allows animating the
background (but not the slider, booo!)
2014-10-13 04:39:58 +02:00
Benjamin Otte
b09fbadddf
viewport: Remove wrong save/restore
2014-10-13 04:39:57 +02:00
Matthias Clasen
291e4e107d
GtkListBox: Support placeholders in ui files
...
This makes the gtk_list_box_set_placeholder functionality
available from GtkBuilder
https://bugzilla.gnome.org/show_bug.cgi?id=738111
2014-10-12 18:54:44 -04:00
Matthias Clasen
8fcf3a8e88
GtkSearchBar: don't peek out
...
When the searchbar is hidden, a 1-pixel-high piece of it is
still peeking out, because visible widgets are always allocated
at least 1x1. Work around this by setting child-visible to FALSE
in this situation.
https://bugzilla.gnome.org/show_bug.cgi?id=724096
2014-10-12 18:18:04 -04:00
Matthias Clasen
e1ff15549b
GtkColorSwatch: Avoid style context underflow
...
The last change accidentally removed the later restore, and
left the earlier, so we ended up with a restore-save sequence.
Thankfully, GtkStyleContext warns about this.
2014-10-12 18:15:23 -04:00
Matthias Clasen
3a19c76017
inspector: Bring the selector back
...
Make it a separate page instead of the old button path.
2014-10-12 07:57:29 -04:00
Carlos Soriano
975d9d4314
gtkplacessidebar: Fix commit f6870e5b79
...
Commit f6870e5b79
introduced a some memory leaks and could be
improved in some areas.
Fix the memory leaks and apply the improvements.
https://bugzilla.gnome.org/show_bug.cgi?id=737983
2014-10-12 04:16:44 +02:00
Benjamin Otte
0a31609201
colorswatch: Remove unneeded save/restore
...
for both style context and cairo context.
2014-10-12 04:16:44 +02:00
Benjamin Otte
f4e44e9e6e
menu: Respect borders properly for scroll arrows
2014-10-12 00:25:23 +02:00
Matthias Clasen
5624da20e3
inspector: Some improvements for statistics
...
Show the last two snapshots, plus a delta.
2014-10-11 17:58:31 -04:00
Matthias Clasen
9f1d651e0b
inspector: Add a tab for object counts
...
This can be useful in finding leaks.
https://bugzilla.gnome.org/show_bug.cgi?id=738272
2014-10-11 16:54:24 -04:00
Lapo Calamandrei
74531123ae
Adwaita: fix the special cased sidebar scrollbar...
...
...which I broke with the latest commit.
2014-10-11 16:25:57 +02:00
Lapo Calamandrei
5f11eaa168
Adwaita: finally kill the scrollbar junction frame...
...
See https://bugzilla.gnome.org/show_bug.cgi?id=737981
2014-10-11 14:32:19 +02:00
Matthias Clasen
30738fbfdd
GtkToolButton: Apply expected button style classes
...
Add .image-button or .text-button to the button within,
so our css works as expected for toolbar buttons too.
2014-10-11 08:28:55 -04:00
Matthias Clasen
9a6aa8db68
inspector: Cosmetics
...
Add .image-button to the tool buttons in the CSS editor - still
not square.
2014-10-11 08:15:07 -04:00
Matthias Clasen
735cf98af1
inspector: Remove a stray separator
2014-10-11 08:07:04 -04:00
Matthias Clasen
3715fec02d
inspector: Make the window smaller
...
No need for 1000 pixels of with anymore, after the reorg.
2014-10-11 08:01:57 -04:00
Matthias Clasen
615e4332ef
inspector: Make resource list columns resizable
...
This tree has the potential to be deep, and contain long
names, so it forces the window to be wide, unless we
allow the columns to shrink.
2014-10-11 08:01:50 -04:00
Matthias Clasen
7b20bb917f
inspector: Small improvements to the resource tab
...
Move the close button to the header bar and center the info grid.
2014-10-11 00:59:36 -04:00
Matthias Clasen
a5846645d1
inspector: Cosmetic fixes
...
Set scrollbars and shadows consistently.
2014-10-11 00:59:36 -04:00
Matthias Clasen
d2c0f37a69
inspector: Cosmetic fixes
...
Add a missing shadow in the css editor.
2014-10-11 00:59:36 -04:00
Matthias Clasen
326f0aad5d
inspector: Cosmetic fixes
...
Expand the resource list initially.
2014-10-11 00:59:36 -04:00
Matthias Clasen
dffceb1a17
inspector: Avoid a split pane for objects
...
Like for the resources page, use a separate page for details
to gain more room for both the tree and the details.
2014-10-11 00:59:36 -04:00
Matthias Clasen
a8dc098699
inspector: More refactoring
...
Rename widget tree to object tree. It contains plenty of
non-widgets nowadays, after all.
2014-10-11 00:59:36 -04:00