Changeset 5b455bc1f94c25d4788dc1ba9d50c8de19b29e5b
- Timestamp:
- 06/26/08 00:02:00 (5 years ago)
- Author:
- Armin Burgmeier <armin@…>
- git-author:
- Yarek Tyshchenko <yarek@britishgraphics.co.uk> / 2008-06-26T00:02:00Z+0200
- Parents:
- 6dd2f9c75a3a6fc2ee38db9717e1f2a236d49fda
- Children:
- 6d22f6a41b1d32ed68760f2f5ceb6411cc45c49f
- git-committer:
- Armin Burgmeier <armin@arbur.net> / 2008-06-26T00:02:00Z+0200
- Message:
-
Integrate with global OS X menu bar when compiled natively for OS X
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r6dd2f9c
|
r5b455bc
|
|
| | 1 | 2008-06-25 Yarek Tyshchenko <yarek@britishgraphics.co.uk> |
| | 2 | |
| | 3 | * configure.ac: Require ige-mac-integration when Gobby is complied |
| | 4 | natively on OS X. |
| | 5 | |
| | 6 | * src/header.cpp: Integrate the menu bar into the main OS X menu bar. |
| | 7 | |
| 1 | 8 | 2008-06-03 Philipp Kern <phil@0x539.de> |
| 2 | 9 | |
-
|
r93b7357
|
r5b455bc
|
|
| 36 | 36 | |
| 37 | 37 | required_libs="libxml++-2.6 gtkmm-2.4 >= 2.6.0 gthread-2.0 net6-1.3 obby-0.4 >= 0.4.5" |
| | 38 | |
| | 39 | # Check if we are running on OS X, for special link handling. |
| | 40 | if test "x$build_vendor" = "xapple" ; then |
| | 41 | AC_DEFINE([OSX], 1, [Define whether we are running on Mac OS X.]) |
| | 42 | target=`pkg-config --variable=target gtk+-2.0` |
| | 43 | if test "$target" = "quartz" ; then |
| | 44 | required_libs="$required_libs ige-mac-integration" |
| | 45 | fi |
| | 46 | fi |
| | 47 | AC_CACHE_SAVE |
| 38 | 48 | |
| 39 | 49 | # GtkSourceView2 support |
| … |
… |
|
| 106 | 116 | AM_CONDITIONAL(WITH_AVAHI, test x$ac_cv_lib_obby_obby_has_avahi = xyes) |
| 107 | 117 | |
| 108 | | # Check if we are running on OS X, for special link handling. |
| 109 | | if test "x$build_vendor" = "xapple" ; then |
| 110 | | AC_DEFINE([OSX], 1, [Define whether we are running on Mac OS X.]) |
| 111 | | fi |
| 112 | | AC_CACHE_SAVE |
| 113 | | |
| 114 | 118 | # Glib i18n/gettext support. |
| 115 | 119 | ALL_LINGUAS="ca de es fr ja ko it pl pt pt_BR ru sv zh_CN" |
-
|
r7fdfee0
|
r5b455bc
|
|
| 24 | 24 | #include "header.hpp" |
| 25 | 25 | #include "icon.hpp" |
| 26 | | |
| | 26 | #ifdef OSX |
| | 27 | #include "ige-mac-menu.h" |
| | 28 | #endif |
| 27 | 29 | namespace { |
| 28 | 30 | Glib::ustring ui_desc = |
| … |
… |
|
| 720 | 722 | ); |
| 721 | 723 | } |
| 722 | | |
| | 724 | #ifdef OSX |
| | 725 | ige_mac_menu_set_menu_bar(GTK_MENU_SHELL (m_menubar->gobj())); |
| | 726 | |
| | 727 | ige_mac_menu_set_quit_menu_item(GTK_MENU_ITEM ( |
| | 728 | m_ui_manager->get_widget("/MenuMainBar/MenuApp/AppQuit")->gobj())); |
| | 729 | |
| | 730 | ige_mac_menu_add_app_menu_item(ige_mac_menu_add_app_menu_group (), |
| | 731 | GTK_MENU_ITEM ( |
| | 732 | m_ui_manager->get_widget("/MenuMainBar/MenuHelp/HelpAbout")->gobj()), |
| | 733 | NULL); |
| | 734 | |
| | 735 | ige_mac_menu_add_app_menu_item(ige_mac_menu_add_app_menu_group (), |
| | 736 | GTK_MENU_ITEM ( |
| | 737 | m_ui_manager->get_widget("/MenuMainBar/MenuEdit/EditPreferences")->gobj()), |
| | 738 | NULL); |
| | 739 | #else |
| 723 | 740 | pack_start(*m_menubar, Gtk::PACK_SHRINK); |
| | 741 | #endif |
| 724 | 742 | pack_start(*m_toolbar, Gtk::PACK_SHRINK); |
| 725 | 743 | } |