move ui_scale static member from ARDOUR_UI to GtkUI
authorPaul Davis <paul@linuxaudiosystems.com>
Thu, 23 Jul 2015 12:59:32 +0000 (08:59 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 22 Feb 2016 20:31:22 +0000 (15:31 -0500)
libs/gtkmm2ext/gtk_ui.cc
libs/gtkmm2ext/gtkmm2ext/gtk_ui.h

index b550b6cf8c2ad8147fc1f8a39e50f6b4c619241e..64fef47ca5d2e02ae110a22cde06fb9ebf622649 100644 (file)
@@ -53,7 +53,8 @@ using namespace Glib;
 using namespace PBD;
 using std::map;
 
-UI       *UI::theGtkUI = 0;
+UI*   UI::theGtkUI = 0;
+float UI::ui_scale = 1.0;
 
 BaseUI::RequestType Gtkmm2ext::NullMessage = BaseUI::new_request_type();
 BaseUI::RequestType Gtkmm2ext::ErrorMessage = BaseUI::new_request_type();
index acddbe7c1172bd3dd1dd9fbc13394444b9c86c26..f0f34fb4d8b9a2d99e3825be859caabb34f371fe 100644 (file)
@@ -167,6 +167,7 @@ class LIBGTKMM2EXT_API UI : public AbstractUI<UIRequest>
        sigc::signal<void> theme_changed;
 
        static bool just_hide_it (GdkEventAny *, Gtk::Window *);
+       static float ui_scale;
 
   protected:
        virtual void handle_fatal (const char *);