Commit Graph

26275 Commits

Author SHA1 Message Date
Benjamin Otte
1c44454854 image: Only redraw changed parts of the picture, not the full picture 2011-02-14 19:33:05 +01:00
Benjamin Otte
fe3b6ffc7a gtk: Make region argument to gtk_widget_queue_Draw_region() const 2011-02-14 19:33:04 +01:00
Benjamin Otte
1be6566272 gtk: Rewrite GtkImage to only use pictures
The code now creates pictures of the correct type if you use
gtk_image_set_from_whatever(). This hugely simplifies the generic code
of GtkImage.
2011-02-14 19:33:04 +01:00
Benjamin Otte
403260b18b testpicture: Add an animation demo 2011-02-14 19:33:04 +01:00
Benjamin Otte
db3d517c22 gdk: Add GdkPixbufAnimationPicture
Does nothing but display a GdkPixbufAnimation. :)
2011-02-14 19:33:04 +01:00
Benjamin Otte
d8d33bfa0c testpicture: Add icon theme examples 2011-02-14 19:33:04 +01:00
Benjamin Otte
4c7c292a04 testpicture: Add scribble area
Requires a custom picture subclass. And all the code in 180 lines,
woohoo!
2011-02-14 19:33:04 +01:00
Benjamin Otte
9223264b7a gtk: Add GtkNamedPicture
Supposed to be used for named icons. See gtk_image_set_icon_name() for
what it replaces.
2011-02-14 19:33:04 +01:00
Benjamin Otte
67e2fec6e1 gtk: Add GtkIconPicture
It' supposed to be used to get a picture for a GIcon
2011-02-14 19:33:04 +01:00
Benjamin Otte
3770c98f6e gtk: Add GtkIconThemePicture
This is the abstract base class for icons from icon themes. It will be
used by subclasses for GIcon and icon names.
2011-02-14 19:33:04 +01:00
Benjamin Otte
f9257fba91 tests: Handle invalidations properly in rotating drawingarea 2011-02-14 19:33:04 +01:00
Benjamin Otte
b32c135abb tests: Add testpicture test
Needs more fun, but I can add that later.
2011-02-14 19:33:04 +01:00
Benjamin Otte
9ef7ae541b gtk: Add GtkIconSetPicture
Does what it says.
2011-02-14 19:33:03 +01:00
Benjamin Otte
0df9f21109 gtk: Add GtkStockPicture
It's a GdkPicture displaying a stock icon.
2011-02-14 19:33:03 +01:00
Benjamin Otte
d6dcd5e51c gtk: Add GtkIconPicture
It's a GdkPicture for an icon from an icontheme.
2011-02-14 19:33:03 +01:00
Benjamin Otte
5f230589bb gtk: Add a private GtkStyledPicture
It's supposed to handle our use cases for styling. And it's better to
write this code only once after all.
2011-02-14 19:33:03 +01:00
Benjamin Otte
1d927e872e gdk: Add GdkPictureLoader
It loads pictures, surprise!
2011-02-14 19:33:03 +01:00
Benjamin Otte
252ccb129f gtk: Add the ability to set a GdkPicture on a GtkImage 2011-02-14 19:33:03 +01:00
Benjamin Otte
9668dcba7d gtk: Add GtkStylablePicture
This interface allows adding styling information to GdkPicture
subclasses that can be used by widgets to draw them.
2011-02-14 19:33:03 +01:00
Benjamin Otte
e56f013698 gdk: Add GdkPixbufPicture
This allows an easy transition from pixbufs to pictures.
I probably went a bit overboard with the keep-pixbuf and keep-surface
settings, but oh well...

xxx: pixbufpicture
2011-02-14 19:32:59 +01:00
Benjamin Otte
ad7ab0f781 gdk: Make creating a surface from a pixbuf an intenral function 2011-02-14 19:24:02 +01:00
Benjamin Otte
edb1cb5569 gdk: Introduce GdkPicture
It's an API that's intended to replace GdkPixbuf.
2011-02-14 19:24:02 +01:00
Benjamin Otte
33a46dd553 gdk: Select the X11 backend a the last possible backend
On Windows and OS X we want to prefer the native backends over the X11
backend.
On Linux, nothing changes as nobody is going to enable those backends
(and if they do, they'll know what they get).
2011-02-12 22:09:58 +01:00
Benjamin Otte
9f5c734e14 doc: Document the GDK_BACKEND environment variable 2011-02-12 22:09:58 +01:00
Benjamin Otte
a1d96af9ed colorsel: Remove WINDOWING ifdef
That one was leftover from the times when GDK didn't allow pointer
warping and we had an X11-specific solution.
2011-02-12 22:09:58 +01:00
Changwoo Ryu
81229e737a Update Korean translation 2011-02-13 04:53:59 +09:00
Matthias Clasen
9f12cc3dcd Protect x11-specific functions in gtktypefuncs.c
This is just a bandaid fix, we really need to systematically collect
type functions for all backends.
2011-02-12 09:12:36 -05:00
Matthias Clasen
3138c3ddcb No GTK_ENABLE_BROKEN anymore
We stopped shipping broken stuff...
2011-02-12 08:26:21 -05:00
danigm
799c3e4e57 gail: Fixing little bug, gail_misc_add_attribute returns the new attrib_set
Some calls to gail_misc_add_attribute doesn't assing the return
 valute to attrib_set, so the attrib_set never get modified.
2011-02-12 08:17:00 -05:00
Matthias Clasen
d05d924516 Silence more compiler warnings 2011-02-12 08:01:51 -05:00
Matthias Clasen
bfd66fe3a3 Quell compiler warnings 2011-02-12 08:01:51 -05:00
Kjartan Maraas
086f266767 Updated Norwegian bokmål translation. 2011-02-12 13:44:48 +01:00
Yaron Shahrabani
c526c1bf76 Updated Hebrew translation 2011-02-12 11:39:17 +02:00
Abduxukur Abdurixit
5a86445538 Added UG translation 2011-02-12 08:18:25 +01:00
Matthias Clasen
10ebea8c03 Use standard icon names 2011-02-11 23:53:39 -05:00
Matthias Clasen
728a45fc1f Remove confusion over XI2 defines
Some places were using XINPUT_2, others XINPUT_XI2. Since configure
defines XINPUT_2, use that throughout.
2011-02-11 23:30:01 -05:00
Benjamin Otte
de9a082ddb x11: Make headers identical no matter if we run with or without XI2
Previously we weren't installing the device headers when compiling
without XINPUT support. But we would include them from gdkx.h, so
essentially the build was broken.

With this patch the types will exist but not do anything.
2011-02-12 01:27:40 +01:00
Benjamin Otte
30abd4d8b5 x11: Fix struct definition for GdkDeviceManagaerXI2 2011-02-12 00:16:03 +01:00
Benjamin Otte
ac6c6b03d9 gtk: Fix warnings for dnd code without XInput 2011-02-11 23:53:48 +01:00
Benjamin Otte
e9ff457a40 x11: Make the device manager struct actually subclass the correct device 2011-02-11 23:53:14 +01:00
Benjamin Otte
ccc3679a62 stylecontext: Use the common approach for priate pointers
Has two advantages:
1) consistency
2) "print *context->priv" actually works in gdb
2011-02-11 23:21:11 +01:00
Benjamin Otte
0bd0854d4d icontheme: constify arguments to gtk_icon_theme_load_symbolic() 2011-02-11 23:21:11 +01:00
Benjamin Otte
b1f2e5bfa3 x11: Fix build without Xinput
Missing ifdefs
2011-02-11 23:21:11 +01:00
Colin Walters
63b415df92 docs: Link to all versions of both GTK3 and GTK2
Now that library supports both cleanly, fix the links so that
the user can go from the online doc to any version better.
2011-02-11 12:39:07 -05:00
Chun-wei Fan
d847f489f0 Win32 Visual C++ Support: Some more clean-ups
Update gtk+.vsprops...

Since gdkconfig.h should now reside in gdk/, there
is no longer need to create a lib/gtk-3.0/include folder.
2011-02-11 18:41:22 +08:00
Chun-wei Fan
7cb41b6561 gdk/gdkconfig.h.win32: Make it more up-to-date
Make this pre-configured file to be more like the one used by the existing
X11 version, but using GDK_WINDOWING_WIN32 for obvious reasons.
2011-02-11 18:07:05 +08:00
Michael Natterer
1865011b7f gtk: don't send BUTTON_RELEASE to unrealized widgets
which happened when the source widget was hidden or destroyed while a
drag was going on, like when dragging from a popup that got a grab
broken as result of the dnd operation.
2011-02-11 10:48:43 +01:00
Chun-wei Fan
bba7a98cc6 Visual C++ support: Fix the gdk-win32 Project
Apparently I previously had one of the source files wrong here...
Update this to reflect the correct file.
My fault for not seeing this earlier-sorry.  DOH.
2011-02-11 17:45:32 +08:00
Matthias Clasen
d4ac3c8561 Bump version to 3.0.1 2011-02-10 15:27:54 -05:00
Matthias Clasen
edf592024b Correct sonames appearing in the docs 2011-02-10 15:02:33 -05:00