Move anchored menu placement strategy to Gtkmm2ext utils
[ardour.git] / libs / gtkmm2ext / gtkmm2ext / utils.h
index bedaf1108e59d8e24938b7bc5fbea29df40e6e08..bd09e299123cdc0a8c12ecf1be152921a8a61c67 100644 (file)
@@ -29,6 +29,7 @@
 
 #include <gtkmm/container.h>
 #include <gtkmm/filechooser.h>
+#include <gtkmm/menu.h>
 #include <gtkmm/treeview.h>
 #include <gdkmm/window.h> /* for WMDecoration */
 #include <gdkmm/pixbuf.h>
@@ -96,6 +97,11 @@ namespace Gtkmm2ext {
                                                                       int clip_height,
                                                                       Gdk::Color fg);
 
+       LIBGTKMM2EXT_API void position_menu_anchored (const Gtk::Menu* const menu,
+                                                     Gtk::Widget* const anchor,
+                                                     const std::string& selected,
+                                                     int& x, int& y, bool& push_in);
+
        LIBGTKMM2EXT_API void set_popdown_strings (Gtk::ComboBoxText&,
                                  const std::vector<std::string>&);