Switched from GdkWindow::get_geometry() to get_size() as suggested by the gtkmm docum...
authorTaybin Rutkin <taybin@taybin.com>
Thu, 8 Feb 2007 22:45:07 +0000 (22:45 +0000)
committerTaybin Rutkin <taybin@taybin.com>
Thu, 8 Feb 2007 22:45:07 +0000 (22:45 +0000)
git-svn-id: svn://localhost/ardour2/trunk@1435 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/gain_meter.cc

index 6a1a41418d61e107525e7826bfa87b5f993f0937..e352ba40f2fc5f1bd6d8812e8563deb9db1c2758 100644 (file)
@@ -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;