G_BEGIN_DECLS
-
-#ifndef GTK_STOCK_FULLSCREEN
-#define GTK_STOCK_FULLSCREEN NULL
-#endif /*GTK_STOCK_FULLSCREEN*/
-
-
/* Action entries */
static const GtkActionEntry modest_action_entries [] = {
self = MODEST_MAIL_OPERATION (user_data);
priv = MODEST_MAIL_OPERATION_GET_PRIVATE (self);
+ g_message (__FUNCTION__);
+
if (*err) {
priv->error = g_error_copy (*err);
priv->status = MODEST_MAIL_OPERATION_STATUS_FAILED;
priv->total = 0;
priv->done = 0;
priv->status = MODEST_MAIL_OPERATION_STATUS_IN_PROGRESS;
-
+
/* Get subscribed folders & refresh them */
folders = TNY_LIST (tny_simple_list_new ());
+ g_message ("tny_folder_store_get_folders_async");
tny_folder_store_get_folders_async (TNY_FOLDER_STORE (store_account),
folders, update_folders_cb, NULL, self);
mail_op = modest_mail_operation_new ();
modest_mail_operation_queue_add (modest_runtime_get_mail_operation_queue (), mail_op);
modest_mail_operation_update_account (mail_op, TNY_STORE_ACCOUNT(tny_account));
+
g_object_unref (G_OBJECT(tny_account));
g_object_unref (G_OBJECT (mail_op));
ModestMainWindowStyle style;
key = _modest_widget_memory_get_keyname (name, MODEST_WIDGET_MEMORY_PARAM_WINDOW_STYLE);
- if (modest_conf_key_exists (conf, key, NULL))
- style = (ModestMainWindowStyle) modest_conf_get_int (conf, key, NULL);
- g_free (key);
-
- modest_main_window_set_style (MODEST_MAIN_WINDOW (win), style);
+ if (modest_conf_key_exists (conf, key, NULL)) {
+ style = (ModestMainWindowStyle) modest_conf_get_int (conf, key, NULL);
+ modest_main_window_set_style (MODEST_MAIN_WINDOW (win), style);
+ g_free (key);
+ }
}
return TRUE;
typedef HildonWindowClass ModestWindowParentClass;
#endif /*MODEST_PLATFORM_MAEMO */
+#ifndef GTK_STOCK_FULLSCREEN
+#define GTK_STOCK_FULLSCREEN ""
+#endif /*GTK_STOCK_FULLSCREEN*/
+
/* convenience macros */
#define MODEST_TYPE_WINDOW (modest_window_get_type())
#define MODEST_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),MODEST_TYPE_WINDOW,ModestWindow))