Benjamin Otte
7acb64f983
gdk: Make GdkWindowImpl a class, not an interface
...
It's a subclass of GdkDrawable and the baseclass for GdkWindowImplX11
etc now.
2010-12-02 20:21:02 +01:00
Benjamin Otte
b3bca70d5b
gdk: Remove unused medialib code
2010-12-02 20:21:02 +01:00
Benjamin Otte
b1f6df8085
API: Remove gdkdrawable.h from public headers
...
It continues to exist as a private header.
2010-12-02 20:21:02 +01:00
Benjamin Otte
771fa78257
textbuffer: Remove check for GdkDrawable
...
This should only have been used for stipple patterns, and those are gone
now.
2010-12-02 20:21:02 +01:00
Benjamin Otte
cf6ce6e671
API: Decouple GdkWindow from GdkDrawable
...
Make GdkWindow no longer typedeffed to GdkDrawable, but instead make it
be its own (private) type.
2010-12-02 20:21:02 +01:00
Benjamin Otte
81605623e2
gdk: Use GdkDrawable for impl pointers
...
... instead of GdkWindow
2010-12-02 20:21:02 +01:00
Benjamin Otte
a7e6d6c4b4
gtk: Avoid GdkDrawable usage, including needless casts
2010-12-02 20:21:02 +01:00
Benjamin Otte
63808f90a2
gail: Avoid needless calls to GdkDrawable
2010-12-02 20:21:02 +01:00
Benjamin Otte
62622a94ae
gdk: Pass Drawable as argument
...
We're not passing a GdKWindow here, but the implementation.
2010-12-02 20:21:02 +01:00
Benjamin Otte
072498ae87
gdk: Make _gdk_window_ref_cairo_surface() protected and use it
...
... instead of _gdk_drawable_ref_cairo_surface() where appropriate.
Also, don't implement the drawable->create_cairo_surface vfunc anymore.
This is in preparation for the split of GdkWindow from GdkDrawable.
2010-12-02 20:21:02 +01:00
Benjamin Otte
e724054d19
API: Remove GDK_WINDOW_XWINDOW() macro
...
Use GDK_WINDOW_XID() instead.
THis was done using sed, so there might be issues resulting to that.
Feel free to fix.
2010-12-02 20:20:56 +01:00
Benjamin Otte
18a6976e5a
API: gdk: Don't track outstanding surfaces
...
You are not allowed to track surfaces from GDK or draw outside of expose
events. So we can remove ugly hacks needed previously. See
https://bugzilla.gnome.org/show_bug.cgi?id=606009 for the introduction
of this workaround.
2010-12-02 20:17:28 +01:00
Benjamin Otte
fe6f76a5a2
x11: Make wrapper member a GdkDrawable
...
This is in preparation for getting rid of GdkDrawable as a dependency of
GdkWindow.
2010-12-02 20:17:28 +01:00
Benjamin Otte
becaf660fc
API: gdk_drawable_get_visible_region => gdk_window_get_visible_region
...
Also get rid of the GdkDrawable vfunc.
2010-12-02 20:17:28 +01:00
Benjamin Otte
6a3a89a621
API: gdk_drawable_get_clip_region() => gdk_window_get_clip_region()
...
Also remove the vfunc from GdkDrawableClass.
2010-12-02 20:17:28 +01:00
Benjamin Otte
97e6e9d212
API: Make gdk_cairo_create() take a GdkWindow
...
This is not strictly an API change as GdkDrawable is typedeffed to
GdkWindow, but it changes the header, so I'm marking it as such.
gdk_cairo_create() can only be used with windows these days, so it makes
sense to pass a window. With that, we can alseo remove the
set_cairo_clip() vfunc from GdkDrawable and implement it inside
gdkwindow.c.
2010-12-02 20:17:28 +01:00
Benjamin Otte
65dde2f92f
API: Remove gdk_cairo_reset_clip()
...
You should not ever ever ever call cairo_reset_clip(). If you do, your
code is broken and you deserve everything you get.
And we should definitely not support this insanity.
2010-12-02 20:17:28 +01:00
Benjamin Otte
d154344a43
win32: Remove some unused defines
2010-12-02 20:17:28 +01:00
Benjamin Otte
88399c041c
x11: Remove GdkDrawableImplX11
...
It's not use anymore, the whole functionality has been moved to
GdkWindowImplX11.
2010-12-02 20:17:27 +01:00
Benjamin Otte
3e6a4af6d3
x11: _gdk_x11_drawable_update_size() => _gdk_x11_window_update_size()
2010-12-02 20:17:27 +01:00
Benjamin Otte
bb79506665
x11: Move cairo_surface and wrapper members to GdkWindowImplX11 struct
2010-12-02 20:17:27 +01:00
Benjamin Otte
1c7f58fdb6
x11: Move xid member from GdkDrawableImplX11 to GdkWindowImplX11
2010-12-02 20:17:27 +01:00
Benjamin Otte
a3c5005eef
x11: Use GDK_WINDOW_XID() instead of writing it out
2010-12-02 20:17:27 +01:00
Benjamin Otte
094b0eeb98
x11: Remove screen member from GdkDrawableImplX11
2010-12-02 20:17:27 +01:00
Benjamin Otte
5f12730599
x11: Get display from window, not from impl-drawable's screen
2010-12-02 20:17:27 +01:00
Benjamin Otte
cfa67127a1
x11: Get display from window, not from impl-drawable's screen
2010-12-02 20:17:27 +01:00
Benjamin Otte
dc7d8dae67
x11: Change GDK_WINDOW_SCREEN macro
...
on't look at GdkDrawableImplX11->screen, but call
gdk_window_get_screen() instead.
2010-12-02 20:17:27 +01:00
Benjamin Otte
5139eecc75
API: x11: Remove GDK_DRAWABLE_XID and GDK_DRAWABLE_XDISPLAY
...
Window equivalents exist and drawables are on their way out.
2010-12-02 20:17:27 +01:00
Benjamin Otte
3b8aea389d
x11: Use window macros instead of drawable macros
...
GDK_WINDOW_XID() instead of GDK_DRAWABLE_XID()
GDK_WINDOW_XDISPLAY() instead of GDK_DRAWABLE_XDISPLAY()
2010-12-02 20:17:27 +01:00
Benjamin Otte
91679c384a
API: Remove gdk_x11_drawable_get_xdisplay()
...
No need for the function. Macros exist to do the same thing.
2010-12-02 20:17:27 +01:00
Benjamin Otte
0841281b55
x11: Use window macros in test code
2010-12-02 20:17:27 +01:00
Benjamin Otte
28ba4c2146
im-xim: Use window macros instead of drawable macros
2010-12-02 20:17:27 +01:00
Benjamin Otte
3af4432c6f
API: x11: Remove gdk_x11_window_get_drawable_impl()
...
It's not used anymore
2010-12-02 20:17:27 +01:00
Benjamin Otte
deffc9e39f
API: x11: Change GDK_WINDOW_XDISPLAY() macro
...
Instead of lots of magic, we can go the usual way of requesting the
XDisplay of the window's display. So we do that.
2010-12-02 20:17:27 +01:00
Benjamin Otte
cf51750bf4
API: x11: gdk_drawable_get_xid => gdk_window_get_xid
...
Also moves the function implementations to gtkwindow-x11.c.
2010-12-02 20:17:27 +01:00
Jorge González
86390c99dd
Updated Spanish translation
2010-12-02 19:28:16 +01:00
Jorge González
c5d1b36e87
Updated Spanish translation
2010-12-02 19:28:12 +01:00
Bastien Nocera
66122b369e
gtk: Centre the text under the icon in GtkIconView
...
No point in setting the alignment to centre if we don't center it
within the cell itself.
2010-12-02 15:04:32 +00:00
Matthias Clasen
dd678ac323
Avoid a warning when finalizing toolbars
...
Recent changes cause disposing menus to emit ::deactivate. So better
disconnect the deactivate handler first.
2010-12-01 23:32:35 -05:00
Cosimo Cecchi
6587652433
app-chooser-button: don't insert empty rows in the combobox
2010-12-01 20:18:12 +01:00
Cosimo Cecchi
b17f033857
app-chooser-button: add a note in the docs
2010-12-01 17:04:22 +01:00
Cosimo Cecchi
6e6379c633
app-chooser: add docs and symbols coverage for new API
2010-12-01 17:04:22 +01:00
Cosimo Cecchi
510d65ba08
app-chooser-button: add gtk_app_chooser_button_set_active_custom_item()
...
This allows to pre-select a custom item.
2010-12-01 17:04:22 +01:00
Cosimo Cecchi
9ffd1f7adb
app-chooser-button: make sure to always get a valid iter
...
Even in case there are no installed applications for our content type.
2010-12-01 17:03:51 +01:00
Bastien Nocera
959fc60c47
gtk: Allow hiding the trough/slider in GtkScale
...
When setting a GtkRange's upper and lower values to the same
value, the slider will not be drawn any more.
https://bugzilla.gnome.org/show_bug.cgi?id=549720
2010-12-01 15:39:50 +00:00
Ivar Smolin
926622e2dd
[l10n] Updated Estonian translation
2010-12-01 13:17:39 +02:00
Mahyar Moghimi
80b1c80dbb
Updating Persian translation
2010-12-01 14:19:46 +03:30
Mahyar Moghimi
b9bc2f1321
Updating Persian translation
2010-12-01 14:16:19 +03:30
Emmanuele Bassi
b9859de917
switch: Fix the attribution line
...
Thomas Wood pointed out that the original MxGtkLightSwitch widget upon
which I based the behaviour of GtkSwitch was not written by him; the
original authors are:
Joshua Lock
Robert Staudinger
Jussi Kukkonen
My apologies to all of them.
2010-11-30 21:54:48 +00:00
Matthias Clasen
bdeba634d9
Update checkmenuitem docs slightly
2010-11-30 11:36:34 -05:00