~midori/midori/trunk

« back to all changes in this revision

Viewing changes to midori/midori-frontend.c

  • Committer: tuxator at o2
  • Date: 2016-01-10 13:08:08 UTC
  • mto: This revision was merged to the branch mainline in revision 7089.
  • Revision ID: tuxator@o2.pl-20160110130808-q2vrrt29l6nlz1yc
Add helper function for checking if file exists

Show diffs side-by-side

added added

removed removed

Lines of Context:
383
383
        NULL);
384
384
 
385
385
    gchar* crash_log = g_build_filename (midori_paths_get_runtime_dir (), "gdb.bt", NULL);
386
 
    if (g_access (crash_log, F_OK) == 0)
 
386
    if (midori_paths_check_file_exists (crash_log))
387
387
    {
388
388
        GtkWidget* log_button = gtk_button_new_with_mnemonic (_("Show last crash _log"));
389
389
        g_signal_connect_data (log_button, "clicked",