X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=src%2Fgrip.c;h=f0e2f2fd22ef50ed2362c7ddaabd595983961406;hb=c6cd8ab8023a92c481cfbae3922f71dfa0f9ca4e;hp=1183d87ed9563732aa798370f0027f52b8f6a58a;hpb=0038fb69bf115cd2b0d4ff86734fed309ff510bc;p=hvgrip.git diff --git a/src/grip.c b/src/grip.c index 1183d87..f0e2f2f 100644 --- a/src/grip.c +++ b/src/grip.c @@ -29,6 +29,8 @@ #include #include #include + +#include "config.h" #include "grip.h" #include "discdb.h" #include "cdplay.h" @@ -320,10 +322,10 @@ GtkWidget *GripNew(const gchar* geometry,char *device,char *scsi_device, CheckNewDisc(ginfo,FALSE); /* Check if we're running this version for the first time */ - if(strcmp(VERSION,ginfo->version)!=0) { - strcpy(ginfo->version,VERSION); + if (strcmp(PACKAGE_VERSION, ginfo->version) != 0) { + strcpy(ginfo->version, PACKAGE_VERSION); - sscanf(VERSION,"%d.%d.%d",&major,&minor,&point); + sscanf(PACKAGE_VERSION, "%d.%d.%d", &major, &minor, &point); /* Check if we have a dev release */ if(minor%2) { @@ -585,7 +587,7 @@ void MakeAboutPage(GripGUI *uinfo) vbox2=gtk_vbox_new(TRUE,0); - sprintf(versionbuf,_("Version %s"),VERSION); + sprintf(versionbuf, _("Version %s"), PACKAGE_VERSION); label=gtk_label_new(versionbuf); gtk_widget_set_style(label,uinfo->style_wb); gtk_box_pack_start(GTK_BOX(vbox2),label,FALSE,FALSE,0);