Matthias Clasen
48415955f0
inspector: Correct a tooltip
2014-11-07 22:44:23 -05:00
Jasper St. Pierre
a91c88768e
inspector: Remove unused variable
2014-11-07 16:33:43 -08:00
Matthias Clasen
ee01ee249f
inspector: Look for themes in the right places
...
Match the places that GtkCssProvider looks in, so we show all
the themes that GTK+ would actually find.
2014-11-07 14:19:59 -05:00
Carlos Garnacho
52a90758f9
gtkwindow: claim the press sequence when clicking on the titlebar
...
This event might not have an action yet, but certainly accounts, and
should be triggering recognition.
This fixes a crash when attempting to drag CSD windows through touch. As
since cfaec2d2f5
, gtk_gesture_single_get_current_sequence() would
rightfully return NULL if the gesture didn't enter recognition, making
event lookup fail.
2014-11-07 13:54:10 +01:00
Carlos Garnacho
4df13b7262
treeview: remove single-click activation from GtkGestureMultiPress::pressed
...
This is already handled in GtkGestureMultiPress::release, and more in
concordance with how it was done pre-gestures.
https://bugzilla.gnome.org/show_bug.cgi?id=737891
2014-11-07 13:49:43 +01:00
Matthias Clasen
5442293ce7
inspector: include private gdk headers
...
...the advantages of living in the same tree.
2014-11-07 07:11:38 -05:00
Matthias Clasen
0ecd08ed04
inspector: Add GL flags
2014-11-06 23:35:38 -05:00
Lapo Calamandrei
d859cf19f6
Adwaita: scrollbar styling overhaul
...
- finally added the missing border;
- proper backdrop state styling;
- tweaked overlay indicator;
- sidebar special casing gone for now.
2014-11-07 00:03:29 +01:00
William Hua
063f79b594
mir: enable csd
2014-11-06 16:18:53 -05:00
Matthias Clasen
f60b2a11c5
Drop an unneeded include
2014-11-06 15:17:09 -05:00
Matthias Clasen
f229f96d69
GtkModelButton: protect against show_all
...
We don't want the labels to be shown when there's already
an icon.
2014-11-06 15:03:51 -05:00
Lapo Calamandrei
c756cef80a
Adwaita: remove last child border on backdrop column headers
2014-11-06 17:21:50 +01:00
Lapo Calamandrei
d781599b0d
Adwaita: initial overlay indicator styling
2014-11-06 12:40:40 +01:00
Matthias Clasen
5a01208f55
GtkHeaderBar: Queue a resize when pack-type is changed
...
Otherwise, buttons appear to stick to the wrong side in glade.
2014-11-06 01:05:51 -05:00
Lapo Calamandrei
fdc01f80af
Adwaita: dim GtkPlacesSidebar icons color
2014-11-05 16:01:28 +01:00
Matthias Clasen
e2882e4845
GtkHeaderBar: Make the position child property writable
...
Glade asssumes that it is, and without this, rearranging children
in glade is very cumbersome.
2014-11-04 16:56:25 -05:00
Carlos Garnacho
d9a433daf7
gtkwindow: Resort to regular event bubbling by all means on non-toplevels
...
If the multipress gesture is not created (ie. not a toplevel GtkWindow),
also avoid possibly calling gtk_widget_event() on the events gotten here.
2014-11-04 19:03:27 +01:00
Carlos Garnacho
03a30e462e
gtkwindow: Do not create the multipress gesture for plugs
...
GtkPlugs may "qualify" as toplevels, even though they're not meant to
be WM manipulated, so refuse to create the multipress gesture for these
too.
2014-11-04 19:03:18 +01:00
Lapo Calamandrei
c160340e6c
Adwaita: brighter dark variant header-bar bottom shade
2014-11-04 14:59:24 +01:00
Alexander Larsson
ef9ac24e95
GtkGLArea: Correctly position/size input window on realize
2014-11-03 13:35:00 +01:00
Alexander Larsson
3656c21030
GtkGLArea: Don't dispose gl context on unrealize
...
This was done to ensure the context is not current, but this is
pretty broken for shared contexts. We now just make it non-current.
2014-11-03 13:19:40 +01:00
Alexander Larsson
9930e6dcaa
GtkGLArea: Add create-context signal
...
This lets you hook into the GL context creation which is useful
if you want to share one GL context between GtkGLArea widgets.
2014-11-03 10:43:31 +01:00
Matthias Clasen
4aa0d16865
Only warn once if inhibit-related dbus calls fail
...
No need to spam about it.
https://bugzilla.gnome.org/show_bug.cgi?id=734140
2014-11-03 00:48:42 -05:00
Matthias Clasen
95e8ae6e75
GtkIconTheme: Improve an error message
...
Mention the name of the theme when an icon lookup fails.
https://bugzilla.gnome.org/show_bug.cgi?id=687963
2014-11-03 00:25:14 -05:00
Matthias Clasen
2aa3eea781
GtkFileChooser: Add a menuitem for 'sort directories first'
...
This has been requested repeatedly.
2014-11-03 00:02:13 -05:00
Alberts Muktupāvels
bdaef1f88d
gtkmenu: fix unnecessary scroll buttons
...
Don't change menu height if menu is out of monitor only by shadow
width.
https://bugzilla.gnome.org/show_bug.cgi?id=738321
2014-11-02 22:11:03 -05:00
Lapo Calamandrei
264cab2b52
Adwaita: add borders to menus in a non composited env
...
https://bugzilla.gnome.org/show_bug.cgi?id=738800
2014-11-02 22:04:14 -05:00
Matthias Clasen
2873195644
GtkHeaderBar: Fix a corner-case in child properties
...
The child property setting must be prepared to deal with any
child property for any child, even if it doesn't make sense,
like the pack-type for the custom title. This is happening
in glade when undoing a change in the custom-title property.
2014-11-02 17:49:47 -05:00
Matthias Clasen
120abd9a6e
csd: Improve appearance inside glade
...
glade turns windows into non-toplevels, so we can easily recognize
that situation and avoid adding a humongous shadow area.
2014-11-01 14:49:02 -04:00
Matthias Clasen
18a2a6a90e
GtkVolumeButton: Fix annoying double formatting
...
We meant to specify 0.2, and it came out as 0.2000000001.
2014-11-01 13:21:00 -04:00
Matthias Clasen
d8cc9d9a51
glade: Add GtkColorEditor to private widgets
2014-11-01 13:20:59 -04:00
Matthias Clasen
ffa49723a2
glade: Drop a no-longer existing private widget
...
GtkScaleButtonScale fell by the wayside when the scale button
was ported to a popover.
2014-11-01 13:20:59 -04:00
Cosimo Cecchi
276a510b4b
radiobutton: don't consider hidden buttons in the group for focus
...
When a GtkRadioButton has no focus, it will accept it when there is no
other active button in its group.
If the active button in the group is hidden, for example because the UI
desires not to have a default option pre-selected, currently the focus
will not be accepted, which is not desired behavior.
This commit changes the code to only consider visible buttons in the
group when checking whether another button is active.
https://bugzilla.gnome.org/show_bug.cgi?id=739474
2014-11-01 10:08:42 -07:00
Matthias Clasen
e6e511eb46
GtkListBox: Fix a bug in unselection
...
Ensure that gtk_list_box_get_selected_row returns NULL after
gtk_list_box_unselect_all. Add a testcase that detects this
problem.
2014-10-31 22:34:09 -04:00
Matthias Clasen
3c997239e9
inspector: Search refinements
...
Show close buttons on all search bars.
2014-10-31 21:14:09 -04:00
Matthias Clasen
3f3725d97b
inspector: Refine object tree search
...
Behave similar to traditional treeview search, and center
the row when moving between matches.
2014-10-31 21:13:18 -04:00
Matthias Clasen
992c5f0dd6
inspector: Add search to the object tree
...
This is also an attempt to figure out a better story for search
in treeviews.
2014-10-31 21:02:50 -04:00
Matthias Clasen
69a0b31d2d
Trivial: sort file list alphabetically
2014-10-31 14:16:02 -04:00
Lapo Calamandrei
00f618ea1a
Adwaita: special case .default-decoration
...
Titlebars which are just window handles can be smaller.
2014-10-31 16:53:23 +01:00
Lapo Calamandrei
5a5e74bbe2
Adwaita: simpler gtkcalendar style (once again)
2014-10-31 16:44:21 +01:00
Matthias Clasen
89e12495b6
inspector: Improve search in style property list
...
Use a search bar with a search entry instead of the builtin
treeview search popup.
2014-10-30 20:54:54 -04:00
Matthias Clasen
574c774e4e
inspector: Improve search in property list
...
Use a search bar with a search entry instead of the builtin
treeview search popup.
2014-10-30 20:54:04 -04:00
Matthias Clasen
42e1fad138
inspector: Stop overeager activation
...
Stop using activate-on-single click for the property list -
it is a little annoying to have the popover come up when you
just click in the list to get the focus there.
2014-10-30 18:47:46 -04:00
Alexander Larsson
f66060c422
GdkGLArea: fix has_alpha changes at runtime
...
We need to completely reallocate the buffers if we switch
has_alpha, because we may switch from render buffers to
texture.
2014-10-30 21:04:29 +01:00
Alexander Larsson
37d0159a84
GtkGLArea: Add resize signal
...
This is very useful, as almost all GL code wants to recalculate
the cameras each time the window size changes.
2014-10-30 21:04:29 +01:00
Alexander Larsson
969b9c6552
GtkGLArea: Add profile property
...
This lets you force a core 3.2 context if you want
2014-10-30 21:04:29 +01:00
Alexander Larsson
b519b642bd
GtkGLArea: Add INPUT_ONLY window so that we can get events
2014-10-30 21:04:29 +01:00
Alexander Larsson
5ea3a1028d
GtkGLArea: Major reworking
...
This restructures the way buffers are allocated and bound in a way
that is more flexible.
Buffer operation happens in three phases:
create_buffer() - Creates the gl objects
allocate_buffers() - Allocates space for the buffers at a given size
attach_buffers() - Attaches the buffers to the framebuffer and makes
the framebuffer the default drawing target
And destroy via
delete_buffers()
We call all these the first draw, and after that we allocate buffers
each time the widget changes size until the buffers are deleted.
We delete the buffers at unrealize.
However, anyone that wants to manually control buffer allocation strategies
can manually call allocate/delete_buffers().
There are also some other changes:
* Support for stencil buffers.
* A manual render mode where ::draw doesn't render unless you manually
invalidated the previous rendering.
2014-10-30 21:04:29 +01:00
Lapo Calamandrei
7a73ec1bb2
Adwaita: darken a bit OSD background color
...
To not make it vanish on dark variant background color.
2014-10-30 18:42:31 +01:00
Matthias Clasen
cacda8086e
inspector: Add HighContrast to built-in themes list
2014-10-30 12:52:25 -04:00