Problem with GtkUIManager

2008-11-01 Thread Jerome Blondel
Hi In my XML definition string, I set up a element in a menubar, but did not define any inside. Then, I created GtkCheckMenuItems and tried to append them to the View submenu (using gtk_ui_manager_get_widget and gtk_menu_item_get_submenu). However, when I start the application, the View item

Re: Destroying a menu

2008-01-24 Thread Jerome Blondel
Iago Rubio > On Wed, 2008-01-23 at 12:47 +0100, Jerome Blondel wrote: > >>> On Mon, 2008-01-21 at 10:47 +0100, Jerome Blondel wrote: >>> >> Even when the ref count of the submenu is increased, the program still >> crashes on the second time th

Re: Destroying a menu

2008-01-23 Thread Jerome Blondel
Iago Rubio > On Mon, 2008-01-21 at 10:47 +0100, Jerome Blondel wrote: > >> Hi >> >> If I set a menu as a submenu for a menu item, is it destroyed when I >> destroy the toplevel menu? >> > > IFAIK yes. > > When you attach a menu to a widget

Destroying a menu

2008-01-21 Thread Jerome Blondel
Hi If I set a menu as a submenu for a menu item, is it destroyed when I destroy the toplevel menu? Jerome Blondel ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: motion-notify-event works only once

2007-06-27 Thread Jerome Blondel
David Nečas (Yeti) : On Wed, Jun 27, 2007 at 05:46:57PM +0200, Jerome Blondel wrote: I've set up a motion-notify-event handler in a GtkDrawingArea, adding the POINTER_MOTION and POINTER_MOTION_HINT event masks to the widget. The event is triggered only when the pointer moves into the w

motion-notify-event works only once

2007-06-27 Thread Jerome Blondel
Hi, I've set up a motion-notify-event handler in a GtkDrawingArea, adding the POINTER_MOTION and POINTER_MOTION_HINT event masks to the widget. The event is triggered only when the pointer moves into the window. I'd like to receive an event for each movement of the pointer. Is there something

Re: Problem with gtk drawing primitive

2007-05-28 Thread Jerome Blondel
David Nec(as (Yeti) : > On Mon, May 28, 2007 at 08:21:01PM +0200, Jerome Blondel wrote: > >> I'm making a widget from scratch using the tutorial's GtkDial as a base. >> For now I just want to draw something in my widget. The following error >> occurs

Problem with gtk drawing primitive

2007-05-28 Thread Jerome Blondel
NULL, w, NULL, points, 8, TRUE); Please could anyone help me with this problem? Jerome Blondel ___ Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son i

Re: Redrawing drawing area from main loop timer

2007-04-13 Thread Jerome Blondel
[EMAIL PROTECTED] a écrit : > > You need to use gtk_widget_queue_draw_area(): Thank you that's what I needed. Jerome ___ Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail

Redrawing drawing area from main loop timer

2007-04-12 Thread Jerome Blondel
Hi I'm trying to redraw periodically a drawing area from the main loop using g_timer_add. In the GSourceFunc i tried to emit a signal to my drawing area : gboolean increment_angle(gpointer darea) { angle += M_PI/100; g_signal_emit_by_name(GTK_WIDGET(darea), "expose-event", &angle); re