* clutter-gtk/gtk-clutter-util.c
[clutter-gtk] / ChangeLog
1 2008-08-01  Neil Roberts  <neil@o-hand.com>
2
3         * clutter-gtk/gtk-clutter-util.c
4         (gtk_clutter_texture_set_from_pixbuf)
5         (gtk_clutter_texture_new_from_pixbuf): The bpp values were the
6         wrong way around so these two functions always failed.
7
8 2008-07-31  Emmanuele Bassi  <ebassi@openedhand.com>
9
10         * clutter-gtk/gtk-clutter-util.c:
11         (gtk_clutter_texture_new_from_pixbuf),
12         (gtk_clutter_texture_set_from_pixbuf): Check if the pixbuf has
13         an alpha before setting the BPP.
14
15 ======== Clutter-GTK 0.8.1 ====================================================
16
17 2008-07-18  Emmanuele Bassi  <ebassi@openedhand.com>
18
19         * NEWS: Release 0.8.1
20
21 2008-07-18  Neil Roberts  <neil@o-hand.com>
22
23         * clutter-gtk/gtk-clutter-embed.c (gtk_clutter_embed_realize): Fix
24         name of mask for motion events.
25
26 2008-07-16  Emmanuele Bassi  <ebassi@openedhand.com>
27
28         * clutter-gtk.pc.in: Fix the pkg-config file. (Ignacio Casal
29         Quinteiro)
30
31 2008-07-15  Emmanuele Bassi  <ebassi@openedhand.com>
32
33         * configure.ac: Post-release bump to 0.8.1.
34
35 ======== Clutter-GTK 0.8.0 ====================================================
36
37 2008-07-15  Emmanuele Bassi  <ebassi@openedhand.com>
38
39         * configure.ac:
40         * README:
41         * NEWS: Release 0.8.0
42
43 2008-07-04  Emmanuele Bassi  <ebassi@openedhand.com>
44
45         * clutter-gtk.pc.in: Fix the inclusion directory
46
47         * clutter-gtk/gtk-clutter-embed.c: Synch up with the stable branch
48         to handle focus. Also remove the ClutterContainer implementation.
49
50         * clutter-gtk/gtk-clutter-util.[ch]: Fully document and add the
51         gtk_clutter_texture_set_from_icon_name() helper function.
52
53         * configure.ac: Whitespace
54
55         * examples/gtk-clutter-test.c: Update.
56
57 2008-05-19  Tomas Frydrych  <tf@openedhand.com>
58
59         * clutter-gtk/gtk-clutter-embed.c:
60         Fixed inclusion of clutter-x11.h following change in structure of
61         clutter includes.
62
63 2008-05-15  Emmanuele Bassi  <ebassi@openedhand.com>
64
65         * clutter-gtk/gtk-clutter-embed.c:
66         (gtk_clutter_embed_init): Realize the stage before retrieving
67         the visual from it.
68
69 2008-05-07  Matthew Allum  <mallum@openedhand.com>
70
71         * clutter-gtk/gtk-clutter-embed.c:
72         Add motion event handling - fixes #907
73
74 2008-04-24  Emmanuele Bassi  <ebassi@openedhand.com>
75
76         * examples/gtk-clutter-test.c (main): Use the utility function
77         for creating a ClutterTexture using a GdkPixbuf.
78
79 2008-04-21  Emmanuele Bassi  <ebassi@openedhand.com>
80
81         Bug #876 - GtkClutterEmbed doesn't propagate events back down
82         to the GtkWindow
83
84         * clutter-gtk/gtk-clutter-embed.c:
85         (gtk_clutter_embed_button_event),
86         (gtk_clutter_embed_key_event): Just return FALSE in the
87         event handlers.
88
89 2008-04-21  Emmanuele Bassi  <ebassi@openedhand.com>
90
91         * clutter-gtk/gtk-clutter-util.h:
92         * clutter-gtk/gtk-clutter-util.c:
93         (gtk_clutter_texture_new_from_pixbuf),
94         (gtk_clutter_texture_new_from_stock),
95         (gtk_clutter_texture_new_from_icon_name): Add utility functions
96         to create a ClutterTexture from a Pixbuf (to replace the
97         clutter_texture_from_pixbuf() call when it will be removed
98         from Clutter core); from a stock id; and from an icon name.
99
100         * examples/Makefile.am: Clean up.
101
102         * examples/gtk-clutter-events.c:
103         * examples/gtk-clutter-multistage.c: Use the new utility API.
104
105 2008-04-17  Emmanuele Bassi  <ebassi@openedhand.com>
106
107         * README: Update requirements
108
109         * clutter-gtk/gtk-clutter-embed.c:
110         (gtk_clutter_embed_dispose): Destroy the ClutterStage we create.
111
112         (gtk_clutter_embed_realize),
113         (gtk_clutter_embed_init),
114         (gtk_clutter_init): Slight cleanup.
115
116 2008-04-17  Emmanuele Bassi  <ebassi@openedhand.com>
117
118         * clutter-gtk/gtk-clutter-util.[ch]: Add utility functions to
119         ClutterGtk to be able to retrieve the ClutterColor equivalent
120         of the various style color components of a GtkWidget.
121
122         * clutter-gtk/Makefile.am: Add gtk-clutter-util.[ch] to the build.
123
124         * doc/reference/clutter-gtk-docs.sgml: Add the new section in
125         the documentation.
126
127         * examples/gtk-clutter-events.c (create_colors): Test the newly
128         added color retrieval API.
129
130 2008-04-15  Neil Roberts  <neil@o-hand.com>
131
132         * configure.ac: Added a --with-flavour option to select between
133         x11 and win32 versions. Defaults to x11.
134
135         * clutter-gtk/gtk-clutter-embed.c: ifdef out X11 specific calls
136         and replace with Win32 equivalents.
137         (gtk_clutter_embed_key_event, gtk_clutter_embed_button_event): Set
138         the stage pointer when generating fake Clutter events otherwise
139         they just get ignored.
140         (gtk_clutter_embed_realize): Always request button and key events
141         in the window event mask. They aren't included by default on
142         Windows.
143
144         * README (Requirements): Added a note about the minimum Clutter
145         version for the Win32 backend.
146
147 2008-04-11  Emmanuele Bassi  <ebassi@openedhand.com>
148
149         * clutter-gtk/gtk-clutter-embed.c:
150         (clutter_container_iface_init): Make GtkClutterEmbed implement
151         ClutterContainer, and proxy all virtual functions to the
152         embedded Stage.
153
154         * examples/gtk-clutter-test.c: (main): Add the group straight
155         to the GtkClutterEmbed widget to test the Container interface
156         implementation.
157
158 2008-04-11  Emmanuele Bassi  <ebassi@openedhand.com>
159
160         * clutter-gtk/gtk-clutter-embed.c:
161         (gtk_clutter_init): Call gtk_init_check(); this is safe, because
162         multiple calls to gtk_init() are safe.
163
164         * clutter-gtk/gtk-clutter-embed.h: Extend the ClutterInitError
165         enumeration.
166
167         * examples/gtk-clutter-events.c:
168         * examples/gtk-clutter-multistage.c:
169         * examples/gtk-clutter-test.c: Call gtk_clutter_init() and error
170         out in case of failure.
171
172 2008-04-04  Emmanuele Bassi  <ebassi@openedhand.com>
173
174         * clutter-gtk/gtk-clutter-embed.c:
175         (gtk_clutter_embed_init): Update after upstream API change.
176
177 2008-04-01  Matthew Allum  <mallum@openedhand.com>
178
179         * examples/Makefile.am:
180         * examples/gtk-clutter-multistage.c:
181         Add a *very* simple multiple stage example.
182
183 2008-04-01  Neil Roberts  <neil@o-hand.com>
184
185         * examples/gtk-clutter-test.c (main): Moved the
186         clutter_actor_show_all call to after the parent widget is
187         shown. Otherwise all of the actors get unrealized when
188         clutter_x11_set_stage_foreign is called and nothing is displayed.
189
190 2008-04-01  Matthew Allum  <mallum@openedhand.com>
191
192         * clutter-gtk/gtk-clutter-embed.c:
193         Update for latest trunk multistage.
194         Should now support multple widgets.
195
196 2008-02-29  Emmanuele Bassi  <ebassi@openedhand.com>
197
198         * Makefile.am:
199         * clutter-gtk/Makefile.am:
200         * examples/Makefile.am: Post-release bump build fixes
201
202         * clutter-gtk/gtk-clutter-embed.c: Extend documentation.
203
204 2008-02-29  Matthew Allum  <mallum@openedhand.com>
205
206         * clutter-gtk.pc.in:
207         * configure.ac:
208         Bump up to unstable 0.7 version and clutter req.
209
210         * clutter-gtk/gtk-clutter-embed.c:
211         * clutter-gtk/gtk-clutter-embed.h:
212         Add clutter_gtk_init(), as to use new API to share DISPLAY and
213         turn off Clutter 'automatic' event collection.
214         Add methods for;
215           expose    - Queue a Clutter redraw.
216           map       - set Actor mapped flag.
217           show/hide - Forward to stage also.
218         Minor doc additions.
219
220         * examples/gtk-clutter-events.c:
221         Add some minor comments re when to call show_all().
222
223         * examples/gtk-clutter-test.c:
224         Fix event->actor mapping.
225
226 2008-02-21  Emmanuele Bassi  <ebassi@openedhand.com>
227
228         * clutter-gtk/gtk-clutter-embed.c:
229         (gtk_clutter_embed_send_configure): Emit a Configure event
230         with the coordinates for the widget area.
231
232         (gtk_clutter_embed_realize),
233         (gtk_clutter_embed_size_allocate): Send the configure event.
234
235 2008-02-18  Emmanuele Bassi  <ebassi@openedhand.com>
236
237         * README:
238         * NEWS: Release 0.6.0
239
240 2008-02-07  Emmanuele Bassi  <ebassi@openedhand.com>
241
242         * clutter-gtk/gtk-clutter-embed.c: Explicitly note that you should
243         never call clutter_actor_set_size() on the embedded stage, but
244         call gtk_widget_set_size_request() on the widget itself to
245         resize the stage.
246
247 2008-01-25  Emmanuele Bassi  <ebassi@openedhand.com>
248
249         * README:
250         * NEWS: Release 0.5.2
251
252         * configure.ac: Post release bump to 0.5.3
253
254 2008-01-24  Emmanuele Bassi  <ebassi@openedhand.com>
255
256         * doc/reference/clutter-gtk-docs.sgml:
257         * doc/reference/clutter-gtk.types: Update with the widget name
258         change.
259
260         * examples/gtk-clutter-test.c: Set a default size on the
261         widget to avoid the 0, 0 initial size.
262
263 2008-01-23  Emmanuele Bassi  <ebassi@openedhand.com>
264
265         * configure.ac: Fix srcdir detection.
266
267 2008-01-23  Emmanuele Bassi  <ebassi@openedhand.com>
268
269         * configure.ac: Bump up to 0.5.1 and require Clutter 0.5.3
270         using clutter-x11.
271
272         * clutter-gtk.pc.in: Require clutter-x11-0.5.
273
274         * clutter-gtk/Makefile.am:
275         * clutter-gtk/gtk-clutter-embed.[ch]: Add the new GtkClutterEmbed
276         widget; this widget reverts back to the old, pre-XEMBED implementation
277         of an embeddable stage, by letting Clutter draw directly onto a
278         child GdkWindow, thanks to the fixes that went into Clutter
279         core. (#716, #717, #718, based on a patch by Havoc Pennington)
280
281         * clutter-gtk/clutter-gtk.[ch]: Remove the XEMBED based embeddable
282         widget.
283
284         * examples/gtk-clutter-events.c:
285         * examples/gtk-clutter-test.c: Update the tests for the new API.
286
287 2008-01-17  Emmanuele Bassi  <ebassi@openedhand.com>
288
289         * NEWS:
290         * README: Release 0.5.0
291
292 2007-12-04  Emmanuele Bassi  <ebassi@openedhand.com>
293
294         Update after the API changes in Clutter core
295
296         * clutter-gtk/clutter-gtk.c:
297         (gtk_clutter_destroy): Do not call clutter_actor_destroy()
298         on the stage.
299
300         (gtk_clutter_map): Use the new X11 API for retrieving the
301         XID of the stage window.
302
303         (gtk_clutter_init): Set the widget as paintable and the stage
304         as resizable.
305
306         * examples/gtk-clutter-events.c:
307         (on_x_changed), (on_y_changed), (on_z_changed): Use the new
308         clutter_actor_set_rotation() API.
309
310         * examples/gtk-clutter-test.c (frame_cb): Ditto as above.
311
312 2007-08-20  Emmanuele Bassi  <ebassi@openedhand.com>
313
314         * doc/reference/clutter-gtk-sections.txt:
315         * doc/reference/clutter-gtk-docs.sgml:
316         * clutter-gtk/clutter-gtk.[ch]: Fix API reference.
317
318         * examples/Makefile.am: Fix compilation of the examples
319
320 2007-08-15  Emmanuele Bassi  <ebassi@openedhand.com>
321
322         * configure.ac:
323         * clutter-gtk.pc.in:
324         * Makefile.am:
325         * clutter-gtk/Makefile.am: Bump up to 0.5.0 and require
326         clutter-gtk-0.5 as well.
327
328 2007-08-07  Emmanuele Bassi  <ebassi@openedhand.com>
329
330         * configure.ac: Bump up to 0.4.0; require clutter-glx-0.4.
331
332         * clutter-gtk.pc.in:
333         * Makefile.am:
334         * clutter-gtk/Makefile.am: Update.
335
336 2007-08-03  Chris Lord,,,  <chris@openedhand.com>
337
338         * doc/reference/Makefile.am:
339         Fix documentation building
340
341 2007-07-18  Neil J. Patel  <njp@o-hand.com>
342
343         * examples/Makefile.am:
344         Point to new clutter-gtk library name.
345
346 2007-07-17  Emmanuele Bassi  <ebassi@openedhand.com>
347
348         * examples/gtk-clutter-events.c: Remove wrong casting around
349         the g_signal_connect() argument; this masked a weird memory
350         corruption bug happening when compiling outside the sources
351         directory.
352
353 2007-07-17  Emmanuele Bassi  <ebassi@openedhand.com>
354
355         * clutter-gtk/Makefile.am:
356         * clutter-gtk.pc.in: Install (and use) a versioned library, to
357         match the behaviour of clutter-core and the other integration
358         libraries.
359
360 2007-07-17  Emmanuele Bassi  <ebassi@openedhand.com>
361
362         * clutter-gtk.pc.in: Depend on the right clutter pkgconfig file
363
364         * Makefile.am: Install a versioned clutter-gtk pkgconfig file
365
366 2007-07-06  Matthew Allum  <mallum@openedhand.com>
367
368         * NEWS:
369         Update.
370         * configure.ac:
371         Bump up version to 0.3.1
372
373 2007-07-06  Matthew Allum  <mallum@openedhand.com>
374
375         * clutter-gtk.pc.in:
376         Fix to require 0.3 clutter.
377
378 2007-06-11  Neil Jagdish Patel  <njp@f7>
379
380         * examples/gtk-clutter-events.c: (create_colors):
381         Removed stray g_print
382
383 2007-06-11  Neil Jagdish Patel  <njp@o-hand.com>
384
385         * examples/Makefile.am:
386         * examples/gtk-clutter-events.c: (on_gtk_entry_changed),
387         (on_x_changed), (on_y_changed), (on_z_changed),
388         (on_opacity_changed), (create_colors), (main):
389         Added another example whihc shows some interaction between gtk and
390         the stage.
391
392         * examples/gtk-clutter-test.c: (main):
393         Updated to work with clutter-0.3
394
395
396 2007-04-17  Emmanuele Bassi  <ebassi@openedhand.com>
397
398         * configure.ac: Branch for development; bump to 0.3.0, to
399         match Clutter core version; require clutter-glx backend.
400
401         * clutter-gtk/clutter-gtk.c: Include the GLX backend specific
402         functions; add an "embedded" read-only property, which signals
403         whether the widget has successfully embedded the stage window;
404         use the new clutter_glx_get_stage_window() function.
405
406         * examples/gtk-clutter-test.c: Port to the new event API.
407
408 2007-03-23  Ross Burton  <ross@openedhand.com>
409
410         * configure.ac:
411         Don't require any particular GTK+ version.
412
413 2007-03-23  Ross Burton  <ross@openedhand.com>
414
415         * examples/Makefile.am:
416         Dist the PNG.
417
418 ================= 2007-03-22 0.1 Release ========================
419
420 2007-03-22  Matthew Allum  <mallum@openedhand.com>
421
422         * clutter-gtk.doap:
423         Update for 0.1 Realease
424
425 2007-03-22  Matthew Allum  <mallum@openedhand.com>
426
427         * NEWS:
428         Update for 0.1 release
429         * doc/reference/clutter-gtk.types:
430         Rename fix.
431
432 2007-03-22  Matthew Allum  <mallum@openedhand.com>
433
434         * clutter-gtk/Makefile.am:
435         * clutter-gtk/clutter-gtk.c:
436         * clutter-gtk/gtk-clutter.c:
437         * clutter-gtk/gtk-clutter.h:
438         * configure.ac:
439         * examples/gtk-clutter-test.c:
440         Various naming fixups.
441
442 2007-03-21  Matthew Allum  <mallum@openedhand.com>
443
444         * clutter-gtk.pc.in:
445         * clutter-gtk/Makefile.am:
446         More version fixes.
447
448 2007-03-21  Matthew Allum  <mallum@openedhand.com>
449
450         * doc/reference/Makefile.am:
451         Fix lib path so docs build again.
452
453 2007-03-21  Matthew Allum  <mallum@openedhand.com>
454
455         * clutter-gtk/gtk-clutter.c:
456         * clutter-gtk/gtk-clutter.h:
457         Redo to subclass GtkSocket and use XEMBED to embed clutter stage.
458         Needs at least clutter 0.2.2. Avoids previous issues with
459         white textures when painting onto a GtkWindow.
460         (Thanks to Iain for doing all the hardwork here)
461
462         * examples/gtk-clutter-test.c: (main):
463         Update.
464
465         * configure.ac:
466         * clutter-gtk.pc.in:
467         Fixups to require clutter-0.2.2
468
469 2006-11-30  Matthew Allum  <mallum@openedhand.com>
470
471         * clutter-gtk.doap:
472         Update doap file a little.
473
474 2006-11-30  Emmanuele Bassi  <ebassi@openedhand.com>
475
476         * clutter-gtk/gtk-clutter.c:
477         (gtk_clutter_expose_event): Queue a redraw of the
478         stage instead of directly swapping the GL buffers.
479
480 2006-11-30  Emmanuele Bassi  <ebassi@openedhand.com>
481
482         * clutter-gtk/gtk-clutter.c:
483         (gtk_clutter_expose_event): Use the newly added
484         clutter_stage_swap_buffers() and fix the missing redraw
485         on expose bug.
486
487 2006-11-29  Emmanuele Bassi  <ebassi@openedhand.com>
488
489         * examples/gtk-clutter-test.c: Add a "quit" button.
490
491 2006-11-29  Emmanuele Bassi  <ebassi@openedhand.com>
492
493         * clutter-gtk/gtk-clutter.c:
494         (gtk_clutter_destroy): Destroy the ClutterStage instead
495         of unreffing it.
496
497         (gtk_clutter_size_allocate): Queue a redraw if the stage
498         is marked as visible.
499
500         (gtk_clutter_realize): Remove the forced realize: the
501         stage is already realized by default.
502
503         * examples/gtk-clutter-test.c: Use gtk_main_quit().
504
505 2006-11-29  Emmanuele Bassi  <ebassi@openedhand.com>
506
507         * clutter-gtk/gtk-clutter.h: Add constructor; clean up.
508
509         * clutter-gtk/gtk-clutter.c:
510         (gtk_clutter_destroy), (gtk_clutter_class_init): Move
511         the stage unref to the GtkObject::destroy method.
512
513         (gtk_clutter_size_allocate): Oblige to the size allocation
514         request from the container of the GtkClutter widget by
515         resizing the ClutterStage.
516
517         (gtk_clutter_size_request): Require the size of the stage.
518
519         (gtk_clutter_destroy), (gtk_clutter_size_request),
520         (gtk_clutter_realize): Do not use the G_TYPE_INSTANCE_GET_PRIVATE()
521         macro, which does a type check and a function call; use the
522         priv pointer we conveniently keep around.
523
524         * examples/gtk-clutter-test.c: Use the given constructor;
525         now window resizing works.  The stage doesn't get refreshed
526         immediately (resize the window), though, and there's still
527         the X error when we close the window.
528
529 2006-11-29  Emmanuele Bassi  <ebassi@openedhand.com>
530
531         * *: Initial import out of the main tree.