[clutter] How do i get screen properties with clutter?

2010-06-12 Thread Ankur Sinha
hey,

I would like my stage to be say, 80% of the screen size. How would I
find the size of the screen using pyclutter? I've been through the docs
and I don't see any methods that would give me this info. 

Also, how do I remove window decorations? for eg, I'm making a splash,
which doesn't need the title bar etc. Is there a property that I can
set?

thanks, 

regards,

Ankur

-- 
To unsubscribe send a mail to clutter+unsubscr...@o-hand.com



Re: [clutter] How do i get screen properties with clutter?

2010-06-12 Thread Ankur Sinha
On Sat, 2010-06-12 at 17:36 +0100, Emmanuele Bassi wrote:
 On Sat, 2010-06-12 at 21:58 +0530, Ankur Sinha wrote:
  hey,
  
  I would like my stage to be say, 80% of the screen size. How would I
  find the size of the screen using pyclutter? I've been through the docs
  and I don't see any methods that would give me this info. 
 
  Also, how do I remove window decorations? for eg, I'm making a splash,
  which doesn't need the title bar etc. Is there a property that I can
  set?
 
 Clutter does not abstract a platform's windowing system - except to the
 extent that it needs to effectively paint the stage and handle events on
 it. the rest is left to the platform's own libraries.
 
 you can use clutter-gtk (and its python bindings) to get a Stage
 embedded inside a gtk+ window - and then use gtk+'s API to achieve what
 you want.
 
 ciao,
  Emmanuele.
 

hey,

Thanks Emmanuele. 

I'm trying to *not* use the gtk bindings so the app stays DE
independent.

Thanks anyway, 

regards,
Ankur

-- 
To unsubscribe send a mail to clutter+unsubscr...@o-hand.com



[clutter] pyclutter code SEGFAULTS

2010-06-07 Thread Ankur Sinha
hi,

I'm trying to run this code[1] but it continually segfaults. It worked
previously and I really can't recall what's changed. Here's the
backtrace. Can someone please point me to the thing that's breaking?


 Starting program: /usr/bin/python Splash.py
 [Thread debugging using libthread_db enabled]
 
 Program received signal SIGSEGV, Segmentation fault.
 0x7fffedc4bbf8 in do_row (datatype=value optimized out, comps=value 
 optimized out, srcWidth=value optimized out, srcRowA=0x77f35000, 
 srcRowB=
 0x77f35100, dstWidth=value optimized out, dstRow=0x1) at 
 main/mipmap.c:194
 194  dst[i] = (rowA[j] + rowA[k] + rowB[j] + rowB[k])  2;
 (gdb) bt
 #0  0x7fffedc4bbf8 in do_row (datatype=value optimized out, 
 comps=value optimized out, srcWidth=value optimized out, 
 srcRowA=0x77f35000, 
 srcRowB=0x77f35100, dstWidth=value optimized out, dstRow=0x1) 
 at main/mipmap.c:194
 #1  0x7fffedc4cd8c in make_2d_mipmap (datatype=5121, comps=1, border=0, 
 srcWidth=256, srcHeight=256, srcPtr=
 0x77f35000 Address 0x77f35000 out of bounds, srcRowStride=256, 
 dstWidth=128, dstHeight=128, dstPtr=0x1 Address 0x1 out of bounds, 
 dstRowStride=256) at main/mipmap.c:1019
 #2  0x7fffedbe876f in fallback_generate_mipmap (ctx=0xc76040, 
 target=3553, texObj=0xd3a620) at state_tracker/st_gen_mipmap.c:151
 #3  st_generate_mipmap (ctx=0xc76040, target=3553, texObj=0xd3a620) at 
 state_tracker/st_gen_mipmap.c:269
 #4  0x7fffedc17310 in _mesa_GenerateMipmapEXT (target=3553) at 
 main/fbobject.c:2014
 #5  0x0030df69d067 in _cogl_texture_2d_ensure_mipmaps (tex=0xd3b230) at 
 ./cogl-texture-2d.c:423
 #6  0x0030df68ee37 in _cogl_rectangles_with_multitexture_coords 
 (rects=0x7fffc5f0, n_rects=1) at ./cogl-primitives.c:391
 #7  0x0030df68f2cc in cogl_rectangle_with_texture_coords (x_1=value 
 optimized out, y_1=value optimized out, x_2=value optimized out, 
 y_2=value optimized out, tx_1=value optimized out, ty_1=value 
 optimized out, tx_2=value optimized out, ty_2=value optimized out)
 at ./cogl-primitives.c:593
 #8  0x0030df6a82b0 in _cogl_pango_display_list_render_texture (dl=value 
 optimized out, color=0x7fffc7e0, glyph_material=0xbf5640, solid_material=
 0xbf56f0) at cogl-pango-display-list.c:263
 #9  _cogl_pango_display_list_render (dl=value optimized out, 
 color=0x7fffc7e0, glyph_material=0xbf5640, solid_material=0xbf56f0)
 at cogl-pango-display-list.c:352
 #10 0x0030df6a8fab in cogl_pango_render_layout_subpixel (layout=0xcfeb70, 
 x=0, y=0, color=0x7fffc7e0, flags=value optimized out)
 at cogl-pango-render.c:273
 #11 0x0030df684be4 in clutter_text_paint (self=value optimized out) at 
 ./clutter-text.c:1821
 #12 0x0030cb60b8d9 in IA__g_closure_invoke (closure=0xbf43a0, 
 return_value=0x0, n_param_values=1, param_values=0xd4ad60, 
 invocation_hint=0x7fffc990)
 at gclosure.c:767
 #13 0x0030cb61f59c in signal_emit_unlocked_R (node=value optimized out, 
 detail=0, instance=0xd02040, emission_return=0x0, instance_and_params=
 0xd4ad60) at gsignal.c:3286
 #14 0x0030cb620de6 in IA__g_signal_emit_valist (instance=value optimized 
 out, signal_id=value optimized out, detail=value optimized out, var_args=
 0x7fffcb80) at gsignal.c:2981
 #15 0x0030cb6213a3 in IA__g_signal_emit (instance=value optimized out, 
 signal_id=value optimized out, detail=value optimized out)
 at gsignal.c:3038
 #16 0x0030df6350ce in clutter_actor_paint (self=0xd02040 [ClutterText]) 
 at ./clutter-actor.c:2560
 #17 0x0030caa3958c in IA__g_list_foreach (list=value optimized out, 
 func=0x30df634fb0 clutter_actor_paint, user_data=0x0) at glist.c:918
 #18 0x0030df65f482 in clutter_group_real_paint (actor=0xcf0020 
 [ClutterStage]) at ./clutter-group.c:281
 #19 0x0030df67b6ed in clutter_stage_paint (self=0xcf0020 [ClutterStage]) 
 at ./clutter-stage.c:325


[1] https://fedorahosted.org/fedora-tour/browser/src/Splash.py

I'd be more than happy to provide any extra info that you'd need. 

Thank you,

regards,
Ankur

-- 
To unsubscribe send a mail to clutter+unsubscr...@o-hand.com



[clutter] failed to create drawable Error

2010-05-11 Thread Ankur Sinha
Hey,

I'm getting this error for a very simple program. Is this a clutter
issue or a driver issue? How do I debug it?

The source is here: 

 https://fedorahosted.org/fedora-tour/browser/src


failed to create drawable

(fedora-tour.py:7331): Clutter-WARNING **: Unable to create a new stage:
the glx backend does not support multiple stages.
Traceback (most recent call last):
  File ./fedora-tour.py, line 14, in module
frontend = Splash()
  File /home/Ankur/Documents/fedora-tour/src/frontend/Splash.py, line
47, in __init__
self.stage = clutter.Stage()
RuntimeError: could not create a clutter.Stage

Thanks :)

regards,
Ankur

-- 
To unsubscribe send a mail to clutter+unsubscr...@o-hand.com



Re: [clutter] Help building pyclutter

2010-03-17 Thread Ankur Sinha
On Sat, 2010-03-13 at 11:05 +0100, Bastian Winkler wrote:
 they all live on git.clutter-project.org:
 
 git://git.clutter-project.org/bindings/pyclutter
 git://git.clutter-project.org/bindings/pyclutter-gst
 git://git.clutter-project.org/bindings/pyclutter-gtk
 
 
 so long
 
 :wq buz
 
Hey,

i cloned the git repo for pyclutter. 

The README says run 

./configure 
make 
make install

however, there is no configure script in there. 

on running autoconf, i get the following errors:

configure.ac:32: error: possibly undefined macro: AM_CONFIG_HEADER
  If this token and others are legitimate, please use
m4_pattern_allow.
  See the Autoconf documentation.
configure.ac:34: error: possibly undefined macro: AM_INIT_AUTOMAKE
configure.ac:42: error: possibly undefined macro: AC_DISABLE_STATIC
configure.ac:43: error: possibly undefined macro: AC_LIBTOOL_WIN32_DLL
configure.ac:44: error: possibly undefined macro: AC_PROG_LIBTOOL
configure.ac:47: error: possibly undefined macro: AM_PATH_PYTHON
configure.ac:47: error: possibly undefined macro: AC_MSG_ERROR
configure.ac:49: error: possibly undefined macro:
AM_CHECK_PYTHON_HEADERS
configure.ac:118: error: possibly undefined macro: AM_CONDITIONAL

How do I correct these? Am I doing it wrong?

Thanks :)
-- 
regards,
Ankur 
- FAS : ankursinha ; franciscod @ Freenode
- gpg --keyserver pgp.mit.edu --recv-keys 5E9BF638



signature.asc
Description: This is a digitally signed message part


[clutter] embedding a clutter stage into a pygtk window

2009-12-25 Thread Ankur Sinha
hey, 

I'm making a ui, where I've designed a clutter stage and embedded it
into a pygtk window. 

a pic: 

http://ankursinha.fedorapeople.org/misc/Screenshot-Untitled%
20Window-4.png

The entire thing is a clutter stage, embedded into a pygtk Window. I
want to increase the opacity of the two icon boxes(the airplane and the
train) when the mouse goes over them. Since the stage is embedded into a
pygtk window, the events are handled by the event handler of the Window
and not the stage. (Or I'm just missing something really basic)

the code is available at:

https://fedorahosted.org/fedora-tour/browser/frontend1

Can someone please guide me on how to handle events on clutter and
(manipulate objects based on these events) while embedding it into
pygtk?

regards,
Ankur

-- 
To unsubscribe send a mail to clutter+unsubscr...@o-hand.com