Re: Expanding Entry size when container box is horizontal

2013-11-24 Thread Ian Martin
Hi Tim, code is a _whole_ lot easier to read. You've got an Gtk::Entry box in a Gtk::Box, and I'm not 100% sure what "it" is, and/or what the width is of that isn't increasing. It sounds like you may need to look at what pack options you're using when inserting your Gtk::Entry into the Gtk::

Expanding Entry size when container box is horizontal

2013-11-24 Thread a
Hi, I have a Gtk::Entry text box inside of a Gtk::Box and the box's orientation is set to horizontal, so when I change the window size the Entry text box width size does not increase. When I set it to vertical the width will increase with the window size. How can I have the box's orientation

Re: save, restore and *_preserve

2013-11-24 Thread creak ml
Thanks for the review! > I'd argue your first problem is here. Simple rule: when using a > Cairo::Context, encase everything you do in save/ restore. If you don't, you > have to manually keep track of the context state, which is difficult/ > practically impossible in many cases. You're perfe

Re: save, restore and *_preserve

2013-11-24 Thread Ian Martin
Hi creak, I'm not a fulltime programmer, so happy for you to ignore comments if someone more intelligent has other advice... Ian On 25/11/13 09:28, creak ml wrote: And for those interested, here is the code that, apparently, is better (I'm not sure since I found it only by experimentation):

Re: widget for data graph

2013-11-24 Thread Andrew Potter
On Sun, Nov 24, 2013 at 11:44 AM, Kevin Brightwell wrote: > On Sun, Nov 24, 2013 at 2:42 PM, Renato Merli > wrote: >> Does anyone know ready widget for data presentation ? bar / lines /etc ? You might try to reuse GNOME Power Manager's graph widget. It's in C, and looks like it only does point

Re: save, restore and *_preserve

2013-11-24 Thread creak ml
And for those interested, here is the code that, apparently, is better (I'm not sure since I found it only by experimentation): bool BenchMarkArea::on_draw(Cairo::RefPtr const& cr) { cr->set_antialias(Cairo::ANTIALIAS_NONE); // ... [skipping boring parts, variables initializations] ...

Re: save, restore and *_preserve

2013-11-24 Thread creak ml
Ok, changed my gmail parameters, now I'll reply all ;) _ Thanks for the answer. Indeed I did read these documentations (of course not all of them, but the interesting parts I hope). I think I found why I had very strange results. In the documentation, the description of cr->rectangle() says t

Re: widget for data graph

2013-11-24 Thread Kevin Brightwell
In my experience, we just used Cairo to draw our own. If there is a library, it'd be very helpful. Kevin On Sun, Nov 24, 2013 at 2:42 PM, Renato Merli wrote: > > Hi, > > > Does anyone know ready widget for data presentation ? bar / lines /etc ? > > -- > > > > _

widget for data graph

2013-11-24 Thread Renato Merli
Hi, Does anyone know ready widget for data presentation ? bar / lines /etc ? -- ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm-list

Re: Gtk::SpinButton crash

2013-11-24 Thread John Emmas
On 23/11/2013 10:23, John Emmas wrote: It would be very interesting if you could apply those patches and see if they change the calling order for you (like they did for me). Hi Kjell, I've just had a new idea (a variation on the above theme). When you can find some time, could you apply th

Re: Command line arguments

2013-11-24 Thread Kjell Ahlstedt
2013-11-24 08:07, a skrev: Hi, I am trying to parse some command line arguments within my program. This is what I have: Glib::RefPtr app = Gtk::Application::create(argc, argv, "Math.Calculator.Fractions"); Math::Gui::MainWindow mw(argc, argv); return app->run(mw); when I run the p