]> www.fi.muni.cz Git - evince.git/commitdiff
Only use eggdesktopfile on xsmp smclient backend
authorChristian Persch <chpe@gnome.org>
Sun, 14 Jun 2009 13:34:27 +0000 (15:34 +0200)
committerChristian Persch <chpe@gnome.org>
Sun, 14 Jun 2009 13:34:27 +0000 (15:34 +0200)
shell/main.c

index 41fd85f12a6fa08d54bf22fecf4e1ae23308bb04..f2321e118a2c2d929d3ff01cfc967e6bdcae7283 100644 (file)
@@ -442,13 +442,13 @@ main (int argc, char *argv[])
 
        ev_stock_icons_init ();
 
-#if defined(WITH_SMCLIENT) && !defined(G_OS_WIN32)
+#if defined(WITH_SMCLIENT) && defined(GDK_WINDOWING_X11)
        egg_set_desktop_file (GNOMEDATADIR "/applications/evince.desktop");
 #else
        /* Manually set name and icon */
        g_set_application_name (_("Document Viewer"));
        gtk_window_set_default_icon_name ("evince");
-#endif /* WITH_SMCLIENT && !G_OS_WIN32 */
+#endif /* WITH_SMCLIENT && GDK_WINDOWING_X11 */
 
        ev_application_load_session (EV_APP);
        load_files (file_arguments, args);