For MSVC, 'using namespace whatever' doesn't help us to differentiate between ambiguo...
authorJohn Emmas <johne53@tiscali.co.uk>
Fri, 19 Aug 2016 09:21:26 +0000 (10:21 +0100)
committerJohn Emmas <johne53@tiscali.co.uk>
Fri, 19 Aug 2016 13:11:00 +0000 (14:11 +0100)
so... given that 'Rectangle' is a type name that's commonly found in several different namespaces, we'll need to specify explicitly which one we want.

libs/gtkmm2ext/utils.cc

index d4e9c57d58f663f9cb3e0a07dc61b029d5ac982f..c18023e02008d7429b8d0c5fa24979cbe966b404 100644 (file)
@@ -314,7 +314,6 @@ _position_menu_anchored (int& x, int& y, bool& push_in,
                                    const Gtk::Menu* const menu,
                                    Gtk::Widget* const anchor,
                                    const std::string& selected) {
-       using namespace Gdk;
        using namespace Gtk;
        using namespace Gtk::Menu_Helpers;
 
@@ -324,7 +323,7 @@ _position_menu_anchored (int& x, int& y, bool& push_in,
                return;
        }
 
-       Rectangle monitor;
+       Gdk::Rectangle monitor;
        {
                const int monitor_num = anchor->get_screen ()->get_monitor_at_window (
                                anchor->get_window ());
@@ -333,7 +332,7 @@ _position_menu_anchored (int& x, int& y, bool& push_in,
        }
 
        const Requisition menu_req = menu->size_request();
-       const Rectangle allocation = anchor->get_allocation();
+       const Gdk::Rectangle allocation = anchor->get_allocation();
 
        /* The x and y position are handled separately.
         *