summaryrefslogtreecommitdiff
path: root/libs/gtkmm2ext
diff options
context:
space:
mode:
authorJohn Emmas <johne53@tiscali.co.uk>2016-08-19 10:21:26 +0100
committerJohn Emmas <johne53@tiscali.co.uk>2016-08-19 14:11:00 +0100
commit4ece16f3488d77a74ca8ed043ed086607a39eabb (patch)
tree9d0bd6c8254a9329056a0714a6046563eb426632 /libs/gtkmm2ext
parenta0b117b9481a1a3091a6d0c1fe0deacf17e20529 (diff)
For MSVC, 'using namespace whatever' doesn't help us to differentiate between ambiguous type names
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.
Diffstat (limited to 'libs/gtkmm2ext')
-rw-r--r--libs/gtkmm2ext/utils.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/libs/gtkmm2ext/utils.cc b/libs/gtkmm2ext/utils.cc
index d4e9c57d58..c18023e020 100644
--- a/libs/gtkmm2ext/utils.cc
+++ b/libs/gtkmm2ext/utils.cc
@@ -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.
*