22 |
#include <gtkmm/stock.h> |
#include <gtkmm/stock.h> |
23 |
#include <gtkmm/spinbutton.h> |
#include <gtkmm/spinbutton.h> |
24 |
#include <gtkmm/dialog.h> |
#include <gtkmm/dialog.h> |
|
#include <libintl.h> |
|
25 |
#include <math.h> |
#include <math.h> |
26 |
|
|
27 |
#define _(String) gettext(String) |
#include "global.h" |
28 |
|
|
29 |
RegionChooser::RegionChooser() |
RegionChooser::RegionChooser() |
30 |
{ |
{ |
145 |
} |
} |
146 |
if (note == 3) { |
if (note == 3) { |
147 |
char buf[30]; |
char buf[30]; |
148 |
sprintf(buf, "<span size=\"x-small\">%d</span>", octave); |
sprintf(buf, "<span size=\"8000\">%d</span>", octave); |
149 |
layout->set_markup(buf); |
layout->set_markup(buf); |
150 |
Pango::Rectangle rectangle = layout->get_logical_extents(); |
Pango::Rectangle rectangle = layout->get_logical_extents(); |
151 |
double text_w = double(rectangle.get_width()) / Pango::SCALE; |
double text_w = double(rectangle.get_width()) / Pango::SCALE; |