| 509 | #else |
| 510 | { |
| 511 | GtkOSXApplication * theApp; |
| 512 | GtkWidget * item; |
| 513 | GtkOSXApplicationMenuGroup * group; |
| 514 | GtkWidget * menu; |
| 515 | |
| 516 | theApp = g_object_new(GTK_TYPE_OSX_APPLICATION, NULL); |
| 517 | |
| 518 | |
| 519 | menu = gtk_ui_manager_get_widget (GTK_UI_MANAGER (image_ui_manager),"/dummy-menubar/image-popup"); |
| 520 | if (GTK_IS_MENU_ITEM (menu)) |
| 521 | menu = gtk_menu_item_get_submenu (GTK_MENU_ITEM (menu)); |
| 522 | |
| 523 | gtk_osxapplication_set_menu_bar(theApp, GTK_MENU_SHELL(menu)); |
| 524 | gtk_osxapplication_set_use_quartz_accelerators(theApp, TRUE); |
| 525 | |
| 526 | group = gtk_osxapplication_add_app_menu_group (theApp); |
| 527 | item = gtk_ui_manager_get_widget (GTK_UI_MANAGER (image_ui_manager),"/dummy-menubar/image-popup/Help/dialogs-about"); |
| 528 | if (GTK_IS_MENU_ITEM (item)) |
| 529 | gtk_osxapplication_add_app_menu_item(theApp, group,GTK_MENU_ITEM (item)); |
| 530 | |
| 531 | group = gtk_osxapplication_add_app_menu_group (theApp); |
| 532 | item = gtk_ui_manager_get_widget (GTK_UI_MANAGER (image_ui_manager),"/dummy-menubar/image-popup/Edit/Preferences/dialogs-preferences"); |
| 533 | if (GTK_IS_MENU_ITEM (item)) |
| 534 | gtk_osxapplication_add_app_menu_item(theApp, group,GTK_MENU_ITEM (item)); |
| 535 | |
| 536 | item = gtk_ui_manager_get_widget (GTK_UI_MANAGER (image_ui_manager),"/dummy-menubar/image-popup/Edit/Preferences/dialogs-keyboard-shortcuts"); |
| 537 | if (GTK_IS_MENU_ITEM (item)) |
| 538 | gtk_osxapplication_add_app_menu_item(theApp, group,GTK_MENU_ITEM (item)); |
| 539 | |
| 540 | item = gtk_ui_manager_get_widget (GTK_UI_MANAGER (image_ui_manager),"/dummy-menubar/image-popup/Edit/Preferences/plug-in-unit-editor"); |
| 541 | if (GTK_IS_MENU_ITEM (item)) |
| 542 | gtk_osxapplication_add_app_menu_item(theApp, group,GTK_MENU_ITEM (item)); |
| 543 | |
| 544 | } |
| 545 | #endif |