Thank you Bob, I solved it with your method. And also thanks to Yao and Vlad Volodin.
On Mon, May 11, 2009 at 1:30 PM, Robert Ochshorn <[email protected]> wrote: > You're not running Compiz by any chance are you? I know virtually > nothing about Clutter, but when I first tried some sample code in > Ubuntu with Compiz, I had a similar problem, which went away only when > I turned Desktop Effects off and returned to metacity. > > Rob > > On Mon, May 11, 2009 at 01:17:31PM +0800, Jianchun Zhou wrote: > > Thanks for your reply, Yao. > > > > But I think you've misunderstood me, I mean there is no titlebar, not no > > title on titlebar. > > > > > > ---------- Forwarded message ---------- > > From: Yao <[email protected]> > > Date: Mon, May 11, 2009 at 1:12 PM > > Subject: Re: [clutter] No Titlebar > > To: Jianchun Zhou <[email protected]> > > > > > > try clutter_stage_set_title > > > > On Mon, May 11, 2009 at 1:07 PM, Jianchun Zhou <[email protected] > >wrote: > > > > > Hi, all: > > > > > > I am new to clutter, and now I am learning programming with it. > > > > > > But when I run a program produced by the source code as below, I got a > > > window without titlebar: > > > > > > #include <clutter/clutter.h> > > > > > > #include <stdlib.h> > > > > > > static gboolean > > > on_stage_button_press (ClutterStage *stage, ClutterEvent *event, > gpointer data) > > > { > > > gint x = 0; > > > gint y = 0; > > > clutter_event_get_coords (event, &x, &y); > > > > > > > > > > > > g_print ("Stage clicked at (%d, %d)\n", x, y); > > > > > > return TRUE; /* Stop further handling of this event. */ > > > } > > > > > > int main(int argc, char *argv[]) > > > { > > > ClutterColor stage_color = { 0x00, 0x00, 0x00, 0xff }; /* Black */ > > > > > > > > > > > > clutter_init (&argc, &argv); > > > > > > /* Get the stage and set its size and color: */ > > > ClutterActor *stage = clutter_stage_get_default (); > > > clutter_actor_set_size (stage, 200, 200); > > > clutter_stage_set_color (CLUTTER_STAGE (stage), &stage_color); > > > > > > > > > > > > /* Show the stage: */ > > > clutter_actor_show (stage); > > > > > > /* Connect a signal handler to handle mouse clicks and key presses on > the stage: */ > > > g_signal_connect (stage, "button-press-event", > > > > > > > > > G_CALLBACK (on_stage_button_press), NULL); > > > > > > /* Start the main loop, so we can respond to events: */ > > > clutter_main (); > > > > > > return EXIT_SUCCESS; > > > > > > } > > > > > > And now I am wondering where is it? > > > > > > > > > > > > -- > > > Best Regards > > > > > > > > > > > -- > > Best Regards > > > > Yao > > > > > > > > > > -- > > Best Regards > -- Best Regards
