Matthias Clasen
bda1f35585
Inclusion cleanups in sources
...
Try to do inclusions in the same sequence, more or less.
2010-10-14 22:09:36 -04:00
Kristian Rietveld
eca2af5230
Make set_cairo_surface_size a vfunc on GdkWindowImpl
...
Note the special implementation of this method on GdkOffscreenWindow
that makes sure its current surface is not destroyed.
2010-10-05 15:38:23 +02:00
Benjamin Otte
e8e657725c
x11: Get rid of gdk_drawable_get_size() usage
2010-09-26 15:11:43 +02:00
Benjamin Otte
5625c20759
x11: When querying window size, ask the wrapper, not ourselves
2010-09-26 15:11:41 +02:00
Benjamin Otte
04d5c477aa
API: Remove gdk_drawable_get_colormap()
...
And with it, remove any notion of colormaps from GdkWindow. In
particular, X11 windows will now not set attrs.colormap when calling
XCreateWindow.
2010-09-26 15:11:33 +02:00
Benjamin Otte
b5097de481
gdk: gdk_drawable_get_display() => gdk_window_get_display()
2010-09-26 15:11:33 +02:00
Benjamin Otte
a6ef356107
API: Remove drawable getters for visual, screen and depth
...
Removed and replaced are:
gdk_drawable_get_visual() => gdk_window_get_visual()
gdk_drawable_get_screen() => gdk_window_get_screen()
gdk_drawable_get_depth() => gdk_visual_get_depth
(gdk_window_get_visual())
2010-09-26 15:11:33 +02:00
Benjamin Otte
a6e936788a
gdk: gdk_drawable_get_screen/visual => gdk_window_get_screen/visual
2010-09-26 15:11:33 +02:00
Benjamin Otte
894d402c0f
API: Remove gdk_drawable_set_colormap()
2010-09-26 15:11:32 +02:00
Benjamin Otte
f74f9b2766
gdk: Remove GdkPixmap
...
All iusers of it are gone, so it's now time to let go.
cairo_surface_t is a full replacement, combined with
gdk_window_create_similar_surface().
2010-09-26 15:11:30 +02:00
Benjamin Otte
8d3319f088
x11: Remove last traces of XShm
...
Since deletion of GdkImage, shm is no longer in use.
2010-09-26 15:11:30 +02:00
Benjamin Otte
2b4efe2690
x11: Remove _gdk_x11_convert_to_format()
...
It's unused now.
2010-09-26 15:11:30 +02:00
Benjamin Otte
2bedd205c5
gdk: Remove gdk_windowing_create_cairo_surface()
...
Instead, actually use the create_cairo_surface vfunc on the
implementation drawable. D'oh.
2010-09-26 15:11:11 +02:00
Kristian Rietveld
d819bc4814
Invalidate cairo surface if resizing is not supported for target
...
While X11 surfaces can be resized, this is not the case for Quartz
surfaces. Instead of resizing we will invalidate the surface instead.
By giving _gdk_windowing_set_cairo_surface_size() a boolean return
value, we can signal back whether or not resizing was possible. If not
possible, we invalidate the surface.
2010-08-10 21:02:31 +02:00
Benjamin Otte
8868e77fa0
x11: Remove display_x11->have_render
...
Also remove setters and getters for the variable and the GdkTristate
enum, as it's the only place where it was used.
2010-08-10 21:02:30 +02:00
Kristian Høgsberg
c7bd2ad1c9
gdk: Remove picture pointer from X11 drawable
...
It's not used anymore
2010-08-10 21:02:30 +02:00
Benjamin Otte
6a48a042c7
API: remove GdkGC
...
XXX: Some traces in the win32 code are left. I suppose they'd best be
replaced using Cairo.
2010-08-10 21:02:29 +02:00
Benjamin Otte
61d4a019f8
API: remove gdk_draw_drawable()
2010-08-10 21:02:29 +02:00
Benjamin Otte
600fbd3e74
API: remove gdk_draw_rectangle()
2010-08-10 21:02:28 +02:00
Benjamin Otte
9ee5176492
API: remove gdk_draw_point(s)
2010-08-10 21:02:27 +02:00
Benjamin Otte
a9e99e7f5b
API: remove gdk_draw_{line,lines,segments}
...
Those were the 3 intermixed line drawing calls.
2010-08-10 21:02:27 +02:00
Benjamin Otte
e85dfc7cc4
API: remove gdk_draw_polygon()
2010-08-10 21:02:27 +02:00
Benjamin Otte
559ae63f01
API: remove gdk_draw_arc()
2010-08-10 21:02:27 +02:00
Benjamin Otte
6f5084551a
API: remove gdk_drawable_copy_to_image()
2010-08-10 21:02:26 +02:00
Benjamin Otte
b926ce719b
API: remove gdk_draw_image()
2010-08-10 21:02:26 +02:00
Benjamin Otte
4f8dbd4a8d
API: Remove gdk_draw_pixbuf()
2010-08-10 21:02:25 +02:00
Benjamin Otte
8adfc326f8
x11: Query size on real drawable
...
The X11 drawable does not have a clue about the real size of the
surface.
This might also be the cause for:
https://bugzilla.gnome.org/show_bug.cgi?id=599574
2010-07-26 16:42:46 +02:00
Javier Jardón
404e7d0e00
gdk/: fully remove gdkalias hacks
...
https://bugzilla.gnome.org/show_bug.cgi?id=623845
2010-07-10 02:21:31 +02:00
Benjamin Otte
300e6b84cd
s/GdkRegion/cairo_region_t/ in all of gtk
...
https://bugzilla.gnome.org/show_bug.cgi?id=613284
2010-06-29 16:06:38 +02:00
Benjamin Otte
78018767ba
Implement GdkRegion in terms of cairo_region_t
...
Only changes in headers: GdkRegion and GdkRectangle are typedeffed to
cairo_region_t and cairo_rectangle_int_t respectively. The region type
was opaque anyway so it doesn't matter and the rectangle types are
identical.
https://bugzilla.gnome.org/show_bug.cgi?id=613284
2010-06-29 16:06:38 +02:00
Javier Jardón
4cf4470fcd
Remove deprecated GdkDrawable functions
...
Remove gdk_drawable_get_data(), gdk_drawable_set_data(),
gdk_drawable_ref(), gdk_drawable_unref(),
gdk_draw_string(), gdk_draw_text(), gdk_draw_text_wc()
2010-06-19 21:39:22 +02:00
Alexander Larsson
d0ac27fe5f
Add function accessors for x11 window/pixmap impl
2009-09-04 17:59:17 +02:00
Alexander Larsson
2678a454e5
Make clipmasks work for pixbuf rendering
...
This is more important in the client side windows world, as clip masks
may be used for clipping to non-native subwindows. This fixes a bug
in aisleriot where it uses masked pixbuf drawing and it ends up drawing
over the moving card subwindow.
2009-07-07 17:10:49 +02:00
Alexander Larsson
2e3866b5b2
Make GdkDrawable draw_drawable backwards compat
...
Turns out pygtk build broke due to the argument addition to draw_drawable.
So, we now add a new vfunc for the new draw_drawable and are thus
backwards compat.
2009-07-01 19:50:49 +02:00
Alexander Larsson
038398d493
Move new draw_drawable argument to end to make it more backwards compat
2009-07-01 16:13:31 +02:00
Alexander Larsson
287b821705
Rename gdk_window_set_has_native to gdk_window_ensure_native
...
This also removes the (unimplemented) possibility to change a window to
non-native. This seems generally not very useful, and there are some problems
with it, for instance if two "users" need a window to be native and then
one of the "users" doesn't need it anymore it can't change it back, because
it is unaware of the other reason the window is native.
2009-06-01 11:57:59 +02:00
Alexander Larsson
0b586a5ad7
Add support for client side graphics exposures in gdk_draw_drawable
2009-05-27 17:10:32 +02:00
Alexander Larsson
c72e93de16
Workaround X11 clipping bug
...
It turns out that XCopyArea handling of obscured source regions is
buggy. It clears the destination area even outside the GC clip
region. We work around this for the pixmap->window case as that
can happen in gtk+ and is easy to work around.
X Bug report at:
http://lists.freedesktop.org/archives/xorg/2009-February/043318.html
2009-04-02 10:15:33 +02:00
Alexander Larsson
a6e647863d
Only sync the display if creating a native window implicitly
2009-04-02 10:15:29 +02:00
Alexander Larsson
d326a638fb
Really create a native window when getting xid
2009-04-02 10:14:04 +02:00
Alexander Larsson
8fc7a9547c
Create native window when requesting xid
2009-04-02 10:14:04 +02:00
Alexander Larsson
eabac453e6
Initial client-side-windows work
...
The history before this was kind of twisted as several different
approaches were tested, so that was all squashed into this initial
commit to hide the uninteresting changes and files that were later
removed.
2009-04-02 10:14:01 +02:00
Johan Dahlin
d97cdbdf53
Include "config.h" instead of <config.h> Command used: find -name
...
2008-06-21 Johan Dahlin <jdahlin@async.com.br>
* *.[ch]: Include "config.h" instead of <config.h>
Command used:
find -name \*.[ch]|xargs perl -p -i -e 's/^#include <config.h>/#include "config.h"/g'
Rubberstamped by Mitch and Tim
svn path=/trunk/; revision=20669
2008-06-22 14:28:52 +00:00
Matthias Clasen
c74f0bbf65
Don't leak ShmPixmapInfo. ( #349858 , Chris Wilson)
...
2006-08-15 Matthias Clasen <mclasen@redhat.com>
* gdk/x11/gdkdrawable-x11.c (get_shm_pixmap_for_image): Don't
leak ShmPixmapInfo. (#349858 , Chris Wilson)
2006-08-15 17:05:00 +00:00
Matthias Clasen
f22387f042
Remove extraneous ;
2006-05-14 03:58:06 +00:00
Matthias Clasen
10f0736ac7
Use G_DEFINE_TYPE.
...
2006-04-04 Matthias Clasen <mclasen@redhat.com>
* gdk/gdkdisplay.c:
* gdk/gdkdisplaymanager.c:
* gdk/gdkdraw.c:
* gdk/gdkkeys.c:
* gdk/gdkpixmap.c:
* gdk/gdkscreen.c:
* gdk/gdkwindow.c:
* gdk/x11/gdkcolor-x11.c:
* gdk/x11/gdkdisplay-x11.c:
* gdk/x11/gdkdnd-x11.c:
* gdk/x11/gdkdrawable-x11.c:
* gdk/x11/gdkgc-x11.c:
* gdk/x11/gdkimage-x11.c:
* gdk/x11/gdkinput.c:
* gdk/x11/gdkpixmap-x11.c:
* gdk/x11/gdkscreen-x11.c:
* gdk/x11/gdkwindow-x11.c: Use G_DEFINE_TYPE.
* gdk/x11/gdkcolor-x11.c:
* gdk/x11/gdkdnd-x11.c:
* gdk/x11/gdkimage-x11.c: Use instance private data.
2006-04-04 14:02:03 +00:00
Matthias Clasen
476e138db0
Intern type names before registering the type to avoid unnecessary copies.
...
2005-08-31 Matthias Clasen <mclasen@redhat.com>
* gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_get_type):
* gdk/x11/gdkscreen-x11.c (_gdk_screen_x11_get_type):
* gdk/x11/gdkpixmap-x11.c (gdk_pixmap_impl_x11_get_type):
* gdk/x11/gdkkeys-x11.c (gdk_keymap_x11_get_type):
* gdk/x11/gdkinput.c (gdk_device_get_type):
* gdk/x11/gdkimage-x11.c (gdk_image_get_type):
* gdk/x11/gdkgc-x11.c (_gdk_gc_x11_get_type):
* gdk/x11/gdkdrawable-x11.c (_gdk_drawable_impl_x11_get_type):
* gdk/x11/gdkdnd-x11.c (gdk_drag_context_get_type):
* gdk/x11/gdkdisplay-x11.c (_gdk_display_x11_get_type):
* gdk/x11/gdkcolor-x11.c (gdk_colormap_get_type):
* gdk/gdkwindow.c (gdk_window_object_get_type):
* gdk/gdkscreen.c (gdk_screen_get_type):
* gdk/gdkrectangle.c (gdk_rectangle_get_type):
* gdk/gdkpixmap.c (gdk_pixmap_get_type):
* gdk/gdkkeys.c (gdk_keymap_get_type):
* gdk/gdkfont.c (gdk_font_get_type):
* gdk/gdkevents.c (gdk_event_get_type):
* gdk/gdkdraw.c (gdk_drawable_get_type):
* gdk/gdkdisplaymanager.c (gdk_display_manager_get_type):
* gdk/gdkdisplay.c (gdk_display_get_type):
* gdk/gdkcursor.c (gdk_cursor_get_type):
* gdk/gdkcolor.c (gdk_color_get_type): Intern type names before
registering the type to avoid unnecessary copies.
2005-08-31 15:14:26 +00:00
Owen Taylor
013a0b0f11
Fix have_base_pc / have_base_x_pc typo.
...
2005-08-15 Owen Taylor <otaylor@redhat.com>
* configure.in: Fix have_base_pc / have_base_x_pc typo.
* gdk/x11/gdkdrawable-x11.c gtk/gtksettings.c: Remove panoxft.h includes.
(#313417 , James Andrewartha)
* configure.in: Add fontconfig to X_PACKAGES, since we use it for
FcNameConstant(). (More of #313417 )
2005-08-15 19:04:55 +00:00
Keith Packard
9917173c41
Follow change in cairo API to add Screen* to
...
2005-07-20 Keith Packard <keithp@keithp.com>
* gdk/x11/gdkdrawable-x11.c: (gdk_x11_ref_cairo_surface):
Follow change in cairo API to add Screen* to
cairo_xlib_create_surface_for_bitmap
2005-07-21 03:57:00 +00:00
Owen Taylor
df1cc88424
Update to changed cairo interface.
...
2005-05-17 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkdrawable-x11.c (gdk_x11_ref_cairo_surface):
Update to changed cairo interface.
* gdk/x11/gdkdrawable-x11.[ch]:
Add _gdk_x11_drawable_update_size()
* gdk/x11/gdkwindow-x11.c (gdk_window_resize)
(gdk_window_move_resize)
* gdk/x11/gdkevents-x11.c (gdk_event_translate):
Call _gdk_x11_drawable_update_size().
2005-05-17 17:35:22 +00:00