+
+#if (GTK_MINOR_VERSION > 0)
+ /* Tearoffs are entries, just like separators. So if we want this
+ menu to be a tear-off one, we just append a tearoff entry
+ immediately. */
+ if(m_style & wxMENU_TEAROFF)
+ {
+ GtkItemFactoryEntry entry;
+ entry.path = "/tearoff";
+ entry.callback = (GtkItemFactoryCallback) NULL;
+ entry.callback_action = 0;
+ entry.item_type = "<Tearoff>";
+ entry.accelerator = (gchar*) NULL;
+ gtk_item_factory_create_item( m_factory, &entry, (gpointer) this, 2 ); /* what is 2 ? */
+ //GtkWidget *menuItem = gtk_item_factory_get_widget( m_factory, "<main>/tearoff" );
+ }
+#endif