/[svn]/gigedit/trunk/src/gigedit/regionchooser.cpp
ViewVC logotype

Diff of /gigedit/trunk/src/gigedit/regionchooser.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1339 by schoenebeck, Mon Sep 10 19:56:26 2007 UTC revision 1411 by schoenebeck, Fri Oct 12 17:46:29 2007 UTC
# Line 22  Line 22 
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  {  {
# Line 146  bool RegionChooser::on_expose_event(GdkE Line 145  bool RegionChooser::on_expose_event(GdkE
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;

Legend:
Removed from v.1339  
changed lines
  Added in v.1411

  ViewVC Help
Powered by ViewVC