new file
[ardour.git] / gtk2_ardour / utils.h
index cf563560a4c146241b81daaf9ae054cbde79dd9c..0df04cb0f8525be9fbfe68759aa8bb34a2add235 100644 (file)
@@ -27,6 +27,7 @@
 #include <libgnomecanvasmm/line.h>
 #include <gdkmm/types.h>
 #include <glibmm/ustring.h>
+#include <gtkmm/menushell.h>
 
 #include "canvas.h"
 
@@ -60,6 +61,7 @@ int pixel_width (const Glib::ustring& str, Pango::FontDescription& font);
 
 gint   just_hide_it (GdkEventAny*, Gtk::Window*);
 void   allow_keyboard_focus (bool);
+void add_item_with_sensitivity (Gtk::Menu_Helpers::MenuList &, Gtk::Menu_Helpers::MenuElem, bool);
 
 unsigned char* xpm2rgb  (const char** xpm, uint32_t& w, uint32_t& h);
 unsigned char* xpm2rgba (const char** xpm, uint32_t& w, uint32_t& h);
@@ -80,10 +82,12 @@ bool canvas_item_visible (ArdourCanvas::Item* item);
 
 void set_color (Gdk::Color&, int);
 
+bool relay_key_press (GdkEventKey* ev, Gtk::Window* win);
 bool key_press_focus_accelerator_handler (Gtk::Window& window, GdkEventKey* ev);
 bool possibly_translate_keyval_to_make_legal_accelerator (uint32_t& keyval);
 
 Glib::RefPtr<Gdk::Pixbuf> get_xpm (std::string);
+Glib::ustring get_icon_path (const char*);
 Glib::RefPtr<Gdk::Pixbuf> get_icon (const char*);
 static std::map<std::string, Glib::RefPtr<Gdk::Pixbuf> > xpm_map;
 const char* const *get_xpm_data (std::string path);
@@ -98,5 +102,6 @@ void convert_bgra_to_rgba (guint8 const* src,
                           int           width,
                           int           height);
 
+void resize_window_to_proportion_of_monitor (Gtk::Window*, int, int);
 
 #endif /* __ardour_gtk_utils_h__ */