Matthias Clasen [Wed, 1 Nov 2017 22:14:48 +0000 (18:14 -0400)]
x11: Stop using gdk_screen_get_default
This api is going away.
Matthias Clasen [Wed, 1 Nov 2017 22:14:27 +0000 (18:14 -0400)]
quartz: Stop using gdk_screen_get_default
This api is going away.
Matthias Clasen [Wed, 1 Nov 2017 22:06:24 +0000 (18:06 -0400)]
x11: Stop using gdk_display_get_default_screen
There's no point in using this api here, we can directly
get the screen member from the GdkX11Display struct.
Matthias Clasen [Wed, 1 Nov 2017 21:32:32 +0000 (17:32 -0400)]
win32: Remove an unused function
This also removed the last use of gdk_display_get_default_screen
from the win32 backend.
Matthias Clasen [Wed, 1 Nov 2017 21:30:00 +0000 (17:30 -0400)]
quartz: Stop using gdk_display_get_default_screen
The GdkScreen api is going away. The quartz screen is
a singleton anyway.
Matthias Clasen [Wed, 1 Nov 2017 21:08:04 +0000 (17:08 -0400)]
Don't use GdkScreen here
The GdkScreen api is going away, so avoid using it, both
in code and in documentation.
Matthias Clasen [Wed, 1 Nov 2017 21:04:33 +0000 (17:04 -0400)]
Remove leftover code
Nothing is setting this object data anymore, so no point
in cleaning it up.
Matthias Clasen [Wed, 1 Nov 2017 18:46:26 +0000 (14:46 -0400)]
broadway: No more screen
This gets rid of the GdkBroadwayScreen object and all
remnants of GdkScreen in the broadway backend.
Matthias Clasen [Wed, 1 Nov 2017 23:40:56 +0000 (19:40 -0400)]
Fix a typo
A display is not of type GDK_TYPE_SCREEN.
Benjamin Otte [Wed, 1 Nov 2017 20:59:45 +0000 (21:59 +0100)]
gdk: Remove VisibilityNotify events
Benjamin Otte [Wed, 1 Nov 2017 20:43:56 +0000 (21:43 +0100)]
widget: Don't tell people to wait for nonexisting events
Daniel Boles [Tue, 31 Oct 2017 19:43:52 +0000 (19:43 +0000)]
Adwaita: Fix Entry:has-frame if backdrop/disabled
by explicitly including these in the selector removing the border, to
avoid other rules on these pseudoclasses overriding the .flat class.
https://bugzilla.gnome.org/show_bug.cgi?id=789733
Daniel Boles [Tue, 31 Oct 2017 19:57:45 +0000 (19:57 +0000)]
HighContrast: Fix GtkEntry:has-frame not working
• Remove the box-shadow at the top when the entry is in the foreground
• Bump precedence so that :disabled entries do not have .flat overridden
• Also add :backdrop to stop HCInverse getting a lighter BG in :backdrop
https://bugzilla.gnome.org/show_bug.cgi?id=789733
Daniel Boles [Thu, 12 Oct 2017 20:09:58 +0000 (21:09 +0100)]
Inspector: better default split of CSS nodes/props
Move the default pos of the Paned handle to 400px from the left, i.e.
50% of the default width of the window. The previous position at 300px
from left meant the node treeview was too narrow & could easily result
in the (useful) State column not being visible in the case of many
apps. The properties pane doesn't need to be as big as it was anyway.
https://bugzilla.gnome.org/show_bug.cgi?id=788898
Benjamin Otte [Wed, 1 Nov 2017 19:55:41 +0000 (20:55 +0100)]
entry: Remove unused variable
Benjamin Otte [Wed, 1 Nov 2017 19:52:57 +0000 (20:52 +0100)]
switch: Use gtk_widget_contains()
Benjamin Otte [Wed, 1 Nov 2017 19:51:14 +0000 (20:51 +0100)]
x11: Remove screen-specific macros
Benjamin Otte [Wed, 1 Nov 2017 19:50:33 +0000 (20:50 +0100)]
button: Use gtk_widget_contains()
Benjamin Otte [Wed, 1 Nov 2017 19:09:06 +0000 (20:09 +0100)]
wayland: Remove unused variable
Benjamin Otte [Wed, 1 Nov 2017 18:36:09 +0000 (19:36 +0100)]
widget: Add gtk_widget_contains()
Matthias Clasen [Wed, 1 Nov 2017 15:52:56 +0000 (11:52 -0400)]
Change the fullscreen-on-monitor api
Use GdkMonitor here, since that is our primary monitor
object now, and GdkScreen is going away.
Matthias Clasen [Wed, 1 Nov 2017 18:02:08 +0000 (14:02 -0400)]
monitor: Add a ::valid property
This is slightly more useful than the existing
::invalidate signal, since it can be queried at
any time.
Benjamin Otte [Wed, 1 Nov 2017 17:26:34 +0000 (18:26 +0100)]
gdk: Remove gdk_get_display_arg_name()
Since we're no longer allowing arguments, this is always NULL now.
Benjamin Otte [Wed, 1 Nov 2017 17:18:24 +0000 (18:18 +0100)]
testsuite: Remove unused test using long-gone API
Benjamin Otte [Wed, 1 Nov 2017 17:17:55 +0000 (18:17 +0100)]
gdk: Remove nonexisting function from internal header
Benjamin Otte [Wed, 1 Nov 2017 17:16:11 +0000 (18:16 +0100)]
window: Unset transient parent in set_display()
If somebody changes a window's display, the transient parent cannot
stay if it's on a different display.
Andrew Crerar [Wed, 1 Nov 2017 16:22:03 +0000 (12:22 -0400)]
Resolving undefined reference to gdk_get_default_root_window
https://bugzilla.gnome.org/show_bug.cgi?id=789777
Benjamin Otte [Wed, 1 Nov 2017 15:00:12 +0000 (16:00 +0100)]
broadway: Fix fallout from screen changes
Benjamin Otte [Wed, 1 Nov 2017 14:46:20 +0000 (15:46 +0100)]
window: Clear the renderer un unrealize
We disconnect from the GDK window, so the renderer can't keep any useful
state.
Plus, we might be using an entirely different window next time we
realize (after a call to gtk_window_set_display() for example) that should
use a completely different renderer anyway.
Benjamin Otte [Wed, 1 Nov 2017 14:33:02 +0000 (15:33 +0100)]
gskgl: Deal with being rerealized
Benjamin Otte [Wed, 1 Nov 2017 14:31:36 +0000 (15:31 +0100)]
x11: Make gdk_x11_display_open() public API
People should be able to explicitily open displays to their backends.
Matthias Clasen [Wed, 1 Nov 2017 02:44:15 +0000 (22:44 -0400)]
Drop GdkVisual
This type was unused except for serving as a parent
for GdkX11Visual. Just move the fields to that type.
Matthias Clasen [Wed, 1 Nov 2017 02:26:39 +0000 (22:26 -0400)]
Drop the monitors-changed signal
We are not using it anymore.
Matthias Clasen [Wed, 1 Nov 2017 02:06:43 +0000 (22:06 -0400)]
Drop gdkvisual.h from the installed headers.
Matthias Clasen [Wed, 1 Nov 2017 02:05:58 +0000 (22:05 -0400)]
Don't mention GdkVisual in the docs
It is going away.
Matthias Clasen [Wed, 1 Nov 2017 01:59:47 +0000 (21:59 -0400)]
Remove a no-longer existing function
Matthias Clasen [Wed, 1 Nov 2017 01:48:58 +0000 (21:48 -0400)]
wayland: Stop using ::monitors-changed
Instead of connecting to this signal for every single window,
walk the window tree from the root window.
Matthias Clasen [Wed, 1 Nov 2017 01:30:59 +0000 (21:30 -0400)]
Drop gdk_get_default_root_window
This is a trivial convenience function, and it is barely used.
Matthias Clasen [Wed, 1 Nov 2017 01:28:28 +0000 (21:28 -0400)]
Drop gdk_screen_get_root_window
This function is no longer used.
Matthias Clasen [Wed, 1 Nov 2017 01:22:57 +0000 (21:22 -0400)]
Port to gdk_display_get_root_window
This is the replacement for the GdkScreen api of the same name.
Matthias Clasen [Wed, 1 Nov 2017 00:49:50 +0000 (20:49 -0400)]
Drop gdk_screen_get_toplevel_windows
Matthias Clasen [Wed, 1 Nov 2017 00:47:57 +0000 (20:47 -0400)]
Use gdk_display_get_toplevel_windows
This replaces the GdkScreen api of the same name.
Matthias Clasen [Wed, 1 Nov 2017 00:26:42 +0000 (20:26 -0400)]
Add gdk_display_get_toplevel_windows
This is replacing the corresponding GdkScreen api, which
is going away. To implement this, we need to add a
get_root_window vfunc to GdkDisplay.
Matthias Clasen [Tue, 31 Oct 2017 23:15:01 +0000 (19:15 -0400)]
monitor: remove GdkScreen mention from docs
No need to refer to GdkScreen here.
Matthias Clasen [Tue, 31 Oct 2017 23:12:05 +0000 (19:12 -0400)]
Drop the screen resolution api
GTK+ now uses the gtk-xft-dpi setting directly.
Note: this commit only fixes the backends that
currently provide this setting. The win32 and
Quartz backends still need to be fixed.
Matthias Clasen [Tue, 31 Oct 2017 22:53:29 +0000 (18:53 -0400)]
Stop using screen resolution
This api is going away.
Matthias Clasen [Tue, 31 Oct 2017 22:26:21 +0000 (18:26 -0400)]
Drop the GDK_DPI_SCALE variable
It complicates the dpi handling, and was really just a workaround
for non-dpi aware applications when hidpi support was first introduced.
Matthias Clasen [Tue, 31 Oct 2017 22:15:50 +0000 (18:15 -0400)]
Drop gdk_pango_context_get_for_display
This api does not offer much over the pango api, and
the use of the resolution here is causing layering
problems.
Matthias Clasen [Tue, 31 Oct 2017 22:14:08 +0000 (18:14 -0400)]
tests: Stop using gdk_pango_get_context_for_display
This api is going away.
Matthias Clasen [Tue, 31 Oct 2017 21:52:24 +0000 (17:52 -0400)]
Stop using gdk_pango_get_context_for_display
The function does nothing useful for us.
Matthias Clasen [Tue, 31 Oct 2017 21:23:15 +0000 (17:23 -0400)]
Drop gdk_window_get_screen
This includes removing the GdkScreen argument from the
create_window_impl display vfunc.
Matthias Clasen [Tue, 31 Oct 2017 20:51:12 +0000 (16:51 -0400)]
dnd: Remove remnants of screen tracking
There is only one screen nowadays, no need to track it.
Julian Sparber [Tue, 31 Oct 2017 01:29:59 +0000 (02:29 +0100)]
AboutDialog: Fix accepting GTK_LICENSE_AGPL_3_0
Add the ‘new’ GTK_LICENSE_AGPL_3_0 to the allowed enum range checked in
gtk_about_dialog_set_license_type(), so this value can actually be used.
https://bugzilla.gnome.org/show_bug.cgi?id=789678
Julian Sparber [Wed, 18 Oct 2017 11:00:41 +0000 (13:00 +0200)]
icon-browser: Centre Copy button in dialog again
This patch moves the "Copy to Clipboard" button into the same container
as the description label, to centre the button regardless of the number
of icons shown in the grid.
https://bugzilla.gnome.org/show_bug.cgi?id=789134
Daniel Boles [Tue, 31 Oct 2017 18:27:34 +0000 (18:27 +0000)]
gdkmonitor: Fix typo
Benjamin Otte [Tue, 31 Oct 2017 18:03:55 +0000 (19:03 +0100)]
tests: Remove completely outdated test
The test was fiddling with screens and trying crazy stuff. We don't do
things like that anymore.
Benjamin Otte [Tue, 31 Oct 2017 18:00:56 +0000 (19:00 +0100)]
testsuite: Update for screen => display property changes
Benjamin Otte [Tue, 31 Oct 2017 17:36:36 +0000 (18:36 +0100)]
inspector: Fix property being "display" now
Matthias Clasen [Tue, 31 Oct 2017 16:30:38 +0000 (12:30 -0400)]
Drop GdkScreen from GdkDevice apis
Returning the screen does not add anything here and
GdkScreen is going away.
Matthias Clasen [Tue, 31 Oct 2017 14:16:18 +0000 (10:16 -0400)]
dnd: Drop GdkScreen from apis
Drop the screen argument from gdk_dnd_find_window_for_screen
and rename the function to gdk_dnd_find_window. The screen
argument does not add anything here since the drag context
is already tied to the display. Update all backends, and
update all callers.
Timm Bäder [Tue, 31 Oct 2017 09:04:09 +0000 (10:04 +0100)]
widget: Make invalidation coordinates widget-relative
Consider the coordinates passed to gtk_widget_queue_draw_region to be
relative to @widget's origin, not its parent. That implies passing
priv->allocation or priv->clip to _queue_draw_region of a widget means
using its parent as @widget.
This fixes GtkScrolledWindow overshoot invalidation, which assumed the
coordinates to be widget-relative and not parent-relative.
Timm Bäder [Tue, 31 Oct 2017 07:09:55 +0000 (08:09 +0100)]
textview: Remove {top,bottom,left,right}_border
These are now the same as the equivalent _margin values.
Timm Bäder [Tue, 31 Oct 2017 07:07:47 +0000 (08:07 +0100)]
textview: Stop fiddling with CSS padding
This is done automatically now and doing it again here means we apply
the padding twice.
Timm Bäder [Tue, 31 Oct 2017 05:35:27 +0000 (06:35 +0100)]
widget: Rename color variable to match the color
Timm Bäder [Mon, 30 Oct 2017 16:47:59 +0000 (17:47 +0100)]
viewport: Simplify child allocation
allocation->x and allocation->y are always 0
Timm Bäder [Sun, 29 Oct 2017 19:10:44 +0000 (20:10 +0100)]
widget: Improve get_request_mode vfunc docs
Timm Bäder [Sun, 29 Oct 2017 18:44:06 +0000 (19:44 +0100)]
gskpango: Remove GDK api macros
They only belong on public functions.
Benjamin Otte [Tue, 31 Oct 2017 07:25:10 +0000 (08:25 +0100)]
docs: Fix up some places that still said screen instead of display
Benjamin Otte [Tue, 31 Oct 2017 07:23:07 +0000 (08:23 +0100)]
settings: Remove gtk_settings_get_for_screen()
All users of it are gone now.
Benjamin Otte [Tue, 31 Oct 2017 07:17:37 +0000 (08:17 +0100)]
widget: Remove gtk_widget_get_screen()
Replace the remaining users with "correct" code that does not need that
function anymore.
Benjamin Otte [Tue, 31 Oct 2017 07:07:32 +0000 (08:07 +0100)]
invisible: Make it use display, not screen
Benjamin Otte [Tue, 31 Oct 2017 06:51:15 +0000 (07:51 +0100)]
mountoperation: Move from screen to display
Benjamin Otte [Tue, 31 Oct 2017 06:41:15 +0000 (07:41 +0100)]
window: Turn gtk_window_set_screen() into gtk_window_set_display()
And have a priv->display instead of a priv->screen.
Includes turning gtk_menu_set_screen() into gtk_menu_set_display(),
because that function just forwards to its window.
Chun-wei Fan [Tue, 31 Oct 2017 04:49:44 +0000 (12:49 +0800)]
gdk/win32: Fix build after GdkScreen and settings changes
Implement GdkDisplay->get_setting() using the existing
_gdk_win32_screen_get_setting() and get rid of GdkScreen->get_setting()
as a result, to follow the changes in GDK.
Also, since we don't emit settings events in the Windows GDK backend,
but we acquire settings to print using GDK_SETTING, drop all references
related to GDK_SETTING since that is now removed. Update the debug
strings that are print out as a result
(gdk_screen_get_setting->gdk_display_get_setting).
https://bugzilla.gnome.org/show_bug.cgi?id=773299
Benjamin Otte [Tue, 31 Oct 2017 05:17:40 +0000 (06:17 +0100)]
styleprovider: Fix fallout from merge
StyleProvider should inherit from GObject, not from itself.
Benjamin Otte [Tue, 31 Oct 2017 05:09:33 +0000 (06:09 +0100)]
gtk: Fix debug build
It seems I didn't have debug builds enabled and forgot some
return_if_fail()s when doing the last patch.
Piotr Drąg [Tue, 31 Oct 2017 04:28:36 +0000 (05:28 +0100)]
Update POTFILES.in
Benjamin Otte [Tue, 31 Oct 2017 03:31:46 +0000 (04:31 +0100)]
css: Merge GtkStyleProviderPrivate into GtkStyleProvider
This is just lots of renaming.
The interface remains private, so the public API does not change, apart
from removing the definition of the Interface object to avoid
subclassing.
Benjamin Otte [Tue, 31 Oct 2017 02:26:54 +0000 (03:26 +0100)]
window: Remove gtk_window_get_screen()
It's identical to gtk_widget_get_screen(), just use that one.
Benjamin Otte [Tue, 31 Oct 2017 02:19:29 +0000 (03:19 +0100)]
widget: Remove gtk_widget_has_screen()
All widgets always have a screen (or display).
Matthias Clasen [Tue, 31 Oct 2017 03:06:17 +0000 (23:06 -0400)]
Forgotten file
Matthias Clasen [Tue, 31 Oct 2017 03:01:34 +0000 (23:01 -0400)]
Drop gdk_app_launch_context_set_screen
This function is not necessary, since we already know the display.
Matthias Clasen [Tue, 31 Oct 2017 02:52:49 +0000 (22:52 -0400)]
printoperation: Stop using gdk_app_launch_context_set_screen
It is not necessary.
Matthias Clasen [Tue, 31 Oct 2017 02:20:47 +0000 (22:20 -0400)]
Drop gdk_event_set/get_screen
These functions have been replaced by display variants.
Matthias Clasen [Tue, 31 Oct 2017 02:15:57 +0000 (22:15 -0400)]
gtk: Stop using gdk_event_get_screen
Use gdk_event_get_display instead.
Matthias Clasen [Tue, 31 Oct 2017 02:15:29 +0000 (22:15 -0400)]
gdk: Stop using gdk_event_set_screen
Use gdk_event_set_display instead.
Matthias Clasen [Tue, 31 Oct 2017 01:49:30 +0000 (21:49 -0400)]
Add gdk_event_get/set_display
The GdkScreen apis are going away, this is a replacement.
Benjamin Otte [Tue, 31 Oct 2017 01:59:06 +0000 (02:59 +0100)]
icontheme: Use GdkDisplay instead of GdkScreen
Benjamin Otte [Tue, 31 Oct 2017 01:35:21 +0000 (02:35 +0100)]
stylecontext: Port to use display instead of screen
Benjamin Otte [Tue, 31 Oct 2017 01:34:25 +0000 (02:34 +0100)]
gtk-demo: Remove calls to gtk_style_context_reset_widgets()
Those calls have been unneeded for a long time - since we gained the
changed signal on the StyleProvider in fact.
Matthias Clasen [Tue, 31 Oct 2017 01:36:37 +0000 (21:36 -0400)]
Drop gdk_pango_context_get
This is a trivial convenience api, and it is not used in gtk.
Matthias Clasen [Tue, 31 Oct 2017 01:35:48 +0000 (21:35 -0400)]
tests: Stop using gdk_pango_context_get.
We can just as well get the display ourselves.
Matthias Clasen [Tue, 31 Oct 2017 01:29:48 +0000 (21:29 -0400)]
Drop gdk_pango_context_get_for_screen
GdkScreen is going away, and this api is unused in gtk.
Benjamin Otte [Mon, 30 Oct 2017 23:44:35 +0000 (00:44 +0100)]
immulticontext: Remove unused variable
Benjamin Otte [Mon, 30 Oct 2017 21:19:02 +0000 (22:19 +0100)]
widget: Turn screen-changed signal into display-changed
Benjamin Otte [Mon, 30 Oct 2017 21:02:35 +0000 (22:02 +0100)]
settings: Don't store the screen in the settings object
Screens are going away.
Code that still needs the screen just gets it from the display.
Matthias Clasen [Mon, 30 Oct 2017 23:30:29 +0000 (19:30 -0400)]
immulticontext: Avoid GdkScreen api
No need for it here either.
Matthias Clasen [Mon, 30 Oct 2017 23:27:36 +0000 (19:27 -0400)]
immodule: Avoid GdkScreen api
Another place where it is not needed.
Matthias Clasen [Mon, 30 Oct 2017 23:19:04 +0000 (19:19 -0400)]
modules: Avoid GdkScreen api
No need for this here either.
Matthias Clasen [Mon, 30 Oct 2017 23:07:14 +0000 (19:07 -0400)]
assistant: Avoid GdkScreen api
There is no need at all here to use gtk_settings_get_for_screen.