diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-04-14 11:31:26 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-04-15 21:49:14 -0700 |
commit | 4c775289a798154ec97b01490c9da7e63ddc320c (patch) | |
tree | e91419964197d175446a19d3dd448093b0906a63 /display-gtk.h | |
parent | bfe21343ca1f4c26e3fed2a3f446901a91d0b92e (diff) | |
download | subsurface-4c775289a798154ec97b01490c9da7e63ddc320c.tar.gz |
Separate Gtk related code from core logic: info
Surprisingly straight forward, just a couple of places where we really mix
significant logic with UI code (for example setting the window title).
I had to move amount_selected from display-gtk.h to display.h - I guess
the number of dives that are selected is UI independent. But I wonder if
we still will track this as a global variable in a Qt UI (since the Gtk
selection logic is the main reason this existed in the first place).
Added a new info.h files for the necessary declarations.
This should make no difference to functionality.
Cherry-picked from Qt branch; fixed merge issues mostly caused by
dive_tags and Makefile changes.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'display-gtk.h')
-rw-r--r-- | display-gtk.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/display-gtk.h b/display-gtk.h index 365e192e5..627988784 100644 --- a/display-gtk.h +++ b/display-gtk.h @@ -77,8 +77,6 @@ extern GtkWidget *create_label(const char *fmt, ...); extern gboolean icon_click_cb(GtkWidget *w, GdkEventButton *event, gpointer data); -extern unsigned int amount_selected; - extern void process_selected_dives(void); typedef void (*data_func_t)(GtkTreeViewColumn *col, |