~ubuntu-core-dev/update-notifier/ubuntu

« back to all changes in this revision

Viewing changes to src/crash.c

  • Committer: Michael Vogt
  • Date: 2011-01-04 12:51:48 UTC
  • Revision ID: michael.vogt@ubuntu.com-20110104125148-3nfmz6o0u8yoym5d
src/crash.c: make -Wall clean

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
   gchar *msg = _("System program problem detected");
48
48
   gchar *descr = _("Do you want to report the problem "
49
49
                    "now?");
50
 
   dialog = gtk_message_dialog_new (NULL,
 
50
   dialog = (GtkDialog*)gtk_message_dialog_new (NULL,
51
51
                                    GTK_DIALOG_DESTROY_WITH_PARENT,
52
52
                                    GTK_MESSAGE_QUESTION,
53
53
                                    GTK_BUTTONS_NONE,
54
 
                                    msg);
55
 
   gtk_message_dialog_format_secondary_text(dialog, descr);
 
54
                                    "%s", msg);
 
55
   gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(dialog),
 
56
                                            "%s", descr);
56
57
   gtk_dialog_add_button(dialog, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL);
57
58
   gtk_dialog_add_button(dialog, _("Report problem…"), GTK_RESPONSE_ACCEPT);
58
59
   int res = gtk_dialog_run(dialog);
59
 
   gtk_widget_destroy(dialog);
 
60
   gtk_widget_destroy(GTK_WIDGET(dialog));
60
61
   if (res == GTK_RESPONSE_ACCEPT)
61
62
      return TRUE;
62
63
   return FALSE;
229
230
                          ta);
230
231
 
231
232
        /* Check for crashes for the first time */
232
 
        g_timeout_add_seconds(1, crashreport_check_initially, ta);
 
233
        g_timeout_add_seconds(1, (GSourceFunc)crashreport_check_initially, ta);
233
234
}