Re: uiinfo problem



Ricardo Cabral wrote:
 
Try this, it is possibly a solution (not test)
When creating your menu in the function create_mainwindow(,)
get the widget you want to affect the callback
file1_menu_uiinfo[0].widget and affect the corresponding
signal.
It should be like this
gtk_signal_connect (GTK_OBJECT (file1_menu_uiinfo[0].widget),
	"activate", GTK_SIGNAL_FUNC (on_note_is_editable_activate),
	note_text);
If it works you have to set your menu like this

  {
    GNOME_APP_UI_TOGGLEITEM, N_("Note is editable"),
    NULL,
    NULL, NULL, NULL,  // this is the modified line
    GNOME_APP_PIXMAP_NONE, NULL,
    0, 0, NULL
  },

-- 
Florent DEVIN, 33 (0)3 20 43 47 30, Fax (33) (0)3 20 43 65 66 (Fax LIFL)
LIFL, Laboratoire d'Informatique Fondamentale de LILLE
USTL, Bureau 326, Batiment M3, 59655 Villeneuve d'Ascq Cedex




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]