mirror of
https://github.com/softwarejanitor/calvados.git
synced 2024-10-31 10:17:58 +00:00
29 lines
536 B
C
29 lines
536 B
C
|
#include <gtk/gtk.h>
|
||
|
|
||
|
#include "calvados.h"
|
||
|
|
||
|
/*
|
||
|
*
|
||
|
* show_error()
|
||
|
*
|
||
|
* Show an error message dialog box
|
||
|
*
|
||
|
*/
|
||
|
void show_error(GtkWidget *widget, gpointer data, char *message)
|
||
|
{
|
||
|
GtkWidget *dialog;
|
||
|
|
||
|
/*g_print("Error dialog goes here\n");*/
|
||
|
|
||
|
dialog = gtk_message_dialog_new(NULL,
|
||
|
GTK_DIALOG_DESTROY_WITH_PARENT,
|
||
|
GTK_MESSAGE_ERROR,
|
||
|
GTK_BUTTONS_OK,
|
||
|
message);
|
||
|
|
||
|
gtk_window_set_title(GTK_WINDOW(dialog), "Error");
|
||
|
gtk_dialog_run(GTK_DIALOG(dialog));
|
||
|
gtk_widget_destroy(dialog);
|
||
|
}
|
||
|
|