connect_when = modest_conf_get_int (modest_runtime_get_conf (),
MODEST_CONF_UPDATE_WHEN_CONNECTED_BY, NULL);
-
+
/* Perform a send and receive if the user selected to connect
via any mean or if the current connection method is the
same as the one specified by the user */
}
-static gint
+static gint
on_send_receive(GArray *arguments, gpointer data, osso_rpc_t * retval)
-{
+{
TnyDevice *device = modest_runtime_get_device ();
if (!tny_device_is_online (device))
modest_platform_connect_and_perform (NULL, FALSE, NULL, on_send_receive_performer, NULL);
else
on_send_receive_performer (FALSE, NULL, NULL, NULL, NULL);
-
+
return OSSO_OK;
}
-static gint
+static gint
on_open_default_inbox(GArray * arguments, gpointer data, osso_rpc_t * retval)
{
g_idle_add(on_idle_top_application, NULL);
-
+
return OSSO_OK;
}
}
gdk_threads_leave (); /* CHECKED */
-
+
return FALSE; /* Do not call this callback again. */
}
#else
-static gboolean
+static gboolean
on_idle_top_application (gpointer user_data)
{
ModestWindow *main_win;
gboolean new_window = FALSE;
-
+
/* This is a GDK lock because we are an idle callback and
* the code below is or does Gtk+ code */
gdk_threads_enter (); /* CHECKED */
-
+
main_win = modest_window_mgr_get_main_window (modest_runtime_get_window_mgr (),
FALSE);
}
gdk_threads_leave (); /* CHECKED */
-
+
return FALSE; /* Do not call this callback again. */
}
#endif
g_warning ("%s: header list is empty", __FUNCTION__);
return;
}
-
+
if (!show_visual) {
modest_platform_push_email_notification ();
/* We do a return here to avoid indentation with an else */
GSList *notifications_list = NULL;
/* Get previous notifications ids */
- notifications_list = modest_conf_get_list (modest_runtime_get_conf (),
- MODEST_CONF_NOTIFICATION_IDS,
+ notifications_list = modest_conf_get_list (modest_runtime_get_conf (),
+ MODEST_CONF_NOTIFICATION_IDS,
MODEST_CONF_VALUE_INT, NULL);
iter = tny_list_create_iterator (header_list);
if (!header_view) {
modest_platform_information_banner (NULL, NULL, _CS("ckdg_ib_nothing_to_sort"));
-
+
return;
}
/* Show sorting dialog */
- modest_utils_run_sort_dialog (GTK_WINDOW (window), MODEST_SORT_HEADERS);
+ modest_utils_run_sort_dialog (GTK_WINDOW (window), MODEST_SORT_HEADERS);
}
static void