Changeset 2200
- Timestamp:
- 06/18/07 12:19:25
- Files:
-
- trunk/libtinymail-camel/tny-camel-send-queue.c (modified) (1 diff)
- trunk/libtinymail/tny-send-queue.h (modified) (1 diff)
- trunk/tests/c-demo/tny-demoui-summary-view.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libtinymail-camel/tny-camel-send-queue.c
r2198 r2200 58 58 ErrorInfo *info = data; 59 59 g_signal_emit (info->self, tny_send_queue_signals [TNY_SEND_QUEUE_ERROR_HAPPENED], 60 2, info->msg, info->error);60 0, info->msg, info->error); 61 61 return FALSE; 62 62 } trunk/libtinymail/tny-send-queue.h
r2198 r2200 55 55 /* Signals */ 56 56 void (*msg_sent) (TnySendQueue *self, TnyMsg *msg, guint nth, guint total, gpointer user_data); 57 void (*error_happened) (TnySendQueue *self, TnyMsg *msg, GError *err, g uint nth, guint total, gpointer user_data);57 void (*error_happened) (TnySendQueue *self, TnyMsg *msg, GError *err, gpointer user_data); 58 58 59 59 /* methods */ trunk/tests/c-demo/tny-demoui-summary-view.c
r2198 r2200 192 192 } 193 193 194 static void 195 on_response (GtkDialog *dialog, gint arg1, gpointer user_data) 196 { 197 gtk_widget_destroy (GTK_WIDGET (dialog)); 198 } 199 194 200 static void 195 on_send_queue_error_happened (TnySendQueue *self, TnyMsg *msg, GError *err, g uint nth, guint total, gpointer user_data)196 { 197 GtkWidget *dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL,201 on_send_queue_error_happened (TnySendQueue *self, TnyMsg *msg, GError *err, gpointer user_data) 202 { 203 GtkWidget *dialog = gtk_message_dialog_new (NULL, 0, 198 204 GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, err->message); 199 g tk_dialog_run (GTK_DIALOG (dialog));200 gtk_widget_ destroy(dialog);205 g_signal_connect (G_OBJECT (dialog), "response", G_CALLBACK (on_response), NULL); 206 gtk_widget_show_all (dialog); 201 207 202 208 return;
