]> git.street.me.uk Git - andy/viking.git/blobdiff - src/vikwindow.h
[QA] Fix clang warning: format string is not a string literal
[andy/viking.git] / src / vikwindow.h
index cd0a0404cfb64d781264322c9663f8d81a3bd253..7497613b9db38b610b1927795c8e91d7c3263a95 100644 (file)
@@ -46,7 +46,6 @@ struct _VikWindowClass
   GtkWindowClass window_class;
   void (* newwindow) (VikWindow *vw);
   void (* openwindow) (VikWindow *vw, GSList *filenames);
-  void (* statusbarupdate) (VikWindow *vw, const gchar *message, vik_statusbar_type_t vs_type);
 };
 
 GType vik_window_get_type ();
@@ -54,6 +53,8 @@ GType vik_window_get_type ();
 // To call from main to start things off:
 VikWindow *vik_window_new_window ();
 
+void vik_window_new_window_finish ( VikWindow *vw );
+
 GtkWidget *vik_window_get_drawmode_button ( VikWindow *vw, VikViewportDrawMode mode );
 gboolean vik_window_get_pan_move ( VikWindow *vw );
 void vik_window_open_file ( VikWindow *vw, const gchar *filename, gboolean changefilename );
@@ -62,8 +63,9 @@ void vik_window_selected_layer(VikWindow *vw, struct _VikLayer *vl);
 struct _VikViewport * vik_window_viewport(VikWindow *vw);
 struct _VikLayersPanel * vik_window_layers_panel(VikWindow *vw);
 struct _VikStatusbar * vik_window_get_statusbar(VikWindow *vw);
-// Only for use from background threads:
-void vik_window_signal_statusbar_update (VikWindow *vw, const gchar* message, vik_statusbar_type_t vs_type);
+const gchar *vik_window_get_filename(VikWindow *vw);
+
+void vik_window_statusbar_update (VikWindow *vw, const gchar* message, vik_statusbar_type_t vs_type);
 
 void vik_window_set_redraw_trigger(struct _VikLayer *vl);
 
@@ -94,6 +96,7 @@ typedef struct {
   VikViewport *vvp;
   gpointer *vtl; // VikTrwlayer
   gboolean holding;
+  gboolean moving;
   gboolean is_waypoint; // otherwise a track
   GdkGC *gc;
   int oldx, oldy;