Matthias Clasen
8b902d58b9
Remove some useless comments
2015-05-16 18:04:40 -04:00
Matthias Clasen
0a5e216d42
DND: Move private api to a private header
2015-05-16 17:54:01 -04:00
Matthias Clasen
987da43e71
Remove multi-screen handling in DND code
...
We only have one screen nowadays. No need to carry around
code for handling screen changes.
2015-05-16 17:26:45 -04:00
Matthias Clasen
924a8eb405
GtkQuery: Drop unused mimetype functions
...
These are not used, so drop them.
2015-05-16 00:48:36 -04:00
Matthias Clasen
41fee7e569
GtkQuery: Cleanups
...
Strip leading underscores from GtkQuery api, and
clean up the sources a bit.
2015-05-16 00:48:36 -04:00
Matthias Clasen
3f0f68e6ad
GtkFileChooser: Show remote search results too
...
There is no reason not to show them. Removing this
makes search on remote locations just work.
2015-05-16 00:48:36 -04:00
Matthias Clasen
43e1eea1bb
Rewrite search to be more similar to nautilus
...
The main advantage here is that this code works for remote
locations as well.
2015-05-16 00:48:36 -04:00
Kjell Ahlstedt
12ccebe2a4
gtkwindow: Fix a memory leak
...
The private data GtkGesture* drag_gesture was added by commit
13e22e2030
, but it's never destroyed.
Unref it in gtk_window_finalize().
https://bugzilla.gnome.org/show_bug.cgi?id=749425
2015-05-15 15:39:04 +02:00
Emmanuele Bassi
dc41c59006
Amend deprecation warnings for GtkStyle API
...
Not everything has a replacement in the API, as the drawing model
changed considerably; nevertheless, this should help out developers
porting from the deprecated GtkStyle API.
2015-05-14 17:00:14 +01:00
Benjamin Otte
36678306a0
box: Fix RTL styling
2015-05-12 18:44:59 +02:00
Matthias Clasen
c32cf6ffb1
GtkPrintUnixDialog: Avoid deprecated properties
...
Not needed here at all.
2015-05-12 08:24:52 -04:00
Matthias Clasen
5c84bc0fba
GtkPageSetupUnixDialog: Avoid deprecated properties
...
Not needed at all.
2015-05-12 08:22:56 -04:00
Matthias Clasen
2bb1ed69f0
GtkPopover: Clean up default widget on dispose
...
We forgot to drop the ref we take. Thankfully our
tests caught this.
2015-05-12 07:57:04 -04:00
Matthias Clasen
3dda1c5b64
Docs: Typo fix
2015-05-12 07:44:44 -04:00
Ting-Wei Lan
a1e418ebd5
Fix return value error in gtk_font_chooser_get_font_map
...
https://bugzilla.gnome.org/show_bug.cgi?id=749248
2015-05-12 07:22:32 -04:00
Matthias Clasen
6663257bf0
GtkFontChooser: Refine 'no matches' pages
...
Use a better icon, and put the text below.
2015-05-11 20:03:08 -04:00
Matthias Clasen
0e267ce7ff
GtkFileChooser: Refine 'no matches' page
...
Use a better icon, and put the text below.
2015-05-11 19:44:30 -04:00
Matthias Clasen
6b8ef6e2e2
Forgotten file
2015-05-10 15:37:55 -04:00
Matthias Clasen
2bafc7d195
GtkAdjustment: Deprecate some redundant API
...
Both gtk_adjustment_changed and gtk_adjustment_value_changed
are unnecessary every since we've sealed the GtkAdjustment
struct.
https://bugzilla.gnome.org/show_bug.cgi?id=619493
2015-05-10 02:35:52 -04:00
Matthias Clasen
647889c2e3
GtkIconView: Stop using gtk_adjustment_changed
...
This should not be needed at all.
2015-05-10 02:35:07 -04:00
Matthias Clasen
d90847b20e
GtkSpinButton: Stop using gtk_adjustment_value_changed
...
This is just an unnecessary indirection.
2015-05-10 02:34:33 -04:00
Matthias Clasen
9a4f2669f7
Trivial formatting fixes
2015-05-10 02:10:21 -04:00
Matthias Clasen
648c3b39f3
input methods: Add a 'vertical text' hint
...
This has been requested in
https://bugzilla.gnome.org/show_bug.cgi?id=747150
2015-05-10 01:30:38 -04:00
Matthias Clasen
3d81fe8617
Font chooser: Hide size controls with 'no match'
...
The preview entry previews a font despite there being
no results, that makes no sense.
2015-05-09 02:18:01 -04:00
Matthias Clasen
972e59d05e
Font chooser: Nice 'not found' message
...
This copies the style that is used in the file chooser
now.
2015-05-09 02:06:28 -04:00
Matthias Clasen
7a5329578c
Font chooser: Also apply font map to preview
...
Otherwise, the preview is not showing a selected custom font.
2015-05-09 01:58:32 -04:00
Matthias Clasen
798789ee90
GtkRecentChooser: Use a better busy cursor
2015-05-07 22:36:00 -04:00
Matthias Clasen
99935b14c6
GtkPrintUnixDialog: Use a better busy cursor
2015-05-07 22:24:19 -04:00
Matthias Clasen
eb715c3118
GtkProgressBar: Adjust docs to new style
...
Don't talk about superimposed text, since we don't do that
anymore.
https://bugzilla.gnome.org/show_bug.cgi?id=748784
2015-05-07 22:07:41 -04:00
Matthias Clasen
b122787a76
GtkFontChooser: Use a GtkStack
2015-05-07 18:28:39 -04:00
Garrett Regier
f3a390a6bf
GtkFontChooserWidget: Remove unused struct field
...
This was added accidentally in a recent patch.
Signed-off-by: Garrett Regier <garrettregier@gmail.com>
https://bugzilla.gnome.org/show_bug.cgi?id=748992
2015-05-07 16:01:49 -04:00
Jonas Ådahl
08e2f958f0
GtkWindow: Manually set CSD should enable shadow width calculation
...
If CSD is enabled with shadow even though it "shouldn't"*, the width
should still be calculated correctly. This fixes a regression caused by
b1e5ad469c
.
* gtk_window_should_use_csd () returns false
https://bugzilla.gnome.org/show_bug.cgi?id=748615
2015-05-07 15:56:14 -04:00
Debarshi Ray
39e7afecb1
GtkStack: Don't emit notify::visible-child during destruction
...
https://bugzilla.gnome.org/show_bug.cgi?id=749012
2015-05-07 15:18:20 +02:00
Matthias Clasen
142c8a5c8d
GtkFontChooser: Add an example to the docs
2015-05-07 07:33:23 -04:00
Matthias Clasen
049cbc8b74
GtkFontChooser: Allow a custom font map
...
This lets applications show their own fonts instead of
or in addition to system fonts.
https://bugzilla.gnome.org/show_bug.cgi?id=748771
2015-05-07 07:33:23 -04:00
Jakub Steiner
0c922a9443
Adwaita: tone down popover dropshadow
2015-05-07 10:17:22 +02:00
Debarshi Ray
26b03332a4
GtkStackSwitcher: Don't emit notify::visible-child when setting a stack
...
Synchronizing the visible child with the switcher's toggle buttons can
lead to GtkButton::clicked being emitted twice. Once for the button
that was active before, and once for the button that we just activated.
This leads to notify::visible-child being called twice and one of
them is with the wrong child.
Let's deal with this in the same way we handle the visible child
changing underneath us.
https://bugzilla.gnome.org/show_bug.cgi?id=749021
2015-05-06 22:31:10 +02:00
Jonas Ådahl
b1e5ad469c
GtkWindow: Get the correct shadow width even before window is realized
...
The window state 'client_decorated' will only be set the window is being
realized. If anyone tries to get the shadow size before that it'd get
the with as if there always was no shadow.
This avoids negative sized opaque regions caused by the allocation being
smaller than shadow.
https://bugzilla.gnome.org/show_bug.cgi?id=748615
2015-05-06 19:55:20 +08:00
Christian Hergert
fa6f956489
inspector: allow object read-only properties in prop-editor
...
If we have a GObject property that is also a GObject, we should be able
to view additional information on that object (even if the param spec
is read-only).
2015-05-05 22:00:54 -07:00
Matthias Clasen
07f4c9c315
GtkFontChooserWidget: Listen for fontconfig changes
...
We were relying on indirectly getting notify when fontconfig
configuration changes, by GtkSettings translating the timestamp
change into a style-invalidation, which gets fed through the
css invalidation machinery. That machinery has gotten good enough
at optimizing away redundant changes that it no longer emits
::style-updated in this case.
So, instead make the font chooser listen directly to what it
cares about: the fontconfig change notification from GtkSettings.
2015-05-06 00:52:23 -04:00
Emmanuele Bassi
487332c458
settings: Wayland-only systems also use fontconfig
...
We're relying on the X11 backend being compiled in, but that may not be
the case.
https://bugzilla.gnome.org/show_bug.cgi?id=748782
2015-05-05 11:22:53 +01:00
Emmanuele Bassi
c6df17577a
fontchooser: Use gtk-fontconfig-timestamp setting
...
We can use the GtkSettings:gtk-fontconfig-timestamp property to decide
whether or not we should reload fonts on style and screen changes. This
should avoid doing a lot of work with large font collections when only
the theme has changed.
https://bugzilla.gnome.org/show_bug.cgi?id=748782
2015-05-05 11:22:53 +01:00
Matthias Clasen
1f51c506c3
Fix precondition in gtk_popover_get_default_widget
...
We need to return a value here.
2015-05-04 09:28:46 -04:00
Jakub Steiner
5cce2051dd
HC: implement overlay scrollbar theming
...
while the behavior was in place, the specific theming for
overlay scrollbars was missing, and content was hidden.
2015-05-04 14:39:40 +02:00
Matthias Clasen
ff558d3d39
Drop PANGO_ENABLE_BACKEND
...
Not needed for a long time now.
https://bugzilla.gnome.org/show_bug.cgi?id=748783
2015-05-04 08:02:32 -04:00
Timm Bäder
c28275f4ec
GtkPopover: Don't ref NULL widgets
...
gtk_window_get_default_widget returns NULL if the window does not have a
default widget, so don't ref it in that case.
2015-05-03 20:03:56 +02:00
Matthias Clasen
adb58b2c84
file chooser: Set default widget in create folder popover
...
This is using the new default widget functionality for
popovers to make Enter in the entry activate the Create
button.
https://bugzilla.gnome.org/show_bug.cgi?id=747664
2015-05-02 20:34:28 -04:00
Matthias Clasen
e1c1fc59e5
Add default widget handling to popovers
...
Add a new API, gtk_popover_set_default_widget, that can be
used to make a widget act as default while the popover is
shown. This is useful in dialog-like popovers.
http://bugzilla.gnome.org/show_bug.cgi?id=747664
2015-05-02 20:34:28 -04:00
Matthias Clasen
3682c761ed
GtkStatusbar: Simplify ui template
2015-05-02 18:24:20 -04:00
Matthias Clasen
a921229246
GtkSearchBar: Simplify ui template
2015-05-02 18:23:20 -04:00