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