X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ae53c98c9f71acb0876846b9c5b1e56adfdb6186..faeaeff901211776f20a2c426b739d121f3bfb0b:/src/gtk1/menu.cpp diff --git a/src/gtk1/menu.cpp b/src/gtk1/menu.cpp index a267b1bab8..46b158cce4 100644 --- a/src/gtk1/menu.cpp +++ b/src/gtk1/menu.cpp @@ -218,9 +218,13 @@ void wxMenuBar::Append( wxMenu *menu, const wxString &title ) entry.accelerator = (gchar*) NULL; entry.callback = (GtkItemFactoryCallback) NULL; entry.callback_action = 0; - entry.item_type = (m_style & wxMB_TEAROFF || menu->GetStyle() & - wxMENU_TEAROFF) ? - "" : ""; + +/* + if ((m_style & wxMB_TEAROFF) || (menu->GetStyle() & wxMENU_TEAROFF)) + entry.item_type = ""; + else +*/ + entry.item_type = ""; gtk_item_factory_create_item( m_factory, &entry, (gpointer) this, 2 ); /* what is 2 ? */ @@ -236,6 +240,16 @@ void wxMenuBar::Append( wxMenu *menu, const wxString &title ) gtk_menu_item_set_submenu( GTK_MENU_ITEM(menu->m_owner), menu->m_menu ); +/* + if ((m_style & wxMB_TEAROFF) || (menu->GetStyle() & wxMENU_TEAROFF)) + { + entry.item_type = ""; + tmp.Remove( 0, 6 ); + tmp.Append( _T("/tearoff") ); + strcpy( buf, tmp.mb_str() ); + gtk_item_factory_create_item( m_factory, &entry, (gpointer) this, 2 ); + } +*/ #else menu->m_owner = gtk_menu_item_new_with_label( str.mb_str() ); @@ -845,7 +859,13 @@ void wxMenu::Append( int id, const wxString &item, wxMenu *subMenu, const wxStri entry.path = buf; entry.callback = (GtkItemFactoryCallback) 0; entry.callback_action = 0; - entry.item_type = (m_style & wxMENU_TEAROFF) ? "" : ""; + +/* + if (m_style & wxMENU_TEAROFF) + entry.item_type = ""; + else +*/ + entry.item_type = ""; gtk_item_factory_create_item( m_factory, &entry, (gpointer) this, 2 ); /* what is 2 ? */