diff options
author | Taybin Rutkin <taybin@taybin.com> | 2007-02-08 22:45:07 +0000 |
---|---|---|
committer | Taybin Rutkin <taybin@taybin.com> | 2007-02-08 22:45:07 +0000 |
commit | aa09a0e7591736e193a43db019e59c5dd5b3cd09 (patch) | |
tree | 35f3cda5908fc3fdee8d546024e3e6b19499c60d /gtk2_ardour | |
parent | 092caa50f820ee8f83519bd7df9fb10b80fedf01 (diff) |
Switched from GdkWindow::get_geometry() to get_size() as suggested by the gtkmm documentation. get_size() is better supported and faster too.
git-svn-id: svn://localhost/ardour2/trunk@1435 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/gain_meter.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk2_ardour/gain_meter.cc b/gtk2_ardour/gain_meter.cc index 6a1a41418d..e352ba40f2 100644 --- a/gtk2_ardour/gain_meter.cc +++ b/gtk2_ardour/gain_meter.cc @@ -227,11 +227,11 @@ GainMeter::render_metrics (Gtk::Widget& w) Glib::RefPtr<Gdk::Window> win (w.get_window()); Glib::RefPtr<Gdk::GC> fg_gc (w.get_style()->get_fg_gc (Gtk::STATE_NORMAL)); Glib::RefPtr<Gdk::GC> bg_gc (w.get_style()->get_bg_gc (Gtk::STATE_NORMAL)); - gint x, y, width, height, depth; + gint width, height; int db_points[] = { -50, -40, -20, -30, -10, -3, 0, 4 }; char buf[32]; - win->get_geometry (x, y, width, height, depth); + win->get_size (width, height); Glib::RefPtr<Gdk::Pixmap> pixmap = Gdk::Pixmap::create (win, width, height); @@ -270,9 +270,9 @@ GainMeter::meter_metrics_expose (GdkEventExpose *ev) Glib::RefPtr<Gdk::GC> bg_gc (meter_metric_area.get_style()->get_bg_gc (Gtk::STATE_NORMAL)); GdkRectangle base_rect; GdkRectangle draw_rect; - gint x, y, width, height, depth; + gint width, height; - win->get_geometry (x, y, width, height, depth); + win->get_size (width, height); base_rect.width = width; base_rect.height = height; |