]> Pileus Git - ~andy/gtk/log
~andy/gtk
12 years agowin32: add TODO mentioning GtkButton::child-displacement-x & y should be 0 when XP...
Dieter Verfaillie [Thu, 20 Oct 2011 12:03:31 +0000 (14:03 +0200)]
win32: add TODO mentioning GtkButton::child-displacement-x & y should be 0 when XP theme is active

12 years agowin32: fix typo in msw_style.c
Arnaud Charlet [Thu, 20 Oct 2011 11:18:19 +0000 (13:18 +0200)]
win32: fix typo in msw_style.c

https://bugzilla.gnome.org/show_bug.cgi?id=647460

12 years agowin32: Call GetQueueStatus instead of PeekMessage PM_NOREMOVE
Dieter Verfaillie [Fri, 21 Oct 2011 09:38:31 +0000 (11:38 +0200)]
win32: Call GetQueueStatus instead of PeekMessage PM_NOREMOVE

Calling PeekMessage can cause reentrant calls into the window procedure
for sent (as opposed to posted) messages, so its not safe to call
when we're not expecting reentrancy. Instead we call GetQueueStatus
when we're just looking for availible messages.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=552041

12 years agowin32: Better crossing events and grab destination reporting
Alexander Larsson [Wed, 19 Oct 2011 19:44:38 +0000 (21:44 +0200)]
win32: Better crossing events and grab destination reporting

We new report to the right window during !owner_event grabs, and
we send proper enter and leave events.

12 years agowin32: Record the native event mask in use
Alexander Larsson [Wed, 19 Oct 2011 19:36:41 +0000 (21:36 +0200)]
win32: Record the native event mask in use

12 years agowin32: Use right native_window for implicit grabs
Alexander Larsson [Wed, 19 Oct 2011 19:35:04 +0000 (21:35 +0200)]
win32: Use right native_window for implicit grabs

The native grab really is on the window that got the button press event.

12 years agowin32: in window_at_pointer, ensure that we handle non-client areas correctly
Alexander Larsson [Wed, 19 Oct 2011 14:15:17 +0000 (16:15 +0200)]
win32: in window_at_pointer, ensure that we handle non-client areas correctly

We should not return a window if the pointer is in the non-client area,
like the titlebar.

12 years agowin32: Handle implicit grabs
Alexander Larsson [Tue, 18 Oct 2011 14:52:41 +0000 (16:52 +0200)]
win32: Handle implicit grabs

12 years agowin32: Update input device code to use the new property names in constructor
Alexander Larsson [Mon, 7 Nov 2011 15:49:09 +0000 (16:49 +0100)]
win32: Update input device code to use the new property names in constructor

12 years agowin32: Fix up initialization order of input subsystem
Alexander Larsson [Mon, 7 Nov 2011 15:48:29 +0000 (16:48 +0100)]
win32: Fix up initialization order of input subsystem

We were getting warnings due to windows being created before input
subsystems were fully initialized.

12 years agowin32: Fix DnD when drag icon is below the pointer
Dieter Verfaillie [Mon, 19 Sep 2011 13:42:19 +0000 (15:42 +0200)]
win32: Fix DnD when drag icon is below the pointer

By reverting gdk_drag_find_window_for_screen logic to what it was
before eb21a7df290936223f6a80cef36b52a8c68a1d22.
The old logic knew how to ignore drag_window when searching
for dest_window, but that code was removed (I guess by accident).

https://bugzilla.gnome.org/show_bug.cgi?id=616544

12 years agowin32: dnd should not be registerd for offscreen windows
Dieter Verfaillie [Tue, 27 Sep 2011 19:53:48 +0000 (21:53 +0200)]
win32: dnd should not be registerd for offscreen windows

https://bugzilla.gnome.org/show_bug.cgi?id=616544

12 years agoWin32: Fix _gdk_windowing_window_at_pointer to correctly return a toplevel
Peter Clifton [Sat, 10 Sep 2011 15:30:56 +0000 (16:30 +0100)]
Win32: Fix _gdk_windowing_window_at_pointer to correctly return a toplevel

Commit 5ebb32d1ffa23241d562fb4d5be02bc6f156b515 didn't add the correct
code to find the toplevel window. The WindowFromPoint() function does
not return the toplevel window in the hierarchy, it returns the deepest
non-disabled, non-invisible child. As we don't use invisible or disabled
windows, we don't actually need to use the ChildWindowFromPoint walk for
the non get_toplevel case, so we can remove that code path.

To find a toplevel, we need to start from the desktop and work up, using
ChildWindowFromPointEx (to ignore invisible and disabled windows). If we
don't ignore invisible and disabled windows (as is the case with the
ChildWindowFromPoint call, we are liable to get returns of hidden or
disabled children of the desktop which don't belong to us, but notionally
occupy the same area under the pointer.

An alternative might be to start our walk with one of the children of the
desktop owned by our process and thread - which we can enumerate using,
the EnumThreadWindows call, or (presumably) determine internally. This
would not work when we are inside a GtkSocket though, as the children of
the desktop would belong to the process owning the GtkPlug - we would
have to rely on our own list of windows.

For correctness, this commit adds tests to ensure that we don't try to
return either x or y window coordinates if that corresponding pointer is
NULL.

https://bugzilla.gnome.org/show_bug.cgi?id=658842

12 years agoWin32: Ensure native back-end for windows where the user requests their handle
Peter Clifton [Fri, 9 Sep 2011 14:17:29 +0000 (15:17 +0100)]
Win32: Ensure native back-end for windows where the user requests their handle

https://bugzilla.gnome.org/show_bug.cgi?id=658841

12 years agoAdd G_ENABLE_DEBUG #ifdef check in gdkdisplay-win32.c
Chun-wei Fan [Thu, 16 Jun 2011 05:48:56 +0000 (13:48 +0800)]
Add G_ENABLE_DEBUG #ifdef check in gdkdisplay-win32.c

Commit 88707e6912c376faedf0b8c5b02895aa18473cb4 used
_gdk_win32_cf_to_string, which is only defined when G_ENABLE_DEBUG
is defined, so add G_ENABLE_DEBUG #ifdef around that part.

12 years agowin32: resurect Windows clipboard selection notification
Marc-André Lureau [Thu, 9 Jun 2011 18:45:20 +0000 (20:45 +0200)]
win32: resurect Windows clipboard selection notification

This is a rewrite of e6fa7394baa8a7cb80ae01a0c81729717019172b, with
misc fixes that should help with some bugs Tim was talking about.

https://bugzilla.gnome.org/show_bug.cgi?id=652239

12 years agowin32: Resurrect some enter/leave notify events for native windows
Hans Breuer [Fri, 27 Aug 2010 19:29:33 +0000 (21:29 +0200)]
win32: Resurrect some enter/leave notify events for native windows

The button highlighting in testgtk works again, even with
GDK_NATIVE_WINDOWS. Unfortunately testgtk:menus still does
not work for the forced-native-window-case.

12 years agowin32: Never pass SWP_NOSIZE or SWP_NOMOVE to SetWindowPos
Neil Roberts [Thu, 26 Aug 2010 18:02:00 +0000 (19:02 +0100)]
win32: Never pass SWP_NOSIZE or SWP_NOMOVE to SetWindowPos

In _gdk_window_move_resize_child it tries to decide whether to pass
SWP_NOSIZE and SWP_NOMOVE based on whether the new size and position
is different from the window's existing position. However it seems
that GDK now ends up updating the window's position before calling
_gdk_window_move_resize_child so this would mean it would think the
window never changes size or position so SWP_NOSIZE|SWP_NOMOVE would
always be set. This causes child windows to never be resized.

This patch changes it so that it never passes either flag to
SetWindowPos. I don't know whether this will cause any side effects
but you'd think it shouldn't do any harm to reassert the current size.

https://bugzilla.gnome.org/show_bug.cgi?id=628049

Signed-off-by: Hans Breuer <hans@breuer.org>
12 years agoFix build by adding include
Alexander Larsson [Thu, 10 Nov 2011 16:39:33 +0000 (17:39 +0100)]
Fix build by adding include

build failed with a GTK_IS_VIEWPORT link error

12 years agoAdd include to fix the build
Alexander Larsson [Thu, 10 Nov 2011 16:24:22 +0000 (17:24 +0100)]
Add include to fix the build

12 years agoa11y: Get rid of gtk.h includes in headers
Benjamin Otte [Thu, 10 Nov 2011 16:03:10 +0000 (17:03 +0100)]
a11y: Get rid of gtk.h includes in headers

This way, we can include them without accidentally including deprecated
code. Which means we can still use the recently added turning-off tricks
for deprecation warnings.

12 years agoa11y: Fix gcc warning
Benjamin Otte [Thu, 10 Nov 2011 15:52:44 +0000 (16:52 +0100)]
a11y: Fix gcc warning

12 years agoa11y: It's not a bug if there's no row at some point
Benjamin Otte [Thu, 10 Nov 2011 14:01:21 +0000 (15:01 +0100)]
a11y: It's not a bug if there's no row at some point

In that case, there's just nothing there.

12 years agogtk: Fix parsing of accelerators with keycodes
Bastien Nocera [Thu, 10 Nov 2011 10:59:44 +0000 (10:59 +0000)]
gtk: Fix parsing of accelerators with keycodes

GDK_KEY_VoidSymbol is not the same as keycode 0. This fixes
keycodes such as "0xb3" being parsed as "VoidSymbol" keysyms.

https://bugzilla.gnome.org/show_bug.cgi?id=663761

12 years agogtk: Fix GtkCellRenderer ignoring keycodes
Bastien Nocera [Thu, 10 Nov 2011 10:58:37 +0000 (10:58 +0000)]
gtk: Fix GtkCellRenderer ignoring keycodes

We should use the new helper code rather than invent our own
functions again.

https://bugzilla.gnome.org/show_bug.cgi?id=663761

12 years agogtktreeviewaccessible: use a value_destroy_func with the cell_info_by_index hash
Guillaume Desmottes [Wed, 9 Nov 2011 13:32:32 +0000 (14:32 +0100)]
gtktreeviewaccessible: use a value_destroy_func with the cell_info_by_index hash

This ensures that we don't leak any GtkTreeViewAccessibleCellInfo when
re-inserting a new one with the same key.

https://bugzilla.gnome.org/show_bug.cgi?id=663694

12 years agogtktreeviewaccessible: factor out cell_info_free()
Guillaume Desmottes [Wed, 9 Nov 2011 13:31:43 +0000 (14:31 +0100)]
gtktreeviewaccessible: factor out cell_info_free()

https://bugzilla.gnome.org/show_bug.cgi?id=663694

12 years agobroadway: Initial support fro V7+ websockets
Michael Meeks [Thu, 10 Nov 2011 09:12:28 +0000 (10:12 +0100)]
broadway: Initial support fro V7+ websockets

Allows more modern browsers eg. firefox 5+ to use gtk/broadway
Auto-detects protocol version, and can switch between them at
as you connect a different browser.

This works to some extent, but seems to hang sometimes, for
instance the "button box" test in testgtk never shows up.

12 years agouimanager: Work around deprecations
Matthias Clasen [Thu, 10 Nov 2011 04:45:58 +0000 (23:45 -0500)]
uimanager: Work around deprecations

12 years agotreeview: Work around deprecations
Matthias Clasen [Thu, 10 Nov 2011 04:42:11 +0000 (23:42 -0500)]
treeview: Work around deprecations

12 years agoRemove some redundant verbosity
Matthias Clasen [Thu, 10 Nov 2011 03:18:39 +0000 (22:18 -0500)]
Remove some redundant verbosity

12 years agoDon't use G_ERRORCHECK_MUTEXES anymore
Matthias Clasen [Thu, 10 Nov 2011 03:11:04 +0000 (22:11 -0500)]
Don't use G_ERRORCHECK_MUTEXES anymore

It's gone from GLib.

12 years agoUpdate documentation around deprecations.
Matthias Clasen [Thu, 10 Nov 2011 03:08:43 +0000 (22:08 -0500)]
Update documentation around deprecations.

12 years agoDon't add -DGSEAL_ENABLE to CFLAGS anymore
Matthias Clasen [Thu, 10 Nov 2011 03:05:11 +0000 (22:05 -0500)]
Don't add -DGSEAL_ENABLE to CFLAGS anymore

That define is no longer used anywhere in gtk.

12 years agoAdd a missing include
Matthias Clasen [Thu, 10 Nov 2011 03:03:10 +0000 (22:03 -0500)]
Add a missing include

12 years agoDrop use of GDK_DISABLE_DEPRECATED guards in gtk
Matthias Clasen [Thu, 10 Nov 2011 03:02:42 +0000 (22:02 -0500)]
Drop use of GDK_DISABLE_DEPRECATED guards in gtk

We now use function attributes for deprecation so the build-breaking
guards are no longer needed.

12 years agoDrop use of GDK_DISABLE_DEPRECATED guards in gdk
Matthias Clasen [Thu, 10 Nov 2011 03:01:00 +0000 (22:01 -0500)]
Drop use of GDK_DISABLE_DEPRECATED guards in gdk

We now use function attributes for deprecation so the build-breaking
guards are no longer needed.

12 years agoDrop references to g_thread_init()
Matthias Clasen [Wed, 9 Nov 2011 23:32:21 +0000 (18:32 -0500)]
Drop references to g_thread_init()

We are already requiring GLib 2.31, so g_thread_init() is never
needed anymore.

12 years agoBug 661997 - Gtk crashes when changing the TreeView model while ...
Kristian Rietveld [Wed, 9 Nov 2011 07:44:28 +0000 (08:44 +0100)]
Bug 661997 - Gtk crashes when changing the TreeView model while ...

Simply stopping rubber banding in gtk_tree_view_set_model() eliminates
the crash.  Reported by Thomas Perl.

12 years agoDon't implement GApplication mainloop
Ryan Lortie [Wed, 14 Sep 2011 02:47:30 +0000 (22:47 -0400)]
Don't implement GApplication mainloop

Let the default GApplication implementation take care of it.

https://bugzilla.gnome.org/show_bug.cgi?id=658805

12 years agodemos: Remove non-working code
Benjamin Otte [Wed, 9 Nov 2011 02:46:23 +0000 (03:46 +0100)]
demos: Remove non-working code

It causes warnings, so it has to go.
The cursor doesn't change anyway, no matter if it's there or not.

12 years agotools: Work with deprecated APIs
Benjamin Otte [Wed, 9 Nov 2011 02:22:19 +0000 (03:22 +0100)]
tools: Work with deprecated APIs

We want to screenshot deprecated widgets, so we'd better not fail when
using them.

12 years agoexanmples: Don't use deprecated API
Benjamin Otte [Wed, 9 Nov 2011 02:20:22 +0000 (03:20 +0100)]
exanmples: Don't use deprecated API

12 years agotestgtk: Remove deprecations from shapes test
Benjamin Otte [Wed, 9 Nov 2011 02:15:27 +0000 (03:15 +0100)]
testgtk: Remove deprecations from shapes test

12 years agotestgtk: Don't use deprecated functions in properties example
Benjamin Otte [Wed, 9 Nov 2011 02:13:43 +0000 (03:13 +0100)]
testgtk: Don't use deprecated functions in properties example

12 years agotreeview: Do a simple replace for gdk_window_get_pointer()
Benjamin Otte [Wed, 9 Nov 2011 01:52:50 +0000 (02:52 +0100)]
treeview: Do a simple replace for gdk_window_get_pointer()

Replace it with the equivalent gdk_window_get_device_position() with the
core pointer.

12 years agogtk-demo: Remove excessive pointer querying
Benjamin Otte [Wed, 9 Nov 2011 01:52:09 +0000 (02:52 +0100)]
gtk-demo: Remove excessive pointer querying

12 years agoqueryimmodules: Actually fix deprecation warnings
Benjamin Otte [Tue, 8 Nov 2011 21:18:32 +0000 (22:18 +0100)]
queryimmodules: Actually fix deprecation warnings

The previous patch still caused warnings. Ooops. That's what you get for
not compiling with -Werror.

12 years agoquartz: include all buttons' state in GdkEventMotion.state
Michael Natterer [Tue, 8 Nov 2011 23:34:45 +0000 (00:34 +0100)]
quartz: include all buttons' state in GdkEventMotion.state
(cherry picked from commit 3b5c5710daa337b61c9e2135e3e55c380e5bc991)

12 years agoquartz: include all buttons' states in GdkEventButton.state
Michael Natterer [Tue, 8 Nov 2011 23:25:01 +0000 (00:25 +0100)]
quartz: include all buttons' states in GdkEventButton.state
(cherry picked from commit a381e8ea62441b6715ba9bcb0e04332fd914f8b1)

12 years agoBug 663605 - Fix event->state of many event types on quartz
Michael Natterer [Tue, 8 Nov 2011 20:41:19 +0000 (21:41 +0100)]
Bug 663605 - Fix event->state of many event types on quartz

Don't try to remember the current keyboard modifier and mouse button
states from the last event, because that isn't always right, and don't
set event.state = 0 for generated events. Instead, add private functions
to get the current states, and implement them with API that retrieves
these states independently from an event.

12 years agotreeview: Remove unused crack code
Benjamin Otte [Tue, 8 Nov 2011 16:49:28 +0000 (17:49 +0100)]
treeview: Remove unused crack code

No, querying the pointer position in a draw callback is not a good idea.
No, setting FOCUSSED based on that position is not a good idea either.

12 years agowidget: Don't use deprecated symbols
Benjamin Otte [Tue, 8 Nov 2011 16:19:11 +0000 (17:19 +0100)]
widget: Don't use deprecated symbols

Not even in deprecated functions!

12 years agowidget: Deprecate gtk_widget_get_pointer ()
Benjamin Otte [Tue, 8 Nov 2011 15:52:19 +0000 (16:52 +0100)]
widget: Deprecate gtk_widget_get_pointer ()

12 years agotreeview: Remove call to gtk_widget_get_pointer()
Benjamin Otte [Tue, 8 Nov 2011 15:50:07 +0000 (16:50 +0100)]
treeview: Remove call to gtk_widget_get_pointer()

12 years agopaned: Pass x/y position to update_drag()
Benjamin Otte [Tue, 8 Nov 2011 15:47:08 +0000 (16:47 +0100)]
paned: Pass x/y position to update_drag()

This way we get the coordinates from the right device instead of using
any random device.

12 years agopaned: Remove MOTION_HINT_MASK
Benjamin Otte [Tue, 8 Nov 2011 15:41:26 +0000 (16:41 +0100)]
paned: Remove MOTION_HINT_MASK

It's not needed anymore. GDK does culling of events for us.

12 years agomenuitem: WOrk around deprecation warnings
Benjamin Otte [Tue, 8 Nov 2011 15:41:15 +0000 (16:41 +0100)]
menuitem: WOrk around deprecation warnings

12 years agoqueryimmodules: Disable deprecaion warnings for deprecated header
Benjamin Otte [Tue, 8 Nov 2011 14:38:27 +0000 (15:38 +0100)]
queryimmodules: Disable deprecaion warnings for deprecated header

12 years agosettings: Disable deprecaion warnings for deprecated header
Benjamin Otte [Tue, 8 Nov 2011 14:38:06 +0000 (15:38 +0100)]
settings: Disable deprecaion warnings for deprecated header

12 years agolayout: Work around deprecation warnings
Benjamin Otte [Tue, 8 Nov 2011 13:55:46 +0000 (14:55 +0100)]
layout: Work around deprecation warnings

12 years agoimmodule: Disable deprecations before including deprecated header
Benjamin Otte [Tue, 8 Nov 2011 13:48:14 +0000 (14:48 +0100)]
immodule: Disable deprecations before including deprecated header

12 years agogtk: Empty gtkimmodule.h
Benjamin Otte [Tue, 8 Nov 2011 19:22:57 +0000 (20:22 +0100)]
gtk: Empty gtkimmodule.h

Move the remaining struct definition into gtkimcontextinfo.h and include
that header in gtk.h. gtkimmodule.h is now an empty header. We should
probably deprecate it somehow.

This is also necessary so headers used in gtk .c files don't include
gtk.h which in turn includes all the deprecated headers which we want to
avoid so we can include them with deprecation warnings turned off.

12 years agobuild: Don't append to an accidentally existing file
Benjamin Otte [Tue, 8 Nov 2011 19:16:48 +0000 (20:16 +0100)]
build: Don't append to an accidentally existing file

12 years agoimmodule: Move private functions to a private header
Benjamin Otte [Tue, 8 Nov 2011 19:03:09 +0000 (20:03 +0100)]
immodule: Move private functions to a private header

12 years agoimmodule: Fix includes
Benjamin Otte [Tue, 8 Nov 2011 13:37:35 +0000 (14:37 +0100)]
immodule: Fix includes

Make includes not rely on gtkimmodule.h including gtk.h. This will be
important once we remove gtkimmodule from the include files.

That way, we can achieve not pulling deprecated headers automatically.

12 years agowindow: Fix cast warnings
Benjamin Otte [Tue, 8 Nov 2011 13:39:00 +0000 (14:39 +0100)]
window: Fix cast warnings

12 years agotreeview: Fix warnings from fixing warnings
Benjamin Otte [Tue, 8 Nov 2011 13:33:48 +0000 (14:33 +0100)]
treeview: Fix warnings from fixing warnings

Warnings introdcued by fixing deprecation warnings in
2ead4c6038ae3eac4681ab54858eca1fd06b6c4b

12 years agoicontheme: Get rid of deprecation warnings
Benjamin Otte [Tue, 8 Nov 2011 13:15:30 +0000 (14:15 +0100)]
icontheme: Get rid of deprecation warnings

Before including deprecated headers, disable deprecation warnings.

12 years agocellrendererspinner: Ignore deprecation warnings
Benjamin Otte [Tue, 8 Nov 2011 04:01:32 +0000 (05:01 +0100)]
cellrendererspinner: Ignore deprecation warnings

The cell renderer relies on deprecated functionality, so we need to
disable deprecations for included deprecated headers.

12 years agocellrendererspinner: Include correct header
Benjamin Otte [Tue, 8 Nov 2011 04:04:32 +0000 (05:04 +0100)]
cellrendererspinner: Include correct header

12 years agobutton: Don't call deprecated functions
Benjamin Otte [Tue, 8 Nov 2011 04:00:54 +0000 (05:00 +0100)]
button: Don't call deprecated functions

12 years agoassistant: Work around deprecation warnings
Benjamin Otte [Tue, 8 Nov 2011 03:56:36 +0000 (04:56 +0100)]
assistant: Work around deprecation warnings

12 years agogtk: Add a GTK_STATE_FLAG_WINDOW_UNFOCUSED widget state flag
Rui Matos [Fri, 28 Oct 2011 22:45:38 +0000 (23:45 +0100)]
gtk: Add a GTK_STATE_FLAG_WINDOW_UNFOCUSED widget state flag

This allows themes to style widgets differently according to whether the
toplevel window they are in is presented as focused.

https://bugzilla.gnome.org/show_bug.cgi?id=661428

12 years agox11: Implement GDK_WINDOW_STATE_FOCUSED on top of _NET_WM_STATE_FOCUSED
Rui Matos [Fri, 28 Oct 2011 22:29:01 +0000 (23:29 +0100)]
x11: Implement GDK_WINDOW_STATE_FOCUSED on top of _NET_WM_STATE_FOCUSED

_NET_WM_STATE_FOCUSED is a new _NET_WM_STATE hint which allows us to
implement a meaningful GDK_WINDOW_STATE_FOCUSED under X11. If the window
manager doesn't support this hint we keep GDK_WINDOW_STATE_FOCUSED set since
that is what gtk+ implicitly assumed historically.

https://bugzilla.gnome.org/show_bug.cgi?id=661428

12 years agogdk: Add GDK_WINDOW_STATE_FOCUSED to GdkWindowState
Rui Matos [Fri, 28 Oct 2011 22:21:04 +0000 (23:21 +0100)]
gdk: Add GDK_WINDOW_STATE_FOCUSED to GdkWindowState

This state means that the toplevel window is presented as focused to the user,
i.e with active decorations under an X11 window manager.

If the GDK backend doesn't implement this flag, it will just remain set after
mapping the window.

https://bugzilla.gnome.org/show_bug.cgi?id=661428

12 years agoreftests: Add a reftest for background-repeat css property
Marc-André Lureau [Tue, 8 Nov 2011 01:03:38 +0000 (02:03 +0100)]
reftests: Add a reftest for background-repeat css property

https://bugzilla.gnome.org/show_bug.cgi?id=663522

12 years agothemingengine: set the cairo extend to PAD when we're stretching bg
Cosimo Cecchi [Tue, 8 Nov 2011 17:36:55 +0000 (12:36 -0500)]
themingengine: set the cairo extend to PAD when we're stretching bg

This avoids artifacts around the borders due to bilinear filtering cairo
applies to the surface pattern when stretching it.

https://bugzilla.gnome.org/show_bug.cgi?id=663522

12 years agocss: start background-repeat
Marc-André Lureau [Sun, 6 Nov 2011 18:33:05 +0000 (19:33 +0100)]
css: start background-repeat

By default, a background image is stretched. Instead, it is worth to
have a tiled background.

This patch allows background surfaces to be repeated or not, and should
be compatible with future extensions and CSS.

https://bugzilla.gnome.org/show_bug.cgi?id=663522

12 years agoRename s/GtkCssRepeatStyle/GtkCssBorderRepeatStyle/g
Marc-André Lureau [Mon, 7 Nov 2011 23:10:13 +0000 (00:10 +0100)]
Rename s/GtkCssRepeatStyle/GtkCssBorderRepeatStyle/g

https://bugzilla.gnome.org/show_bug.cgi?id=663522

12 years ago[Quartz Bug 663182] NSImage throws an exception from _gtk_quartz_create_image_from_pi...
John Ralls [Mon, 7 Nov 2011 22:25:08 +0000 (14:25 -0800)]
[Quartz Bug 663182] NSImage throws an exception from _gtk_quartz_create_image_from_pixbuf()"

If a zero-sized NSImage calls lockfocus it throws an exception. Make sure that the image isn't zero-sized before calling lockfocus, and log a warning and return NULL if it is zero-sized.

Have the quartz version of gtk_drag_begin_idle return FALSE if the returned image is NULL.

12 years agoRevert "[Quartz Bug 663182] NSImage throws an exception from _gtk_quartz_create_image...
John Ralls [Mon, 7 Nov 2011 21:48:03 +0000 (13:48 -0800)]
Revert "[Quartz Bug 663182] NSImage throws an exception from _gtk_quartz_create_image_from_pixbuf()". Utterly screwed up. Sorry.

This reverts commit 8216324e4b13f0349ed3c0f854d41e6b32d1f0cb.
and          commit 3243e6955cd4014345170fdd9246a13eacad86dd.

12 years agoFix accidental paste error in 8216324
John Ralls [Mon, 7 Nov 2011 21:18:14 +0000 (13:18 -0800)]
Fix accidental paste error in 8216324

12 years ago[Quartz Bug 663182] NSImage throws an exception from _gtk_quartz_create_image_from_pi...
John Ralls [Mon, 7 Nov 2011 21:04:59 +0000 (13:04 -0800)]
[Quartz Bug 663182] NSImage throws an exception from _gtk_quartz_create_image_from_pixbuf()

If _gtk_quartz_create_image_from_pixbuf is given a pixbuf with size 0, 0
or which produces an NSImage with size 0.0, 0.0, it throws an exception
which Gtk doesn't handle.

your changes. Lines starting

12 years agogdk: exclude MOD1 from the virtual modifier mapping
Michael Natterer [Mon, 7 Nov 2011 19:09:00 +0000 (20:09 +0100)]
gdk: exclude MOD1 from the virtual modifier mapping

which effectively nails down the MOD1 == ALT assumption that is valid
in all other parts of GTK+. After the modifier abstraction fixes for
OSX, the virtual mapping is now (correctly) used in more places, and
caused problems with the common default PC keyboard layout on X11 that
colocates ALT and META on the same key.

12 years agoPrint preview: make cancel work
Morten Welinder [Mon, 7 Nov 2011 18:10:24 +0000 (13:10 -0500)]
Print preview: make cancel work

This makes cancels of a print preview work in the same way it
works for non-previews, i.e., the operation stops at the next
page boundary.

https://bugzilla.gnome.org/show_bug.cgi?id=662160

12 years agoquartz: handle recursive CFRunLoops
Michael Natterer [Sun, 6 Nov 2011 22:12:57 +0000 (23:12 +0100)]
quartz: handle recursive CFRunLoops

Fixes e.g. crashs when dropping from finder.

Turn the "getting_events" boolean into a counter to handle poll_func()
being called recursively, and track the loop depth correctly by
changing its counter before bailing out in run_loop_observer_callback().
This way we reallocate our autorelease pool at the right time, and
don't kill memory that is still in use by outer run loops.

Also drain, not release the pool, just for some defensive forward
compatibility.
(cherry picked from commit ef9a92d225f7257f56c3a8b7b28ddd9a734e38e6)

12 years agogtk: add annotations for some GtkRadio* constructors
Torsten Schönfeld [Sat, 15 Oct 2011 17:18:52 +0000 (19:18 +0200)]
gtk: add annotations for some GtkRadio* constructors

Since constructors like gtk_radio_button_new_from_widget take an
instance of their type as the first argument, the gi scanner interprets
them as methods.

https://bugzilla.gnome.org/show_bug.cgi?id=661858

12 years agoquartz: use get_toplevel_from_ns_event in one more place
Kristian Rietveld [Sun, 6 Nov 2011 09:36:00 +0000 (10:36 +0100)]
quartz: use get_toplevel_from_ns_event in one more place

Fixup needed due to refactoring in GTK+-3.0.

12 years agoquartz: make gdk_quartz_osx_version conform to coding style
Kristian Rietveld [Sun, 6 Nov 2011 08:34:39 +0000 (09:34 +0100)]
quartz: make gdk_quartz_osx_version conform to coding style

12 years agoquartz: make test_resize () conform to coding style
Kristian Rietveld [Sun, 6 Nov 2011 08:33:50 +0000 (09:33 +0100)]
quartz: make test_resize () conform to coding style

12 years agoquartz: Process motion events within windows bounds without window set
Kristian Rietveld [Sun, 6 Nov 2011 08:25:16 +0000 (09:25 +0100)]
quartz: Process motion events within windows bounds without window set

When an NSEvent does not have the window field set, we already assumed
the event was not for us and discarded it.  But for NSMouseMoved events
we now make an exception, because such events generated after
using/clicking the main menu bar have the window field set to NULL while
the application window still has focus.

We used to experience a loss of motion events after using the menu bar,
this could be seen in buttons that stopped prelighting and first
clicks often being ignored unless you clicked somewhere else first.
These issues are fixed by this patch.

12 years agoquartz: Factor out toplevel from NSEvent code into function
Kristian Rietveld [Sat, 5 Nov 2011 21:53:22 +0000 (22:53 +0100)]
quartz: Factor out toplevel from NSEvent code into function

12 years agoquartz: Separate out screen_point conversion in function
Kristian Rietveld [Sat, 5 Nov 2011 21:43:17 +0000 (22:43 +0100)]
quartz: Separate out screen_point conversion in function

Reduces code duplication and confusion.

12 years agoquartz: remove unused variable
Kristian Rietveld [Sat, 5 Nov 2011 21:34:41 +0000 (22:34 +0100)]
quartz: remove unused variable

12 years agomenuitem: Always treat submenus as popup
Florian Müllner [Tue, 25 Oct 2011 13:42:59 +0000 (15:42 +0200)]
menuitem: Always treat submenus as popup

Submenus are not actually attached to a menubar, but styling them
as if they were imposes some problems (at least with Adwaita).
Just using GDK_WINDOW_TYPE_HINT_POPUP_MENU for submenus instead
fixes the issue.

https://bugzilla.gnome.org/show_bug.cgi?id=662691

12 years agoAllow fallback for input method modules
Akira TAGOH [Sat, 5 Nov 2011 05:47:46 +0000 (01:47 -0400)]
Allow fallback for input method modules

Accept a :-separated list of module names in GTK_IM_MODULE and
the corresponding setting, to deal a bit better with broken
situations.

https://bugzilla.gnome.org/show_bug.cgi?id=603559

12 years agogtk: add annotations for some GtkSymbolicColor constructors
Torsten Schönfeld [Sat, 15 Oct 2011 17:34:06 +0000 (19:34 +0200)]
gtk: add annotations for some GtkSymbolicColor constructors

https://bugzilla.gnome.org/show_bug.cgi?id=661859

12 years agox11: Fix window manager change detection
Rui Matos [Sat, 5 Nov 2011 05:36:52 +0000 (01:36 -0400)]
x11: Fix window manager change detection

Since the wmspec_check_window doesn't have a corresponding GdkWindow we can't
rely on the get_event_window() return value to get the XID from. Just use the
XID from the XEvent directly.

https://bugzilla.gnome.org/show_bug.cgi?id=662953

12 years agoMark gtk_dialog_new_with_buttons as NULL-terminated
Benjamin Moody [Sat, 5 Nov 2011 05:26:48 +0000 (01:26 -0400)]
Mark gtk_dialog_new_with_buttons as NULL-terminated

https://bugzilla.gnome.org/show_bug.cgi?id=663073