Matthias Clasen
72ece5a62c
GtkIconView: Remove a no-longer-valid optimization
...
The rubberband rendering code was assuming that we just have
a 1-pixel border and the rest of the rubberband is uniform.
That is not a safe assumption to make with css-styled
rubberbands, so remove it.
2014-06-19 13:52:11 -04:00
Lapo Calamandrei
b7c51de62b
Adwaita: fix rubberband selection
2014-06-19 19:11:02 +02:00
Matthias Clasen
c9e848b659
GtkIconTheme: Fix svg loading with FORCE_SIZE
...
Paradoxically, we were loading svgs at the nominal size when
FORCE_SIZE is specified, while scaling them exactly when it
isn't.
../build/win32/vs10/gtk.vcxproj
2014-06-18 19:09:37 -04:00
Jakub Steiner
51417f98d1
Adwaita: hover state for horizontal spinbuttons
2014-06-18 20:40:19 +02:00
Nikita Churaev
462f86d301
New window shadows
...
https://bugzilla.gnome.org/show_bug.cgi?id=731866
2014-06-18 20:40:19 +02:00
Lapo Calamandrei
6eedc62af9
Adwaita: highligh not hilight...
2014-06-18 19:38:14 +02:00
Lapo Calamandrei
a595dccf0e
Adwaita: remove wildcard for image effect
...
-gtk-image-effect: hilight now is set for .button:hover
2014-06-18 19:29:33 +02:00
Lapo Calamandrei
060f7b7428
Adwaita: calendar fixes
2014-06-18 18:13:38 +02:00
Matthias Clasen
baea175628
GtkHeaderBar: Don't forget to show the subtitle
...
https://bugzilla.gnome.org/show_bug.cgi?id=731790
2014-06-18 11:56:08 -04:00
Jakub Steiner
e3a40065cc
Adwaita: flatten buttons slightly.
...
- gets rid of the specialcase for dark too.
2014-06-18 16:36:41 +02:00
Lapo Calamandrei
c975b9ef9b
Adwaita: more links styling
2014-06-18 16:07:59 +02:00
Lars Uebernickel
af0496dc68
themes: use .popover class instead of GtkPopover
...
https://bugzilla.gnome.org/show_bug.cgi?id=731834
2014-06-18 14:24:14 +02:00
Lars Uebernickel
d0a3c8bd6f
gtkpopover: set background and popover css classes
...
https://bugzilla.gnome.org/show_bug.cgi?id=731834
2014-06-18 14:24:14 +02:00
Lapo Calamandrei
c2b7ebff11
Adwaita: remove bg from insensitive backdrop spinbutton buttons
2014-06-18 13:26:35 +02:00
Lapo Calamandrei
f39a12e0c6
Adwaita: vertical spinbuttons inhert in backdrop state
2014-06-18 13:16:21 +02:00
Jakub Steiner
0ff5c41718
Adwaita: actionbars' padding
2014-06-18 12:16:55 +02:00
Lapo Calamandrei
630b5b9797
Adwaita: reorderable tabs correctly styled for every notebook layout
2014-06-18 12:08:04 +02:00
Lapo Calamandrei
e1ae22465b
Adwaita: set outline-color on selected items
2014-06-18 10:21:13 +02:00
Lapo Calamandrei
6cebdf80ac
Adwaita: checks and radios text focus ring fix.
2014-06-18 10:11:11 +02:00
Lapo Calamandrei
0011c5c5e3
Adwaita: minor fixes.
2014-06-18 10:01:24 +02:00
Lapo Calamandrei
1566a5d9dd
Adwaita: .scrollbars-junction
2014-06-18 09:52:29 +02:00
Matthias Clasen
d57793adb4
Include image data in the builtin icon theme cache
...
When we switched the default for gtk-update-icon-cache to
not include image data, we should have thought about the
builtin icons. For them, we rely on image data being included.
This made the notify test fail in gnome-continuous, where we
build from git and always regenerate the builtin cache.
2014-06-17 16:26:42 -04:00
Alexander Larsson
3574a809fa
icon theme: Fix crash for builtin icons
...
This pushes the initialization of is_svg to an earlier point
when the GtkIconInfo is created. This is needed because an icon
info doesn't necessarily always have a filename that we can later
extract the suffix from. For instance, builtin icons have NULL
filename.
https://bugzilla.gnome.org/show_bug.cgi?id=721895
2014-06-17 13:54:13 -04:00
Jakub Steiner
d87d62fe73
Adwaita: selection mode buttons to have borders and fill
2014-06-17 15:55:58 +02:00
Jakub Steiner
e591c8ab41
Adwaita: symbolic checkboxes for selection mode.
2014-06-17 15:41:59 +02:00
Jakub Steiner
0ce17d4aca
Adwaita: make bash actually call sass
2014-06-17 15:39:45 +02:00
Benjamin Otte
aa6652aac7
cssprovider: Names starting with -gtk- aren't style props
...
We want to have the "-gtk-" prefix for our custom CSS properties. But
we also want to parse names starting with a "-" as style properties.
So make sure that "-gtk-" is treated like a normal property and we emit
errors when somebody uses it wrong.
This is to catch errors with people typing
-gtk-iconsource: none;
instead of the correct
-gtk-icon-source: none;
2014-06-17 00:01:25 +02:00
Matthias Clasen
f0f9c2aa37
Revert "gtkbin: replace internal api"
...
This reverts commit 0f4751c08e
.
This causes warnings from the notebook and combobox code.
2014-06-16 17:31:56 -04:00
Ryan Lortie
b532e1ff0a
menu binding: emit submenu close after activate
...
We want to make sure that the submenu action is changed back to FALSE
_after_ the menu item has been activated. This prevents the menu
teardown handler from deleting the menu item before it can be activated.
Unfortunately, GtkMenuShell emits "hide" before the item activation.
This is probably done to prevent the application from doing things like
showing dialogs when the menu is still holding the grab.
In the case where we are doing an activate, set a boolean flag on each
of the open menus (following the parent stack) indicating that we'll be
emitting another signal soon (selection done). If that flag is set, we
defer the setting of the submenu action until we receive the second
signal.
https://bugzilla.gnome.org/show_bug.cgi?id=729820
2014-06-16 15:34:42 -04:00
Jasper St. Pierre
0855d55668
Makefile: Add gtk.gresource.xml to gitignore
2014-06-16 14:03:53 -04:00
Lapo Calamandrei
085de60305
Adwaita: list-row styling
2014-06-16 19:58:37 +02:00
Benjamin Otte
fba90d4c65
colorswatch: handle clip for box-shadow
2014-06-16 18:43:49 +02:00
Lapo Calamandrei
b1cca3aa11
Adwaita: fix a typo
2014-06-16 17:14:20 +02:00
Lapo Calamandrei
490cb30c78
Adwaita: GtkPaned separator invisible border shrinking
2014-06-16 17:12:03 +02:00
Lapo Calamandrei
67b4749be0
Adwaita: fix column-header backdrop state
2014-06-16 17:07:27 +02:00
Jasper St. Pierre
c2bf7a887c
gtkicontheme: Fix a missing case where we forget to set is_svg
...
When duplicating the icon_info, we forgot to set is_svg. This meant that
any application that used gtk_icon_info_load_icon_async wouldn't have
is_svg set properly.
This fixes blurry icons in the gnome-shell app picker.
2014-06-16 10:47:34 -04:00
Lapo Calamandrei
aa339ee30c
Adwaita: column headers visual simplification
2014-06-16 16:46:05 +02:00
Chun-wei Fan
cf8eaebc07
GtkInspector: Use Adwaita by Default on Windows Too
...
As we are using Adwaita by default on all platforms, do the same for
GtkInspector, to be consistent with the rest of GTK+.
2014-06-16 12:07:04 +08:00
Paolo Borelli
715b8744f5
TextView: render the background of border windows
...
Set the .top, .left, etc css classes and render the background
of the border windows.
Change the reftest implementation accordingly.
2014-06-15 18:57:06 +02:00
Matthias Clasen
c1476bf1d7
Revert "Fixes GtkMenuTrackerItem visible flag reference"
...
This reverts commit ceed0ee703
.
2014-06-14 21:43:14 -04:00
Will Greenberg
ceed0ee703
Fixes GtkMenuTrackerItem visible flag reference
...
Previously GtkMenuTracker tried to access "gtk_menu_tracker_item_get_is_visible",
but the correct getter is "_gtk_menu_tracker_item_is_visible". This commit
corrects this reference
https://bugzilla.gnome.org/show_bug.cgi?id=731430
2014-06-14 21:26:22 -04:00
Matthias Clasen
a666827d3a
gtk-update-icon-cache: Add an --include-image-data option
...
Now that we don't include the image data by default anymore,
lets add an option that does it.
2014-06-14 19:30:17 -04:00
Matthias Clasen
62f8dae7a8
gtkicontheme: Don't query CONTENT_TYPE to determine svg
...
We already know based on the suffix of the filename.
https://bugzilla.gnome.org/show_bug.cgi?id=721895
2014-06-14 18:54:24 -04:00
Jasper St. Pierre
6f92c7942e
updateiconcache: Don't include image data by default anymore
...
Since large images are in the icon cache, and apps don't tend to use that
many icons anymore, simply don't include image data and instead make apps
load files from disk. Additionally, since they're stored in GdkPixbuf data,
that means that we have to first convert them either to a cairo_surface_t,
which requires converting pixel data to be premulitplied, or an OpenGL
texture, which requires a whole GPU upload anyway.
So, even with the icon cache, the goal of icons through zero-copy, mmap()'d
data from disk just isn't doable with the icon cache format we have. The
icon cache on my disk is nearing 100MB, since we include a bunch of
high-resolution application icons, that I doubt would be used by apps at all.
Removing this inefficient pixel data makes memory usage for all applications
go down, with no speed loss.
The icon cache also, however, has an index of what icons are in each folder,
which prevents a readdir() and allows GTK+ to know what icon is where without
having to do a bunch of stat(); calls. Keeping this data is good for GTK+,
so we should still keep the index.
It doesn't make sense to remove any code for mapping pixel data from the icon
cache. There's a plan in the works to have a symbolic icon cache that does
pixel math on 16x16 icons to prevent slow SVG rendering. 16x16 pixels are
fairly small, and such images are flat colors, which should compress easily,
so the icon cache would be worthwhile here. So let's keep the code around
in preparation for that case.
https://bugzilla.gnome.org/show_bug.cgi?id=721895
2014-06-14 16:08:24 -04:00
Paolo Borelli
c184458ab3
notebook: set tab position style class on the main frame
...
We want to have .top etc also on the notebook frame, not only on
the header frame.
The patch includes a reftest by Benjamin.
2014-06-14 21:37:07 +02:00
Matthias Clasen
fea939b3d7
GtkIconTheme: Don't treat svg icons specially
...
This changes makes svg icons go through the same scale calculation
code as png icons. As a consequence, an svg that is put into the
32x32 directory will actually be loaded at size 32, even if it
gets requested at a bigger size. This will let us avoid giant
spinners.
https://bugzilla.gnome.org/show_bug.cgi?id=731658
2014-06-14 15:10:49 -04:00
Lapo Calamandrei
fd53732035
Adwaita: try to make scrollbars near paned separator usable.
2014-06-14 19:06:26 +02:00
Lapo Calamandrei
b939b17f51
Adwaita: comment added
2014-06-14 15:37:36 +02:00
Lapo Calamandrei
40775415cc
Adwaita: fix GtkScale outline offset and radius
2014-06-14 15:31:05 +02:00
Lapo Calamandrei
77a4b253df
Adwaita: Gtkscale
...
- added slider assets for scales with marks
- experimental touch friendly fine-tune mode, grow the trough istead
of shrinking the slider
2014-06-14 14:51:03 +02:00
Rico Tzschichholz
e3443c9cf5
Adwaita: drop references to render-borders.sh/borders.txt
...
They were dropped with 82b1232898
2014-06-14 13:13:29 +02:00
Lapo Calamandrei
83bc345b50
Adwaita: noticiable scale slider active state for the dark variant
2014-06-14 11:30:22 +02:00
Lapo Calamandrei
b10e358f5e
Adwaita: include missing assets
2014-06-14 11:01:31 +02:00
Lapo Calamandrei
a1991df8d3
Adwaita: darker base color for the dark variant
2014-06-14 11:00:33 +02:00
Lapo Calamandrei
a6de44ac69
Adwaita: dark var backdrop insensitive fixes
...
Consistent backdrop insensitive state for dark variant GtkScale and GtkSwitch
2014-06-14 10:48:28 +02:00
Lapo Calamandrei
54e4c11ed1
Adwaita: GtkScale
...
slider :hover state added
2014-06-14 10:19:15 +02:00
Lapo Calamandrei
3d70add7f6
Adwaita: sidebar separator and selected item backdrop fix
2014-06-14 09:00:21 +02:00
Lapo Calamandrei
04a1a15e88
Adwaita: added a missing border to GtkFileChooser
2014-06-14 08:45:55 +02:00
Lapo Calamandrei
7fd675e4f6
Adwaita: better tab close button
2014-06-14 08:42:12 +02:00
Lapo Calamandrei
82b1232898
Adwaita: remove old cruft not used anymore
2014-06-14 08:31:36 +02:00
Lapo Calamandrei
a1bf6718f5
check and radio assets refresh
2014-06-14 08:29:47 +02:00
Stefan Sauer
406974fdb1
scrolledwindow: update GtkPolicyType docs
...
The policy is not determining the visibility of the scrollbars anymore, but the
how the size is to be computed to achive the selected visibility.
2014-06-14 08:10:46 +02:00
Stefan Sauer
0f4751c08e
gtkbin: replace internal api
2014-06-14 08:10:46 +02:00
Matthias Clasen
aba6871dba
inspector: Use Adwaita as default theme
2014-06-14 00:15:09 -04:00
Matthias Clasen
3ae4c8f125
Adwaita: bring back the extra indirection
...
Without this, we are missing the 'Adwaita' component in the
path when resolving relative resources, and none of the assets
are found.
2014-06-13 14:44:38 -04:00
Matthias Clasen
6cc5908d88
Try to fix the continuous build
...
Making gtk.gresource.xml generated was causing a problem for
srcdir!=builddir builds from git. Builds from tarballs are
not affected, because the tarball contains the generated file.
2014-06-13 14:16:37 -04:00
Matthias Clasen
cefa19d30c
Use Adwaita as the default theme
...
This ensures that GTK+ applications have a high-quality theme on
all platforms, and look consistent.
2014-06-13 13:20:58 -04:00
Matthias Clasen
b4e1e01acc
Include the Adwaita theme
...
This adds the resources for the Adwaita theme, and includes them
in libgtk, on all platforms.
2014-06-13 13:20:47 -04:00
Matthias Clasen
4c95dbb05b
Don't include the win32 theme on Linux
...
No need to carry around these resources when we are not
going to use them.
2014-06-13 10:30:36 -04:00
Matthias Clasen
f1cf10fe86
Generate gtk.gresource.xml
...
This will help when including Adwaita. It will also let us
drop the win32 theme on Linux, hopefully.
2014-06-13 10:24:30 -04:00
Matthias Clasen
6fc65d5b0f
Rename cursor pngs to their resource name
...
This allows us to get rid of some aliases in the .gresource.xml.
2014-06-13 09:28:27 -04:00
Matthias Clasen
6de3741f18
Move theme resources into subdirectories
...
Preparing for Adwaita to come in here.
2014-06-13 08:40:56 -04:00
Matthias Clasen
2e5cda99f8
inspector: Allow Escape to cancel picking
2014-06-13 06:10:23 -04:00
Matthias Clasen
404149b2bf
inspector: Use a better icon for the picker
...
Recommended by Allan Day.
2014-06-13 06:10:23 -04:00
Matthias Clasen
c1270a19c3
Trivial formatting fix
2014-06-13 06:10:23 -04:00
Carlos Garnacho
6d8842ca96
gesturesingle: Implement GtkGesture::cancel better than GtkEventController:reset
...
The former can be called individually on each sequence, and the latter will
always call the former on all currently active sequences, so only implementing
resetting on cancel() works for both cases. Also, chain up on subclasses
implementing cancel.
This fixes clicking on nautilus' file list after popping up a menu, as broken
grabs are one of those situations where sequences get cancelled individually,
the "current button" wasn't properly reset, and further clicks with button != 3
were ignored.
2014-06-13 01:27:31 +02:00
Carlos Garnacho
05810f80a4
textview: Unobscure the mouse cursor on motion events
...
This used to be done before the gestures port, and was removed
accidentally, so keep the motion_notify_event handler just for
this, and fallback to having those events handled by gestures
too.
2014-06-12 23:23:43 +02:00
Dieter Verfaillie
daa8b48a33
Fix gtk_selection_data_get_data annotations
...
The annotations were intended for the return
value, not the instance argument.
https://bugzilla.gnome.org/show_bug.cgi?id=731299
2014-06-12 21:01:01 +02:00
Dieter Verfaillie
0c5b5fc053
docs: remove mention of old GtkList and GtkCList
...
Reported by andlabs in irc://irc.gnome.org/gtk+
https://bugzilla.gnome.org/show_bug.cgi?id=731382
2014-06-12 20:46:21 +02:00
Matthias Clasen
9bc07a2634
Add a message-dialog style class
...
This helps in separating message dialogs from other dialogs,
theming-wise.
2014-06-12 09:22:36 -04:00
Matthias Clasen
e97cf2fd0b
Add GTK_STYLE_CLASS_POPUP to the docs
2014-06-12 09:22:06 -04:00
Carlos Garnacho
3b636cbeb9
scrolledwindow: Deny scrolling sequences if pressed on the scrollbars
...
Scrollbars might be a bit too narrow for touch (and generally less useful
besides kinetic scrolling), but those should be functional nevertheless.
2014-06-12 15:17:47 +02:00
Carlos Garnacho
3ef1b387bc
window: Only claim a button=1 press sequence when dragging is about to happen
...
This way plain clicks can be handled in gtkmain through the usual delivery mechanism,
and get possibly handled too by widgets holding a GTK+ grab. If window dragging is to
be started, the sequence will be claimed (and a grab will happen afterwards), notifying
properly the grabbing widget that event delivery was interrupted.
This makes it possible to dismiss popovers by clicking on window headerbars, while
still making it possible to drag the window with the popover opened.
2014-06-12 14:27:35 +02:00
Matthias Clasen
5334fb8921
Drop GDK_MULTIHEAD_SAFE
...
We don't support multiple screens anymore, so there is no need
for marking API as multihead safe any longer.
2014-06-11 21:55:15 -04:00
Matthias Clasen
41fd2ae898
Deprecate outside-border style properties
...
These should just be replaced by CSS margins, etc.
2014-06-11 19:38:22 -04:00
Matthias Clasen
48db936b70
GtkButton: Don't use a non-zero border by default
...
The non-zero default default-border was causing buttons to shrink as
the focus moves around them. Themes which want a default-border should
define it explicitly.
2014-06-11 19:06:36 -04:00
Carlos Garnacho
3e65655424
treeview: Check that :row-activated is only emitted on GDK_BUTTON_PRIMARY
...
It turned out not all code was fully prepared to handle multiple buttons,
this avoids respawning https://bugzilla.gnome.org/show_bug.cgi?id=731020 .
2014-06-11 23:18:34 +02:00
Carlos Garnacho
f321d3a50a
treeview: Make row area multipress gesture react to all buttons
...
The code is actually prepared for that, the gesture was initially limited
to only handling GDK_BUTTON_PRIMARY because it only used to handle row
activation.
2014-06-11 23:01:31 +02:00
Carlos Garnacho
e114717097
treeview: Remove unused variables from priv struct
...
These variables were last used before moving row activation to being
managed by a gesture.
2014-06-11 17:36:04 +02:00
Carlos Garnacho
89f38b5fc6
treeview: Move all button press/release management to the multipress gesture
...
The multipress gesture on the bin window now also does all the business related
to row selection. As row selection and activation can't be easily decoupled, this
fixes certain problems around ::row-activated being emitted on NULL paths.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=731455 and
https://bugzilla.gnome.org/show_bug.cgi?id=731018
2014-06-11 17:36:04 +02:00
Carlos Garnacho
3f084e3ab5
treeview: Use drag gesture for rubberband selection/DnD
...
This gesture acts only on events from the bin window, and checks that
either the pressed row is draggable, or the conditions for rubberband
selection apply.
2014-06-11 17:36:03 +02:00
Carlos Garnacho
50491f15ae
treeview: Use gestures for column dragging/resizing
...
A multipress gesture takes care of autosizing on double click, and
a drag gesture is used for both column dragging/resizing (only one
can happen at a time).
2014-06-11 17:36:03 +02:00
Carlos Garnacho
b8886436b3
treeviewcolumn: Avoid a device position query
...
This happens in an event handler, and the button event should be
expected to have the right coordinates on the event window already.
2014-06-11 17:36:03 +02:00
Carlos Garnacho
20a59985fe
gesturesingle: Ensure the current button stays set until after the touch/button release
...
This makes gtk_gesture_get_current_button() work properly on GtkGesture::end, and signals
spawn from there on subclasses.
2014-06-11 17:36:03 +02:00
Matthias Clasen
e7b3d8b414
GtkPaned: Make sure the raise the handle window above children
...
We need to show child windows and handle in the right order,
otherwise the input-only handle window ends up under the children
where it is useless.
2014-06-11 09:33:30 -04:00
Matthias Clasen
77cb6d8b4a
GtkTooltip: Ignore shadow when finding widgets
...
When placing tooltips, the csd shadow will get 'pushed up' and
may end up underneath the pointer. We don't want this to cause
the tooltip to be hidden, because that leads to flickering, so
ignore the shadow when finding the widget under the pointer.
2014-06-11 00:04:04 -04:00
Matthias Clasen
2d05bf1492
csd: Fix non-resizable windows
...
For csd override-redirect windows, we don't set up resize handles,
but we were not ignoring the margin in all places, causing some
size calculations to go wrong.
2014-06-11 00:04:04 -04:00
Matthias Clasen
a4b0d35649
Don't mention no longer existing widgets in the docs
...
GtkText, GtkList and GtkCList don't exist anymore.
2014-06-11 00:04:04 -04:00
Benjamin Otte
200bdf1aec
stylecontext: Get rid of StyleData struct
...
It's now just a GtkCssComputedValues + refcount. And
GtkCssComputedValues has its own refcount, so use that one instead.
2014-06-11 01:18:05 +02:00
Benjamin Otte
57c4f01e0d
stylecontext: Move property cache
...
... from per style data to only existing once per style context. This is
technically an API break because it no longer allows getting different
style properties between save()/restore() pairs, but I don't think this
was ever intended to work that way, as the style property API was to be
used and is used via gtk_widget_get_style().
And it simplifies code a lot.
2014-06-11 01:18:05 +02:00
Benjamin Otte
4a6957f50d
stylecontext: Remove state from _peek_style_property()
...
It evaluates to "current state" in all cases, so no need to special case
it.
2014-06-11 01:18:04 +02:00
Benjamin Otte
d1dd33d885
css: Fix uninitializaed variable
2014-06-10 15:58:17 +02:00
Matthias Clasen
b0c6263f6c
inspector: Add combobox popups to the tree
2014-06-10 08:54:12 -04:00
Matthias Clasen
ec9cf6d7c3
GtkComboBox: Add private api to get the popup
...
This will be used to make the popup appear in the inspector.
2014-06-10 08:54:12 -04:00
Matthias Clasen
634972e063
inspector: Add submenus to the tree
2014-06-10 08:54:12 -04:00
Benjamin Otte
c906aa7e08
menuitem: Use .arrow style class for submenu indicators
...
As requested by the Adwaita guys.
2014-06-10 13:47:51 +02:00
Benjamin Otte
b21c86f49a
treeview: Remove unused variable
2014-06-10 13:47:51 +02:00
Benjamin Otte
cdd341ed7d
viewport: Remove unused variable
2014-06-10 13:47:51 +02:00
Benjamin Otte
8ea013290b
cellrenderertoggle: Remove copy/paste leftovers
...
Introduced in 2d88a3ae30
2014-06-10 13:47:51 +02:00
Benjamin Otte
4b793dd508
a11y: Remove an outdated comment
2014-06-10 01:17:00 +02:00
Benjamin Otte
3759190c26
css: Parse text-shadow values properly
...
We used to accept the same syntax for text-shadow and icon-shadow as
we accept for box-shadow. However, box-shadow does accept a spread and
the inset keyword while the others should not.
2014-06-10 01:07:57 +02:00
Joanmarie Diggs
fc00381d30
GtkEntryAccessible: Emit signal after insertion
...
The signal needs to be emitted after the text insertion as at-spi gets
the text to compute the inserted text due to the AtkText::insert-text
signal not containing it.
Also adjust position to reflect changes to the offsets.
https://bugzilla.gnome.org/show_bug.cgi?id=731429
2014-06-10 01:07:57 +02:00
Matthias Clasen
fbc6a0c400
Add some theming for csd popups
...
Not attempt to make this look good, just to demonstrate
that themes can in fact do it.
https://bugzilla.gnome.org/show_bug.cgi?id=731187
2014-06-09 14:16:12 -04:00
Matthias Clasen
a39985a43e
Request csd for tooltips
...
Use the new private GtkWindow api to request
client-side decorations for tooltips.
https://bugzilla.gnome.org/show_bug.cgi?id=731187
2014-06-09 14:15:28 -04:00
Matthias Clasen
179d6a4c7b
GtkTooltip: take csd shadows into account for placement
...
When placing tooltips, we don't want the shadow to influence
our choice.
https://bugzilla.gnome.org/show_bug.cgi?id=731187
2014-06-09 14:15:28 -04:00
Matthias Clasen
49bb39ecf5
GtkTooltip: remove hardcoded tooltip drawing
...
This is old code from dating back many years. Nowadays, we can
just use css drawing and csd windows to achieve much the same
effect.
Themes will need some adjustment for this change.
https://bugzilla.gnome.org/show_bug.cgi?id=731187
2014-06-09 14:15:27 -04:00
Matthias Clasen
dae252e3d2
Request csd for menus
...
Use the new private GtkWindow api to request
client-side decorations for menus.
https://bugzilla.gnome.org/show_bug.cgi?id=731187
2014-06-09 14:15:24 -04:00
Matthias Clasen
3cf916be8a
GtkMenu: Add a separate style class to the toplevel of menus
...
This is necessary in order to use .window-frame.csd.popup for
styling csd menus.
https://bugzilla.gnome.org/show_bug.cgi?id=731187
2014-06-09 14:14:48 -04:00
Matthias Clasen
e9ed210b0b
GtkMenu: take csd shadows into account for placement
...
When placing menus, we don't want the shadow to influence
our choice.
https://bugzilla.gnome.org/show_bug.cgi?id=731187
2014-06-09 14:01:42 -04:00
Matthias Clasen
bde4e86357
Allow csd for override-redirect windows
...
This commit makes it possible to use client-side decorations for
override-redirect windows by calling _gtk_window_request_csd()
before realizing the window. Since the wm won't do interactive
resizing for us in this case anyway, don't bother creating
the border windows we use for this purpose on regular toplevels.
To make this accessible to themes, we set a "csd" style class
on client-side decorated windows. With this, .window-frame.csd.menu
can be used to define the shadow for csd menus, and .menu can be
used to define a border for menus under non-composited wms.
https://bugzilla.gnome.org/show_bug.cgi?id=731187
2014-06-09 14:01:42 -04:00
Matthias Clasen
60cd7076cf
Add a csd style class
...
This will be used for client-side decorated windows.
https://bugzilla.gnome.org/show_bug.cgi?id=731187
2014-06-09 14:01:42 -04:00
Matthias Clasen
b22b2298be
GtkViewport: Don't do silly things in a setter
...
Just queue a resize instead of fiddling with the size allocation.
2014-06-09 13:51:58 -04:00
Matthias Clasen
ee8a3a4192
Mark GtkStyleContext::direction as deprecated
...
The setter was deprecated a while ago, do the same for the property.
2014-06-09 13:42:07 -04:00
Matthias Clasen
ac2329b842
Mark GtkContainer::resize-mode as deprecated
...
The setter was deprecated a while ago, do the same for the property.
2014-06-09 13:39:38 -04:00
Matthias Clasen
46803aae11
GtkVolumeButton: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:31:14 -04:00
Matthias Clasen
bcd804613f
GtkViewport: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:31:14 -04:00
Matthias Clasen
785e4d376e
GtkTreeViewColumn: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:31:13 -04:00
Matthias Clasen
fe31f87bf0
GtkTreeView: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:31:13 -04:00
Matthias Clasen
d169f409b0
GtkTreeSelection: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:31:13 -04:00
Matthias Clasen
71ac4d626e
GtkToolPalette: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:31:13 -04:00
Matthias Clasen
cf6274c979
GtkToolItemGroup: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:31:13 -04:00
Matthias Clasen
40c3804ecd
GtkToolbar: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:31:12 -04:00
Matthias Clasen
6e64bc13de
GtkTextView: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:31:12 -04:00
Matthias Clasen
eed1ae682b
GtkSwitch: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:31:12 -04:00
Matthias Clasen
17059f9c17
GtkToolItem: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:31:12 -04:00
Matthias Clasen
3074fcf31d
GtkToolButton: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:31:11 -04:00
Matthias Clasen
db8101c998
GtkToggleToolButton: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:31:11 -04:00
Matthias Clasen
b73e810613
GtkStyleContext: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:31:11 -04:00
Matthias Clasen
1208539eff
GtkStatusIcon: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:31:10 -04:00
Matthias Clasen
9321b30b0b
GtkSpinner: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:31:10 -04:00
Matthias Clasen
d03752cdcc
GtkSpinButton: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:31:10 -04:00
Matthias Clasen
83669856b2
GtkSizeGroup: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:31:09 -04:00
Matthias Clasen
4867e95291
GtkSeparatorToolItem: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:31:09 -04:00
Matthias Clasen
710a5b3a90
GtkSearchBar: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:31:09 -04:00
Matthias Clasen
115faae371
GtkSearchBar: Handle lack of an entry
...
We were not dealing with the possibility of priv->entry being
NULL in all places.
2014-06-09 13:31:09 -04:00
Matthias Clasen
0dd1102cc4
GtkSeparator: Explicitly notify orientation
2014-06-09 13:31:08 -04:00
Matthias Clasen
ed6f9c1ee9
GtkScrolledWindow: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:31:08 -04:00
Matthias Clasen
570194640e
GtkScrollable: Use G_PARAM_EXPLICIT_NOTIFY
...
Implementors will have to be adjusted.
2014-06-09 13:31:08 -04:00
Matthias Clasen
0505a189d3
GtkScaleButton: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:31:08 -04:00
Matthias Clasen
1740663584
GtkScale: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:31:07 -04:00
Matthias Clasen
f80ff85745
GtkRecentChooserMenu: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:31:07 -04:00
Matthias Clasen
e6f413c6a7
GtkRange: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:31:07 -04:00
Matthias Clasen
f446ffdd5d
GtkProgressbar: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:31:07 -04:00
Matthias Clasen
e1d1ed863e
GtkPrintOperation: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:31:07 -04:00
Matthias Clasen
8915e9cf42
GtkPopover: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:31:06 -04:00
Matthias Clasen
22cc9749c9
GtkPaned: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:31:06 -04:00
Matthias Clasen
c93355616f
GtkNotebook: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:31:06 -04:00
Matthias Clasen
47615f32bf
GtkMessageDialog: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:31:06 -04:00
Matthias Clasen
c1540464b7
GtkMenuShell: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:31:06 -04:00
Matthias Clasen
cfbfeb1b3c
GtkMenuButton: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:31:06 -04:00
Matthias Clasen
0d528ab391
GtkMenuBar: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:31:05 -04:00
Matthias Clasen
60fbb2bb89
GtkMenu: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:31:05 -04:00
Matthias Clasen
3f3f26d8a1
GtkLinkButton: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:31:05 -04:00
Matthias Clasen
45c84a63a3
GtkLevelBar: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:31:05 -04:00
Matthias Clasen
46828a41b0
GtkLayout: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:31:05 -04:00
Matthias Clasen
6ac00a7ff7
GtkInfoBar: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:31:04 -04:00
Matthias Clasen
726d603f61
GtkIMContext: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:31:04 -04:00
Matthias Clasen
720561475d
GtkIconView: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:31:04 -04:00
Matthias Clasen
68673963fc
GtkImage: Use G_PARAM_EXPLICIT_NOTIFY
...
And make use of the new icon helper API to avoid
redundant notification.
2014-06-09 13:31:04 -04:00
Matthias Clasen
7e40d74b0b
GtkIconHelper: Change setters to return success
...
This makes it easier to avoid redundant notifications in users.
2014-06-09 13:31:04 -04:00
Matthias Clasen
d1f6858b36
GtkHeaderBar: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:31:04 -04:00
Matthias Clasen
efc2166c25
GtkGrid: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:31:03 -04:00
Matthias Clasen
f195322254
GtkGestureSingle: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:31:03 -04:00
Matthias Clasen
11224f521d
GtkGesturePan: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:31:03 -04:00
Matthias Clasen
372223ac94
GtkRecentChooserDefault: Adapt to explicit notify
2014-06-09 13:31:03 -04:00
Matthias Clasen
f6e5f88454
GtkRecentChooser: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:31:03 -04:00
Matthias Clasen
110f859899
GtkEventController: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:31:02 -04:00
Matthias Clasen
eebb73032a
GtkFontButton: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:31:02 -04:00
Matthias Clasen
2a7bed6858
GtkFontButton Trivial cleanup
...
Replace GTK_PARAM_READABLE|GTK_PARAM_WRITABLE by GTK_PARAM_READWRITE.
2014-06-09 13:31:02 -04:00
Matthias Clasen
eb34ff5b48
GtkFontButton: Fix the handling of show-preview-button
...
We were not storing the value at all, and not notifying.
2014-06-09 13:31:02 -04:00
Matthias Clasen
595a44680a
GtkFontChooser: Use G_PARAM_EXPLICIT_NOTIFY for show-preview-entry
...
Implementors will have to be adjusted.
2014-06-09 13:31:01 -04:00
Matthias Clasen
6877253e14
GtkFlowBox: Explicitly notify orientation
2014-06-09 13:31:01 -04:00
Matthias Clasen
43ba93971c
GtkExpander: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:31:01 -04:00
Matthias Clasen
544b5b0fe6
GtkEventBox: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:31:01 -04:00
Matthias Clasen
e3dc90dc9b
GtkToggleButton: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:31:01 -04:00
Matthias Clasen
bce70ca75e
GtkMenuItem: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:31:00 -04:00
Matthias Clasen
3ae562aca2
GtkFrame: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:31:00 -04:00
Matthias Clasen
331c28b369
GtkEntryCompletion: Use G_PARAM_EXPLICIT_NOTIFY
...
Also, use the setter for text-column, internally.
2014-06-09 13:31:00 -04:00
Matthias Clasen
07af47ce3e
GtkEntryBuffer: Use G_PARAM_EXPLICIT_NOTIFY
...
Also avoid redundant notification for max-length.
2014-06-09 13:31:00 -04:00
Matthias Clasen
ec6056a574
GtkEntry: Explicitly notify for populate-all
2014-06-09 13:30:59 -04:00
Matthias Clasen
056acf92ec
GtkEntry: Don't forget to notify for the tooltip markup props
2014-06-09 13:30:59 -04:00
Matthias Clasen
c411de437a
GtkColorChooserWidget: Explicitly notify for use-alpha
2014-06-09 13:30:59 -04:00
Matthias Clasen
a215a4c762
GtkColorChooserDialog: Explicitly notify for use-alpha
2014-06-09 13:30:59 -04:00
Matthias Clasen
d5a119ae9b
GtkColorChooser: Use G_PARAM_EXPLICIT_NOTIFY for use-alpha
...
Implementors will need to adjust.
2014-06-09 13:30:58 -04:00
Matthias Clasen
b28123dd3c
GtkColorButton: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:30:58 -04:00
Matthias Clasen
2f82250cc1
GtkCheckMenuItem: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:30:58 -04:00
Matthias Clasen
bfc1a2118f
GtkCellView: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:30:58 -04:00
Matthias Clasen
d33b14bfbe
GtkCellView: Explicitly notify for orientation
2014-06-09 13:30:57 -04:00
Matthias Clasen
2d88a3ae30
GtkCellRendererToggle: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:30:57 -04:00
Matthias Clasen
c96f5b953a
GtkCellRendererText: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:30:57 -04:00