mark the step entry dialog as a dialog even though it is an ArdourWindow, to help...
[ardour.git] / gtk2_ardour / utils.cc
index 891ea86c2cb01c36de2c74d7156b134072a26013..19f93ad2e82b8005a08790ed341827c0e97ce945 100644 (file)
@@ -598,7 +598,6 @@ key_is_legal_for_numeric_entry (guint keyval)
        case GDK_comma:
                if (comma_decimal < 0) {
                        std::lconv* lc = std::localeconv();
-                       cerr << "***** Locale decimal point = [" << lc->decimal_point << "]\n";
                        if (strchr (lc->decimal_point, ',') != 0) {
                                comma_decimal = 1;
                        } else {
@@ -611,6 +610,10 @@ key_is_legal_for_numeric_entry (guint keyval)
        }
 
        switch (keyval) {
+       case GDK_decimalpoint:
+       case GDK_KP_Separator:
+               return true;
+
        case GDK_period:
                if (comma_decimal) {
                        return false;
@@ -673,7 +676,7 @@ set_pango_fontsize ()
 
        /* FT2 rendering - used by GnomeCanvas, sigh */
 
-       pango_ft2_font_map_set_resolution ((PangoFT2FontMap*) pango_ft2_font_map_for_display(), val/1024, val/1024);
+       pango_ft2_font_map_set_resolution ((PangoFT2FontMap*) pango_ft2_font_map_new(), val/1024, val/1024);
 
        /* Cairo rendering, in case there is any */