comparison src/paranormal/plugin.c @ 151:3c8ff183766f trunk

[svn] - fix some window titles
author nenolod
date Mon, 30 Oct 2006 23:08:58 -0800
parents a089e72f4c25
children 7b8588691a95
comparison
equal deleted inserted replaced
150:a089e72f4c25 151:3c8ff183766f
362 va_start (ap, fmt); 362 va_start (ap, fmt);
363 errstr = g_strdup_vprintf (fmt, ap); 363 errstr = g_strdup_vprintf (fmt, ap);
364 va_end (ap); 364 va_end (ap);
365 365
366 dialog=gtk_dialog_new(); 366 dialog=gtk_dialog_new();
367 gtk_window_set_title(GTK_WINDOW(dialog), "Error - " PACKAGE " " VERSION); 367 gtk_window_set_title(GTK_WINDOW(dialog), "Error - Paranormal Visualization Studio - " VERSION);
368 gtk_container_border_width (GTK_CONTAINER (dialog), 8); 368 gtk_container_border_width (GTK_CONTAINER (dialog), 8);
369 369
370 label=gtk_label_new(errstr); 370 label=gtk_label_new(errstr);
371 fprintf (stderr, "%s\n", errstr); 371 fprintf (stderr, "%s\n", errstr);
372 g_free (errstr); 372 g_free (errstr);
403 403
404 /* now report the error... */ 404 /* now report the error... */
405 va_start (ap, fmt); 405 va_start (ap, fmt);
406 errstr = g_strdup_vprintf (fmt, ap); 406 errstr = g_strdup_vprintf (fmt, ap);
407 va_end (ap); 407 va_end (ap);
408 fprintf (stderr, PACKAGE ": %s\n", errstr); 408 fprintf (stderr, "Paranormal-CRITICAL **: %s\n", errstr);
409 409
410 /* This is the easiest way of making sure we don't 410 /* This is the easiest way of making sure we don't
411 get stuck trying to lock a mutex that this thread 411 get stuck trying to lock a mutex that this thread
412 already owns since this fn can be called from either 412 already owns since this fn can be called from either
413 thread */ 413 thread */
417 if (! err_dialog) 417 if (! err_dialog)
418 { 418 {
419 GtkWidget *close; 419 GtkWidget *close;
420 420
421 err_dialog=gtk_dialog_new(); 421 err_dialog=gtk_dialog_new();
422 gtk_window_set_title (GTK_WINDOW (err_dialog), "Error - " PACKAGE " " VERSION); 422 gtk_window_set_title (GTK_WINDOW (err_dialog), "Error - Paranormal Visualization Studio - " VERSION);
423 gtk_window_set_policy (GTK_WINDOW (err_dialog), FALSE, FALSE, FALSE); 423 gtk_window_set_policy (GTK_WINDOW (err_dialog), FALSE, FALSE, FALSE);
424 gtk_widget_set_usize (err_dialog, 400, 200); 424 gtk_widget_set_usize (err_dialog, 400, 200);
425 gtk_container_border_width (GTK_CONTAINER (err_dialog), 8); 425 gtk_container_border_width (GTK_CONTAINER (err_dialog), 8);
426 426
427 textbuf = gtk_text_buffer_new(NULL); 427 textbuf = gtk_text_buffer_new(NULL);