[gnomemm] libgnomecanvasmm demo patch



Hi,

Here is a one line patch to libgnomecanvasmm/demos/primitives.cc to make
it behave the same way that the libgnomecanvas demo does.

--
Owen

*** primitives.cc	Fri Sep 20 13:40:46 2002
--- primitives.cc.new	Fri Sep 27 11:23:14 2002
*************** Primitives::Primitives(bool aa)
*** 77,82 ****
--- 77,84 ----
    canvas->set_scroll_region(0, 0, 600, 450);
    canvas->signal_key_press_event()
        .connect(bind(slot(*this, &Primitives::on_key_press), canvas));
+ 
+   canvas->set_center_scroll_region(false);
    
    Gtk::HScrollbar* hscroll 
        = manage(new Gtk::HScrollbar(*canvas->get_hadjustment()));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]