mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Fix 'init_ui()' so that it can change argc/argv
That's what gtk_init() does with gtk-specific arguments. IOW, if you do things like subsurface --g-fatal-warnings dives.xml to get a real abort on gtk warnings, gtk_init needs to be able to actually change argc/argv. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
43601f6546
commit
e4bfb65972
3 changed files with 4 additions and 4 deletions
2
dive.h
2
dive.h
|
|
@ -257,7 +257,7 @@ extern void add_event(struct dive *dive, int time, int type, int flags, int valu
|
|||
|
||||
/* UI related protopypes */
|
||||
|
||||
extern void init_ui(int argc, char **argv);
|
||||
extern void init_ui(int *argcp, char ***argvp);
|
||||
|
||||
extern void run_ui(void);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue