Changeset 2200

Show
Ignore:
Timestamp:
06/18/07 12:19:25
Author:
pvanhoof
Message:

Error reporting in the tnysendqueue

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libtinymail-camel/tny-camel-send-queue.c

    r2198 r2200  
    5858        ErrorInfo *info = data; 
    5959        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); 
    6161        return FALSE; 
    6262} 
  • trunk/libtinymail/tny-send-queue.h

    r2198 r2200  
    5555        /* Signals */ 
    5656        void (*msg_sent) (TnySendQueue *self, TnyMsg *msg, guint nth, guint total, gpointer user_data); 
    57         void (*error_happened) (TnySendQueue *self, TnyMsg *msg, GError *err, guint nth, guint total, gpointer user_data); 
     57        void (*error_happened) (TnySendQueue *self, TnyMsg *msg, GError *err, gpointer user_data); 
    5858 
    5959        /* methods */ 
  • trunk/tests/c-demo/tny-demoui-summary-view.c

    r2198 r2200  
    192192} 
    193193 
     194static void 
     195on_response (GtkDialog *dialog, gint arg1, gpointer user_data) 
     196{ 
     197        gtk_widget_destroy (GTK_WIDGET (dialog)); 
     198} 
     199 
    194200static void  
    195 on_send_queue_error_happened (TnySendQueue *self, TnyMsg *msg, GError *err, guint nth, guint total, gpointer user_data) 
    196 { 
    197         GtkWidget *dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL
     201on_send_queue_error_happened (TnySendQueue *self, TnyMsg *msg, GError *err, gpointer user_data) 
     202{ 
     203        GtkWidget *dialog = gtk_message_dialog_new (NULL, 0
    198204                GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, err->message); 
    199         gtk_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); 
    201207 
    202208        return;