RE: [gtkmm] Change cursor in Widget
- From: Murray Cumming Comneon com
- To: spr astrax fis ucm es, gtkmm-list gnome org
- Subject: RE: [gtkmm] Change cursor in Widget
- Date: Mon, 12 May 2003 16:21:12 +0200
I do this in the BusyCursor class in Bakery, and use it in PrefixSuffix. You
might look at it.
http://bakery.sourceforge.net
Murray Cumming
murrayc usa net
www.murrayc.com
> -----Original Message-----
> From: Sergio Pascual [mailto:spr astrax fis ucm es]
> Sent: Montag, 12. Mai 2003 16:12
> To: gtkmm-list gnome org
> Subject: [gtkmm] Change cursor in Widget
>
>
>
> Hi, I'm trying to change the cursor over one window. I'm
> using this simple
> code, but it segfaults:
>
> #include <gtkmm/window.h>
> #include <gtkmm/main.h>
> #include <gdkmm/cursor.h>
>
> int main (int argc,char **argv){
> Gtk::Main app(argc,argv);
> Gtk::Window window;
> Gdk::Cursor cursor(Gdk::STAR);
> window.get_window()->set_cursor(cursor);
> app.run(window);
> return 0;
> }
>
> Is this the way to change the cursor? I'm using
> gtkmm-2.0.2
>
> --
>
> <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
> <><><><><><><><>
> Sergio Pascual Ramírez spr astrax fis ucm es
> Tf: (+34) 91-394-50-18 Fax: (+34) 91-394-46-35
> Dept. Astrofísica Facultad de C.C. Físicas
> Universidad Complutense de Madrid
> 28040 Madrid (Spain)
>
> --------------------------------------------------------------
> ----------------
> Spanish junior researchers fight for employment rights
> http://www.precarios.org
>
> <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
> <><><><><><><><>
>
>
>
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]