#include <stdio.h>
#include <stdlib.h>
#include <gtk/gtk.h>
-#include <gnome.h>
+
+#include "common.h"
#include "dialog.h"
-void DisplayMsg(char *msg)
+void DisplayErrorMsg(GtkWindow *window, char *msg)
{
- gnome_ok_dialog(msg);
+ GtkWidget *dialog;
+
+ dialog = gtk_message_dialog_new(window,
+ GTK_DIALOG_DESTROY_WITH_PARENT,
+ GTK_MESSAGE_ERROR,
+ GTK_BUTTONS_CLOSE,
+ msg);
+ gtk_dialog_run(GTK_DIALOG (dialog));
+ gtk_widget_destroy(dialog);
}
void BoolDialog(char *question,char *yes,GtkSignalFunc yesfunc,
*/
/* Message routines */
-void DisplayMsg(char *msg);
+void DisplayErrorMsg(GtkWindow *window, char *msg);
void BoolDialog(char *question,char *yes,GtkSignalFunc yesfunc,
gpointer yesdata,
char *no,GtkSignalFunc nofunc,gpointer nodata);
if(!CDInitDevice(ginfo->cd_device,&(ginfo->disc))) {
sprintf(buf,_("Error: Unable to initialize [%s]\n"),ginfo->cd_device);
- DisplayMsg(buf);
+ DisplayErrorMsg(GTK_WINDOW(app), buf);
}
CDStat(&(ginfo->disc),TRUE);