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