gtkballs.c: store gtkballs-accel.map in get_config_dir_file()
This commit is contained in:
parent
1cb51e3155
commit
11fc1fb321
@ -199,14 +199,14 @@ int main(int argc, char **argv)
|
|||||||
mw_set_hi_score(scoreboard[0].score);
|
mw_set_hi_score(scoreboard[0].score);
|
||||||
mw_set_user_score(0);
|
mw_set_user_score(0);
|
||||||
|
|
||||||
mapfile = g_strconcat(getenv("HOME"), G_DIR_SEPARATOR_S, ".gtkballs",
|
mapfile = get_config_dir_file ("gtkballs-accel.map");
|
||||||
G_DIR_SEPARATOR_S, "accel.map", NULL);
|
|
||||||
gtk_accel_map_load (mapfile);
|
gtk_accel_map_load (mapfile);
|
||||||
|
|
||||||
/* enter main application loop */
|
/* enter main application loop */
|
||||||
gtk_main();
|
gtk_main();
|
||||||
|
|
||||||
gtk_accel_map_save (mapfile);
|
gtk_accel_map_save (mapfile);
|
||||||
|
g_free (mapfile);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user