using namespace std;
void
-Gtkmm2ext::init ()
+Gtkmm2ext::init (const char* localedir)
{
- // Necessary for gettext
- (void) bindtextdomain(PACKAGE, LOCALEDIR);
+#ifdef ENABLE_NLS
+ (void) bindtextdomain(PACKAGE, localedir);
+#endif
}
void
return alpha ? ((guint (src) << 8) - src) / alpha : 0;
}
-static void
-convert_bgra_to_rgba (guint8 const* src,
- guint8* dst,
- int width,
- int height)
+void
+Gtkmm2ext::convert_bgra_to_rgba (guint8 const* src,
+ guint8* dst,
+ int width,
+ int height)
{
guint8 const* src_pixel = src;
guint8* dst_pixel = dst;