Matthias Clasen
f7cc4abbad
Avoid ugly seams on half-tiled terminals
...
Since we're no longer doing geometry widgets, don't send
base size and increments to the window manager anymore either.
This avoids an ugly 2 pixel gap to the right and bottom of half-tiled
terminals under gnome-shell.
2015-12-07 10:11:06 -05:00
Matthias Clasen
88c4d06973
accel cellrenderer: Fix rendering
...
We were getting the "New Accelerator" text mixed with the
content of the underlying cell, since plain labels don't
have a background. Go back to putting the label in selected
state, and fix the theme to render that white-on-blue. This
was lost when we switched to using a selection sub-node.
2015-12-07 07:04:43 -05:00
Erika
05dd21be88
Correct annotations for gtk_cell_layout_get_area
...
The function can return NULL.
https://bugzilla.gnome.org/show_bug.cgi?id=759081
2015-12-07 06:16:59 -05:00
Matthias Clasen
326f4739ca
inspector: Redo the CSS node page
...
Showing two lists in a paned was a bit awkward, and space was
getting too limited. Go back to showing just the node list at
first, and make the CSS properties available via a stack. At
the same time, add a right-click context menu to the node list
to make the name and class editing more easily available.
2015-12-06 23:06:33 -05:00
Matthias Clasen
6f1c945010
inspector: Avoid a crash
...
gkt_cell_layout_get_area may return NULL, handle it.
2015-12-06 17:25:31 -05:00
Matthias Clasen
9c73603c16
css node: Some more docs
2015-12-06 15:42:13 -05:00
Matthias Clasen
2188fe0e54
places view: Use names for cursors
...
Use the standard name for the busy+interactive cursor.
2015-12-05 19:18:27 -05:00
Matthias Clasen
f76fa0411f
entry: Always use cursor names
...
The names are the preferred API for cursors, so use it.
2015-12-05 19:17:52 -05:00
Matthias Clasen
93b3669273
Be forgiving if cursors are missing
...
No need to crash here. Missing cursors are ugly, but we
shouldn't crash.
2015-12-05 18:55:05 -05:00
Matthias Clasen
c73325c6b0
entry completion: Reduce the timeout
...
Pop up the completion window after 100ms. The previous timeout
of 300ms was making completions feel slow.
https://bugzilla.gnome.org/show_bug.cgi?id=758929
2015-12-05 14:12:27 -05:00
Matthias Clasen
12dbfe026f
shortcuts: Another attempt to fix up forall
...
gtk_window_set_titlebar does not take ownership of the headerbar,
so we need to explicitly destroy it.
2015-12-05 13:53:23 -05:00
Matthias Clasen
c83ab24237
Remove GtkShortcutsGesture
...
The gesture functionality was taken over by GtkShortcutsShortcut,
so this widget is no longer needed, and it never was in a stable
release, so lets get rid of it.
2015-12-05 12:10:21 -05:00
Lapo Calamandrei
830b6f10a1
Adwaita: simpler active switch background
...
...removing the progressbar_fill mixin in the process.
2015-12-05 17:56:32 +01:00
Lapo Calamandrei
8f2cd874f1
Adwaita: first stab at some visual updates
2015-12-05 17:56:32 +01:00
Matthias Clasen
f210dc9281
Fix make check
...
GtkFontChooserWidget is using a GThemedIcon in its template,
so we need to ensure that the type is registered before
loading it. This was causing the defaultvalue test to fail.
2015-12-04 17:01:03 -05:00
Lionel Landwerlin
55e06e5d52
adwaita: fix property spelling mistake
...
https://bugzilla.gnome.org/show_bug.cgi?id=759048
2015-12-04 21:04:06 +00:00
Timm Bäder
ecc5342b0d
GtkEntry: Recompute in text-inserted/text-deleted
...
The text-inserted/text-deleted handlers rely on the cursor positions
being unadjusted after the text change, so we can't do it in
buffer_notify_text.
2015-12-04 20:41:16 +01:00
Matthias Clasen
03769e3830
shortcut label: Tweak modifier key rendering
...
The subscript was affecting the vertical alignment too much,
so tweak the rendering of the L/R markers to avoid that. Also,
mark these as translatable.
2015-12-04 13:22:26 -05:00
Matthias Clasen
27b24bb68f
Add a css name to GtkShortcutsShortcut
...
This will be useful for tweaking the gesture image details,
among other things.
2015-12-04 13:22:26 -05:00
Lapo Calamandrei
5cb06a30a0
Adwaita: added back progressbar.osd style
2015-12-04 19:04:17 +01:00
Lapo Calamandrei
c64452c29d
Adwaita: fix scales with marks on the dark variant
2015-12-04 18:47:28 +01:00
Lapo Calamandrei
cfc17a0152
Adwaita: slight color tweaks
2015-12-04 18:43:24 +01:00
Benjamin Otte
d14e2a489a
iconhelper: Fold function into callers
...
The function takes so many arguments and is so short that it's not worth
keeping.
2015-12-04 17:44:51 +01:00
Benjamin Otte
72d4b65b1d
iconhelper: Apply icon-effect directly
...
Instead of creating an icon source, making sure no state is set and
therefore the icon-effect will be applied and then rendering that icon
source, just call the icon-effect apply function.
Also, the new way isn't deprecated.
2015-12-04 17:44:51 +01:00
Benjamin Otte
1b835fc7ce
css: Leftover renaming gtk-image-effect => icon-effect
...
The previous renaming commit was incomplete, so here we go again.
2015-12-04 17:44:51 +01:00
Benjamin Otte
a37220109f
render: Split out icon-effect apply function
2015-12-04 17:44:51 +01:00
Benjamin Otte
cefba86fb3
iconhelper: Return surface from icon-effect function
...
All the callers where converting to a surface anyway.
2015-12-04 17:44:51 +01:00
Benjamin Otte
295f208e1c
iconhelper: Refactor missing icon handling
...
In particular, stop using deprecated code for loading the missing image
icon.
2015-12-04 17:44:51 +01:00
Benjamin Otte
3c54a49633
iconhelper: Fold function into only caller
2015-12-04 17:44:51 +01:00
Benjamin Otte
b8dd24b4fb
iconfactory: Drop caching infrastructure
...
- icon sets are essentially unused
- the icon theme does caching
- this code complicates the restructuring I'm about to do
=> Delete it!
2015-12-04 17:44:51 +01:00
Matthias Clasen
8768c0b8ac
shortcuts: Extend the accelerator syntax more
...
Cover cases like left+right control, and render them nicely.
The gtk3-demo builder shortcuts example shows the new
possibilities.
2015-12-04 10:56:48 -05:00
Timm Bäder
3ba11782db
GtkEntry: nullable annotations
2015-12-03 20:20:58 +01:00
Timm Bäder
da477575cd
GtkEntry: Return proper constants from signal handlers
2015-12-03 20:01:30 +01:00
Timm Bäder
d86ec52547
GtkTreeModel: Remove erroneous transfer annotation
2015-12-03 20:01:30 +01:00
Timm Bäder
f11f989f1f
GtkEntry: Remove recompute idle
...
Just do it directly
2015-12-03 20:01:30 +01:00
Timm Bäder
cfc23cbf32
GtkEntry: Remove unused fields
2015-12-03 20:01:30 +01:00
Lapo Calamandrei
07ee962ed3
Adwaita: some OSD rationalization
...
taking care of https://bugzilla.gnome.org/show_bug.cgi?id=732528 in
the process, any toolbar.osd with a positional style class attached
gets squared corners now.
2015-12-03 19:28:57 +01:00
Lapo Calamandrei
d46ab0f62a
Adwaita: scale with marks styling
...
I'm really sorry for the unlucky ones who would have to read that
code...
2015-12-03 18:41:35 +01:00
Lapo Calamandrei
37c943c8cd
Adwaita: added back scale marks style
2015-12-03 18:41:35 +01:00
Matthias Clasen
ec5baa144d
Update gtk_drag_highlight() docs
...
What they said was no longer true.
2015-12-03 08:37:58 -05:00
Lapo Calamandrei
234c497474
Adwaita: scale fill style
2015-12-03 12:57:02 +01:00
Sebastien Bacher
635da34908
GtkAppChooserWidget: wrap the label, use a standard icon
...
Let the label wrap if needed, that's required in some locales, use an
icon which is available in the theme
https://bugzilla.gnome.org/show_bug.cgi?id=758908
2015-12-03 12:45:56 +01:00
Lapo Calamandrei
081bdb07c3
Adwaita: rename scale sass templates to be more specific
2015-12-03 11:43:53 +01:00
Lapo Calamandrei
b7a980d5d8
Adwaita: added back style for scales on selected list rows
2015-12-03 11:38:50 +01:00
Lapo Calamandrei
a291003ad4
Adwaita: first stab at GtkScale and GtkProgressBar rewrite
...
...scale has marks stuff missing, coming soon.
2015-12-03 10:54:33 +01:00
Benjamin Otte
3ed71cf4a7
window: Deprecate gtk_window_resize_to_geometry()
...
And make it not do anything anymore.
Fixes erratic resizes of gnome-terminal.
https://bugzilla.gnome.org/show_bug.cgi?id=757282
2015-12-03 10:43:57 +01:00
Olivier Fourdan
de41389352
gtkwindow: Document further resize with csd
...
Applying the client-side decorations in the configure routine greatly
increases the chances of having the right size for the GtkHEaderBar and
border shadows.
Yet, it may be possible that these sizes change at a later point in
time, if for example the GtkHeaderBar grows in height while adding new
controls.
Mention this possible pitfall in the documentation for
gtk_window_resize().
https://bugzilla.gnome.org/show_bug.cgi?id=756618
2015-12-03 09:16:29 +01:00
Matthias Clasen
058dfb0723
entry: Use regular drag highlight
...
The entry code passes GTK_DEST_DEFAULT_HIGHLIGHT when setting
up the drop target, but that is ineffective because of the
custom drag_motion implementation. Instead, call
gtk_drag_[un]hightlight ourselves.
2015-12-02 23:52:55 -05:00
Matthias Clasen
0b9136842d
Use :dnd pseudoclass for drag highlighting
...
Instead of a ::draw handler with a hardcoded outline,
use CSS for drawing the highlight.
2015-12-02 23:49:07 -05:00
Matthias Clasen
cbde3ee01f
css: Add a :dnd pseudoclass
...
This will be used for drag highlighting.
2015-12-02 23:23:36 -05:00