]> www.fi.muni.cz Git - evince.git/commitdiff
Move the egg_set_desktop_file() call to main and remove
authorCarlos Garcia Campos <carlosgc@gnome.org>
Sun, 2 Nov 2008 10:24:58 +0000 (10:24 +0000)
committerCarlos Garcia Campos <carlosgc@src.gnome.org>
Sun, 2 Nov 2008 10:24:58 +0000 (10:24 +0000)
2008-11-02  Carlos Garcia Campos  <carlosgc@gnome.org>

* shell/ev-application.c: (ev_application_init_session):
* shell/main.c: (main):

Move the egg_set_desktop_file() call to main and remove
gtk_window_set_default_icon_name() since it's already called by
egg_set_desktop_file()

svn path=/trunk/; revision=3250

ChangeLog
shell/ev-application.c
shell/main.c

index fb7fb075f23f704e16c21b291a4bf32eb203a08a..9d4cb7ad77db5e624b47bb405f5e6366ac58e02a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2008-11-02  Carlos Garcia Campos  <carlosgc@gnome.org>
+
+       * shell/ev-application.c: (ev_application_init_session):
+       * shell/main.c: (main):
+
+       Move the egg_set_desktop_file() call to main and remove
+       gtk_window_set_default_icon_name() since it's already called by
+       egg_set_desktop_file()
+       
 2008-11-01  Carlos Garcia Campos  <carlosgc@gnome.org>
 
        * libdocument/ev-file-helpers.c: (ev_xfer_uri_simple):
index 49d10f4bbbdf5636167dcd9d41d818e70642160b..9637940e6e270ade87a2e321b463e2bf6a507514 100644 (file)
@@ -31,7 +31,6 @@
 
 #include "totem-scrsaver.h"
 #include "eggsmclient.h"
-#include "eggdesktopfile.h"
 
 #include "ev-application.h"
 #include "ev-document-factory.h"
@@ -227,8 +226,6 @@ smclient_quit_cb (EggSMClient   *client,
 static void
 ev_application_init_session (EvApplication *application)
 {
-       egg_set_desktop_file (GNOMEDATADIR "/applications/evince.desktop");
-       
        application->smclient = egg_sm_client_get ();
        g_signal_connect (application->smclient, "save_state",
                          G_CALLBACK (smclient_save_state_cb),
index ff8eafa297d28f30a0b1b936a2675efefaf43d97..bb1e1c8f60d365602c8cb972106171855a8889f2 100644 (file)
@@ -37,6 +37,7 @@
 #include "ev-metadata-manager.h"
 #include "ev-stock-icons.h"
 #include "eggsmclient.h"
+#include "eggdesktopfile.h"
 
 static gchar   *ev_page_label;
 static gchar   *ev_find_string;
@@ -372,7 +373,8 @@ main (int argc, char *argv[])
 
        ev_file_helpers_init ();
        ev_stock_icons_init ();
-       gtk_window_set_default_icon_name ("evince");
+       
+       egg_set_desktop_file (GNOMEDATADIR "/applications/evince.desktop");
 
        if (!ev_application_load_session (EV_APP))
                load_files (file_arguments, args);