summaryrefslogtreecommitdiff
path: root/libs/gtkmm2ext
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-01-21 23:14:00 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2013-01-21 23:14:00 +0000
commit2a2b48ef66916f3ac7aafb46b83e1e86a6e15cf8 (patch)
treeb6823d2558fc70c421e3d33e4457f873a094a3e4 /libs/gtkmm2ext
parentc09dc77dfc3a5f0cd6d35b72388a9222e2f2faf3 (diff)
start passing around the (possibly-bundle-modified) localedir so that we call bindtextdomain() correctly, and thus (hopefully) find message catalogs correctly inside a bundle
git-svn-id: svn://localhost/ardour2/branches/3.0@13965 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/gtkmm2ext')
-rw-r--r--libs/gtkmm2ext/gtkmm2ext/utils.h2
-rw-r--r--libs/gtkmm2ext/utils.cc4
2 files changed, 3 insertions, 3 deletions
diff --git a/libs/gtkmm2ext/gtkmm2ext/utils.h b/libs/gtkmm2ext/gtkmm2ext/utils.h
index 242e1c77d0..0bde3cb562 100644
--- a/libs/gtkmm2ext/gtkmm2ext/utils.h
+++ b/libs/gtkmm2ext/gtkmm2ext/utils.h
@@ -45,7 +45,7 @@ namespace Gtk {
}
namespace Gtkmm2ext {
- void init ();
+ void init (const char*);
std::string fit_to_pixels (const std::string&, int pixel_width, Pango::FontDescription& font, int& actual_width, bool with_ellipses = false);
std::pair<std::string, double> fit_to_pixels (cairo_t *, std::string, double);
diff --git a/libs/gtkmm2ext/utils.cc b/libs/gtkmm2ext/utils.cc
index 83ad4537a2..14f3ba2732 100644
--- a/libs/gtkmm2ext/utils.cc
+++ b/libs/gtkmm2ext/utils.cc
@@ -37,10 +37,10 @@
using namespace std;
void
-Gtkmm2ext::init ()
+Gtkmm2ext::init (const char* localedir)
{
// Necessary for gettext
- (void) bindtextdomain(PACKAGE, LOCALEDIR);
+ (void) bindtextdomain(PACKAGE, localedir);
}
void