/* icons */
-#define MODEST_APP_ICON PIXMAP_PREFIX "modest-icon.png"
+#define MODEST_APP_ICON "qgn_list_messagin"
+#define MODEST_APP_MSG_VIEW_ICON "qgn_list_messagin_viewer"
+#define MODEST_APP_MSG_EDIT_ICON "qgn_list_messagin_editor"
#define MODEST_HEADER_ICON_READ "qgn_list_messagin_mail"
#define MODEST_HEADER_ICON_UNREAD "qgn_list_messagin_mail_unread"
#include <widgets/modest-msg-edit-window.h>
#include <widgets/modest-account-view-window.h>
-
+#include "modest-platform.h"
#include "modest-widget-memory.h"
#include "modest-window-priv.h"
#include "modest-main-window-ui.h"
GtkActionGroup *action_group;
GError *error = NULL;
TnyFolderStoreQuery *query;
+ GdkPixbuf *window_icon;
self = MODEST_MAIN_WINDOW(g_object_new(MODEST_TYPE_MAIN_WINDOW, NULL));
priv = MODEST_MAIN_WINDOW_GET_PRIVATE(self);
gtk_container_add (GTK_CONTAINER(self), priv->main_vbox);
restore_sizes (MODEST_MAIN_WINDOW(self));
-
- gtk_window_set_title (GTK_WINDOW(self), _("Modest"));
- gtk_window_set_icon_from_file (GTK_WINDOW(self), MODEST_APP_ICON, NULL);
- gtk_widget_show_all (priv->main_vbox);
+
+ /* Set window icon */
+ window_icon = modest_platform_get_icon (MODEST_APP_ICON);
+ gtk_window_set_icon (GTK_WINDOW (self), window_icon);
/* /\* should we hide the toolbar? *\/ */
/* if (!modest_conf_get_bool (modest_runtime_get_conf (), MODEST_CONF_SHOW_TOOLBAR, NULL)) */
#include <modest-runtime.h>
+#include "modest-platform.h"
#include "modest-icon-names.h"
#include "modest-widget-memory.h"
#include "modest-window-priv.h"
ModestMsgEditWindowPrivate *priv;
GtkActionGroup *action_group;
GError *error = NULL;
+ GdkPixbuf *window_icon = NULL;
g_return_val_if_fail (msg, NULL);
set_msg (MODEST_MSG_EDIT_WINDOW (obj), msg);
text_buffer_refresh_attributes (WP_TEXT_BUFFER (priv->text_buffer), MODEST_MSG_EDIT_WINDOW (obj));
+
+ /* Set window icon */
+ window_icon = modest_platform_get_icon (MODEST_APP_MSG_EDIT_ICON);
+ gtk_window_set_icon (GTK_WINDOW (obj), window_icon);
return (ModestWindow*)obj;
}
#include <tny-account-store.h>
#include <tny-simple-list.h>
#include <tny-header.h>
+#include "modest-platform.h"
#include <modest-tny-msg.h>
#include <modest-msg-view-window.h>
#include <modest-main-window-ui.h>
ModestWindowPrivate *parent_priv;
GtkActionGroup *action_group;
GError *error = NULL;
+ GdkPixbuf *window_icon = NULL;
g_return_val_if_fail (msg, NULL);
modest_msg_view_window_update_dimmed (MODEST_MSG_VIEW_WINDOW (obj));
+ /* Set window icon */
+ window_icon = modest_platform_get_icon (MODEST_APP_MSG_VIEW_ICON);
+ gtk_window_set_icon (GTK_WINDOW (obj), window_icon);
+
gtk_widget_grab_focus (priv->msg_view);
return MODEST_WINDOW(obj);
X-Osso-Service=org.maemo.modest
X-Osso-Type=application/x-executable
-Icon=modest-icon
-X-Window-Icon=modest-icon
-X-Window-Icon-Dimmed=modest-icon-dimmed
+Icon=qgn_list_messagin
+X-Window-Icon=qgn_list_messagin
+X-Window-Icon-Dimmed=qgn_list_messagin
StartupWMClass=modest
g_thread_init(NULL);
gdk_threads_init ();
+ /* Set application name */
+ g_set_application_name (_("FIXME Modest"));
+
my_singletons = modest_singletons_new ();
if (!my_singletons) {
g_printerr ("modest: failed to initialize singletons\n");