]> Pileus Git - aweather/blobdiff - src/main.c
Update mac integration
[aweather] / src / main.c
index f544bb213e53ca8cfc5a0b9c6d31a6844c55df0c..e1272013abe1fcee5342e19de40c3a1c5075705b 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
 }
 
@@ -144,7 +144,6 @@ int main(int argc, char *argv[])
 
        /* Init */
        GError *error = NULL;
-       g_thread_init(NULL);
        gdk_threads_init();
        if (!gtk_init_with_args(&argc, &argv, "aweather", entries, NULL, &error)) {
                g_print("%s\n", error->message);