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
Lapo Calamandrei
bac7408be4
Adwaita: set scale trough margins where they belong.
2014-11-12 17:30:59 +01:00
Lapo Calamandrei
5108a27e6c
gtkrange: consider css margin on the slider
...
Css margin now works on the slider as they do on the trough.
The margin is not considered in the space allocation as it is for
the trough, so the slider width will be the set slider-width -
margins. Spefifying margins on the main widget in the css will
clearly affect both the trough and the slider, so theme changes are
needed.
2014-11-12 17:20:53 +01:00
Matthias Clasen
e14cf55b31
Forgotten files
2014-11-12 07:36:04 -05:00
Debarshi Ray
3f4bed4d8f
query, searchengine: Drop unused and undefined function declarations
...
https://bugzilla.gnome.org/show_bug.cgi?id=739977
2014-11-12 13:23:59 +01:00
Matthias Clasen
fc855eea7a
GtkActionBar: Make ::position writable
2014-11-11 23:02:11 -05:00
Matthias Clasen
047bb15cd7
GtkActionBar: Rename center_box to box
2014-11-11 23:01:16 -05:00
Matthias Clasen
21e3d4f2f7
inspector: Turn off search where we don't have a search bar yet
...
Avoid the builtin treeview search popup everywhere.
2014-11-11 22:42:51 -05:00
Lapo Calamandrei
4aca13e39e
Statusbar: add 'statusbar' style class
2014-11-11 17:23:04 +01:00
Lapo Calamandrei
95aa4769f6
Adwaita: add a missing comma...
2014-11-11 16:12:47 +01:00
Matthias Clasen
c8d9e5b564
GtkStack: Remove some clumsy use of GList API
...
No need for g_list_next(), and don't open-code g_list_index().
2014-11-10 18:45:58 -05:00
Matthias Clasen
8b95515c0c
inspector: Only set debug-updates for the default display
...
Use the new private API to isolate the inspector itself from
this setting.
2014-11-10 15:24:08 -05:00
Matthias Clasen
5c5c8bdd81
inspector: Add a rendering mode control
2014-11-10 15:07:52 -05:00
Javier Jardón
710f332082
configure.ac: Depend on cairo 1.14.0
...
This is needed for cairo_set_device_scale()
2014-11-10 15:12:17 +00:00
Emmanuele Bassi
36fedb0c4b
window: GtkPlug is conditionally supported on X11 only
...
We cannot do a type check on it if we don't have the X11 backend
compiled in.
https://bugzilla.gnome.org/show_bug.cgi?id=739885
2014-11-10 15:08:44 +00:00
Matthias Clasen
8a8c6c0722
Inspector: hide the selector tab for non-widgets
2014-11-08 21:43:26 -05:00
Matthias Clasen
9a84d8a261
inspector: Hide the size-groups tab when empty
2014-11-08 21:30:12 -05:00
Matthias Clasen
0c20ba7dcb
inspector: Hide the inspector tab when empty
2014-11-08 21:29:51 -05:00
Matthias Clasen
7dd466ad74
Set the clip on range widgets
...
This will allow better scrollbar theming.
2014-11-08 12:55:37 -05:00
Lapo Calamandrei
c0c777077a
Adwaita: increase scrollbar slider contrast
2014-11-08 17:35:52 +01:00
Matthias Clasen
ae4aaf7354
inspector: Set statistics button sensitivity
...
After moving the button the header, it is now visible when
statistics are not available. Disable it in this case.
2014-11-08 09:57:48 -05:00
Matthias Clasen
592a0d46b4
inspector: Add more GL information
...
Add version and extension information to the general tab.
2014-11-08 02:16:35 -05:00
Emmanuele Bassi
cdcd3ca359
Hide GdkWindow libgtk_only API in the private vtable
...
These are the last two global GDK symbols that have a libgtk_only
suffix.
https://bugzilla.gnome.org/show_bug.cgi?id=739781
2014-11-08 00:20:15 -05:00
Emmanuele Bassi
585af218a3
Move GDK GL flags accessors to the private vtable
...
This allows us to use the GDK_PRIVATE_CALL macro inside gtk.
https://bugzilla.gnome.org/show_bug.cgi?id=739781
2014-11-08 00:20:15 -05:00
Emmanuele Bassi
eedbec2066
Make global GDK libgtk_only functions more private
...
The current way of exposing GDK API that should be considered internal
to GTK+ is to append a 'libgtk_only' suffix to the function name; this
is not really safe.
GLib has been using a slightly different approach: a private table of
function pointers, and a macro that allows accessing the desired symbol
inside that vtable.
We can copy the approach, and deprecate the 'libgtk_only' symbols in
lieu of outright removal.
https://bugzilla.gnome.org/show_bug.cgi?id=739781
2014-11-08 00:20:15 -05:00
Matthias Clasen
713d3834f6
inspector: Reserve space for buttons
...
Make the button area in the top left a stack that is parallel
to the main page stack. This avoids size changes as we switch
between pages.
2014-11-08 00:09:30 -05:00
Matthias Clasen
d0973fdb78
inspector: Improve search on the statistics page
...
Use a search bar here as well, instead of the builtin treeview popup.
2014-11-07 23:40:31 -05:00
Matthias Clasen
5f701cf4c9
inspector: Move the record button up
...
Give all the page space to the content.
2014-11-07 23:19:28 -05:00
Matthias Clasen
1ddace0a5f
inspector: Shorten some labels
2014-11-07 22:57:14 -05:00
Matthias Clasen
818d2e238b
inspector: Improve search in the resource tree
...
Make search in the resource tree work the same way as the new
search in the object tree.
2014-11-07 22:44:23 -05:00
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
Matthias Clasen
d8ba193e9a
HighContrast: integrate in build machinery
2014-10-30 12:52:25 -04:00
Matthias Clasen
fce2565673
Drop gtk.gresource.xml
...
Theme resources are controlled from the (generated) .gresource.xml
file two stories up.
2014-10-30 12:52:25 -04:00
Matthias Clasen
76b3fee093
HighContrast: Add sass parsing script
...
Just a copy of what we have next door in Adwaita.
2014-10-30 12:52:25 -04:00
Matthias Clasen
16d79e8883
HighContrast: Drop settings.ini
...
The only setting in there is already the default behavior,
and the setting is deprecated and ignored anyway.
2014-10-30 12:52:25 -04:00
Lapo Calamandrei
efaabdad0a
Adwaita: slightly contrasting popover background
2014-10-30 17:51:22 +01:00
Lapo Calamandrei
fdbb93d78c
Adwaita: border radiusses rationalization
2014-10-30 17:51:22 +01:00
Jakub Steiner
495f764b3d
theme: move HC theme from gnome-themes-standard
...
- HC is part of the toolkit the same way as Adwaita is
- No automake foo included
2014-10-30 16:14:37 +01:00
Alexander Larsson
ad30262fef
GtkGLArea: Always destroy context on unrealize
...
We had some code that tried to reuse the context over realize, but
that doesn't work as we need to share with the possibly new
paint context of the re-realized window.
2014-10-30 12:43:03 +01:00
Lapo Calamandrei
eb8f60f141
Adwaita: osd rationalization and tweakings
...
Removed bright translucent outer border for "top level" osd widgets,
insensitive osd entry styled, more meaningfull color variables and
some code rationalization.
2014-10-30 11:50:27 +01:00
Matthias Clasen
47191ce173
Make the inspector window translucent instead of lowering
...
Make the inspector window click-through and see-through
when we can, instead of lowering it. This is useful, since
Wayland has no lowering.
2014-10-29 23:29:20 -04:00
Lapo Calamandrei
7a1eabaf62
Adwaita: fix for the previous colorswatch fix...
...
Make the selected colorswatch inhert on backdrop.
2014-10-29 19:55:32 +01:00
Lapo Calamandrei
43a2676c3f
Adwaita: fix selected colorswatch white border
2014-10-29 19:50:58 +01:00
Lapo Calamandrei
bfd4933aa3
Adwaita: first round of OSD style converage
...
Some code refactoring, entry and spinbuttons and flat buttons
styled, more to come...
2014-10-29 18:40:28 +01:00
Matthias Clasen
8765970ba1
Remove a redundant call
...
No need to set shapes twice in a row.
2014-10-29 06:49:59 -04:00
Matthias Clasen
0b4c37624a
GtkPopoverMenu: Add API to open a submenu
...
This allows alternative menu switching to be implemented, besides
the builtin GtkModelButton support.
2014-10-29 06:49:59 -04:00
Matthias Clasen
6e001acbf9
Add documentation
...
Document GtkModelButton and GtkPopoverMenu.
2014-10-29 06:49:59 -04:00
Matthias Clasen
55b7838b4f
GtkPopoverMenu: Simplify
...
Change things so each submenu is a single child, and users are
required to create the box themselves.
2014-10-29 06:49:59 -04:00
Matthias Clasen
689363a782
GtkModelButton: Don't require an explicit role
...
When we have an action-name, we can deduce the role from the
action that is looked up by the action helper.
2014-10-29 06:49:59 -04:00
Matthias Clasen
14e394d3d7
GtkModelButton: Rename action-role to role
...
Rename action-role to role, and make all properties readable.
2014-10-29 06:49:59 -04:00
Matthias Clasen
e776c665b0
GtkModelButton: Drop unused :accel property
2014-10-29 06:49:59 -04:00
Matthias Clasen
ef22be9bb7
Drop GtkModelButton:has-submenu
...
Replace the has-submenu property with checking menu-name != NULL.
2014-10-29 06:49:59 -04:00
Matthias Clasen
e095918128
GtkModelButton: Add a menu-name property
...
Add a menu-name property and use it in a default implementation
of ::clicked to switch menus if we are inside a stack. This means
GtkModelButton is no longer entirely generic, but rather expects
to be used inside a GtkPopoverMenu. It still works in other contexts
too, of course.
2014-10-29 06:49:58 -04:00
Matthias Clasen
1f81c83fd8
Add GtkPopoverMenu
...
GtkPopoverMenu is a GtkPopover subclass that has a menu-like stack
built-in.
2014-10-29 06:49:58 -04:00
Matthias Clasen
83976c47f8
Make GtkModelButton a better GtkActionable
...
Rename the "toggled" property to "active", since that is what
GtkActionHelper expects to update for check and radio actions.
Also make the property readable, since GtkActionHelper wants
to read it.
2014-10-29 06:49:58 -04:00
Matthias Clasen
fd945be50b
Make GtkModelButton public
2014-10-29 06:49:58 -04:00
Matthias Clasen
c9ad936011
Drop an unused variable
2014-10-29 06:49:58 -04:00
Matthias Clasen
778865f316
Fix toplevel input shape for csd windows
...
We need to maintain the application-set and the the csd
input shape separately, and intersect them to pass them
down.
2014-10-28 20:23:47 -04:00
Matthias Clasen
4cf6edda55
wayland: Make window opacity work
...
Under wayland, the compositor doesn't have a 'overall window alpha'
knob, we just need to add the alpha to the buffers we send.
Client-side alpha, if you want to call it that.
Implement this by reusing the existing alpha support for non-toplevel
widgets. As a side-effect of the implementation, windows with RGBA
visual under X will now also use per-pixel alpha, instead of
overall alpha.
2014-10-28 10:28:23 -04:00
Matthias Clasen
850143b7a0
Inspector: Make picking work without a grab
...
Turns out Weston takes an X grab while delivering button events.
Thus, trying to take a grab in response to a button press is
futile.
2014-10-28 07:05:45 -04:00
Jasper St. Pierre
c40ba85ace
wayland: Don't use the default display
...
Pass a display in so that multi-display technology works.
2014-10-27 22:29:41 -07:00
Matthias Clasen
86f66d26fe
Drop an unused variable
2014-10-28 00:53:59 -04:00
Matthias Clasen
8aecf2c06a
GtkAboutDialog: Don't use gdk_cursor_new
...
gdk_cursor_new returns cursors for the default display, and
thus is not safe to use in code that may run on non-default
displays.
2014-10-28 00:36:17 -04:00
Jasper St. Pierre
5f980cd8de
gtkwindow: Use gdk_cursor_new_for_display
...
Otherwise, this crashes the inspector, since it now uses multi-display
technology, and on Wayland, resources like the cursor are client-private.
2014-10-27 21:22:44 -07:00
Jasper St. Pierre
5f40f58c36
cairoblur: Fix the blur again once more
...
The differences between the mutter and GTK+ code are subtle, but it
turns out that _gtk_cairo_blur_compute_pixels actually returns the
shadow *spread*. Since we use a triple box blur, the constant was
multiplied by 1.5 to approximate three chained box blurs. Split this
out and use the correct value for the lobe width.
2014-10-27 10:20:43 -07:00
Jasper St. Pierre
ac9ac55555
cairoblur: Fix the blur code
...
We weren't passing in the right "d" value, which was causing the blur to
behave incorrectly, especially in the case of 1px blurs, which would
cause no blurs at all.
The blur should now match the web.
2014-10-27 10:10:32 -07:00
Matthias Clasen
f1fe70e4ad
Indentation fix
2014-10-27 07:19:50 -04:00
Sebastien Lafargue
17f9eed14e
popover menus: Take iconic into account
...
We don't want separators in both side of an iconic section
and use a 10px margin to separate two iconic sections.
Separators are also updated in case of dynamic insertion
( often used with menu items for plugins )
https://bugzilla.gnome.org/show_bug.cgi?id=738650
2014-10-27 07:08:37 -04:00
Matthias Clasen
fc6f22c3ce
Ignore gdk-pixbuf deprecations
2014-10-27 07:05:22 -04:00