projects
/
hvgrip.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace gnome_app_warning() with Gtk dialog
[hvgrip.git]
/
src
/
grip.c
diff --git
a/src/grip.c
b/src/grip.c
index
4d817af
..
555e648
100644
(file)
--- a/
src/grip.c
+++ b/
src/grip.c
@@
-320,7
+320,7
@@
GtkWidget *GripNew(const gchar* geometry,char *device,char *scsi_device,
/* Check if we have a dev release */
if(minor%2) {
/* Check if we have a dev release */
if(minor%2) {
-
gnome_app_warning((GnomeApp *)ginfo->gui_info.app
,
+
DisplayWarningMsg(GTK_WINDOW(ginfo->gui_info.app)
,
_("This is a development version of Grip. If you encounter problems, you are encouraged to revert to the latest stable version."));
}
}
_("This is a development version of Grip. If you encounter problems, you are encouraged to revert to the latest stable version."));
}
}
@@
-918,7
+918,7
@@
static void DoLoadConfig(GripInfo *ginfo)
if(confret<0) {
/* Check if the config is out of date */
if(confret==-2) {
if(confret<0) {
/* Check if the config is out of date */
if(confret==-2) {
-
gnome_app_warning((GnomeApp *)ginfo->gui_info.app
,
+
DisplayWarningMsg(GTK_WINDOW(ginfo->gui_info.app)
,
_("Your config file is out of date -- "
"resetting to defaults.\n"
"You will need to re-configure Grip.\n"
_("Your config file is out of date -- "
"resetting to defaults.\n"
"You will need to re-configure Grip.\n"
@@
-1012,7
+1012,7
@@
void DoSaveConfig(GripInfo *ginfo)
g_snprintf(filename,256,"%s/%s",getenv("HOME"),ginfo->config_filename);
if(!SaveConfig(filename,"GRIP",2,cfg_entries))
g_snprintf(filename,256,"%s/%s",getenv("HOME"),ginfo->config_filename);
if(!SaveConfig(filename,"GRIP",2,cfg_entries))
-
gnome_app_warning((GnomeApp *)ginfo->gui_info.app
,
+
DisplayWarningMsg(GTK_WINDOW(ginfo->gui_info.app)
,
_("Error: Unable to save config file."));
SaveRipperConfig(ginfo,ginfo->selected_ripper);
_("Error: Unable to save config file."));
SaveRipperConfig(ginfo,ginfo->selected_ripper);