mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 21:21:21 +00:00
Implement, patch from Paul Davis.
2007-10-08 Richard Hult <richard@imendio.com> * gdk/quartz/gdkwindow-quartz.c: (gdk_window_focus): Implement, patch from Paul Davis. svn path=/trunk/; revision=18897
This commit is contained in:
parent
ba05b36563
commit
aec8b14fc8
@ -1,3 +1,8 @@
|
||||
2007-10-08 Richard Hult <richard@imendio.com>
|
||||
|
||||
* gdk/quartz/gdkwindow-quartz.c: (gdk_window_focus): Implement,
|
||||
patch from Paul Davis.
|
||||
|
||||
2007-10-08 Richard Hult <richard@imendio.com>
|
||||
|
||||
* gdk/quartz/gdkwindow-quartz.c: (move_resize_window_internal):
|
||||
|
@ -2039,9 +2039,23 @@ void
|
||||
gdk_window_focus (GdkWindow *window,
|
||||
guint32 timestamp)
|
||||
{
|
||||
GdkWindowObject *private;
|
||||
GdkWindowImplQuartz *impl;
|
||||
|
||||
g_return_if_fail (GDK_IS_WINDOW (window));
|
||||
|
||||
/* FIXME: Implement */
|
||||
private = (GdkWindowObject*) window;
|
||||
impl = GDK_WINDOW_IMPL_QUARTZ (private->impl);
|
||||
|
||||
if (impl->toplevel)
|
||||
{
|
||||
if (private->accept_focus && private->window_type != GDK_WINDOW_TEMP)
|
||||
{
|
||||
GDK_QUARTZ_ALLOC_POOL;
|
||||
[impl->toplevel makeKeyWindow];
|
||||
GDK_QUARTZ_RELEASE_POOL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user