Update mac integration
authorAndy Spencer <andy753421@gmail.com>
Sun, 30 Dec 2012 06:51:52 +0000 (06:51 +0000)
committerAndy Spencer <andy753421@gmail.com>
Wed, 2 Jan 2013 06:15:02 +0000 (06:15 +0000)
src/main.c

index 7e67975..e127201 100644 (file)
@@ -99,12 +99,12 @@ static void setup_mac(AWeatherGui *gui)
 {
 #ifdef MAC_INTEGRATION
        GtkWidget *menu = aweather_gui_get_widget(gui, "main_menu");
-       GtkOSXApplication *app = g_object_new(GTK_TYPE_OSX_APPLICATION, NULL);
+       GtkosxApplication *app = g_object_new(GTKOSX_TYPE_APPLICATION, NULL);
        gtk_widget_hide(menu);
-       gtk_osxapplication_set_menu_bar(app, GTK_MENU_SHELL(menu));
-       gtk_osxapplication_set_use_quartz_accelerators(app, TRUE);
-       gtk_osxapplication_ready(app);
-       //gtk_osxapplication_sync_menubar(app)
+       gtkosx_application_set_menu_bar(app, GTK_MENU_SHELL(menu));
+       gtkosx_application_set_use_quartz_accelerators(app, TRUE);
+       gtkosx_application_ready(app);
+       //gtkosx_application_sync_menubar(app)
 #endif
 }