Re: Gtk style

2006-05-15 Thread Rob Benton
Mickael Drean wrote: Hi everybody, I'm quite desapointed because I'm trying to have a small icon toolbar by changing Gtk style with the small Gtk app Theme selector. When i succeed to have toolbar as i want, there is no more picture on button (create with a Gtk::Stock). Is there a way

Re: painting the DrawingArea

2006-03-07 Thread Rob Benton
Paul Davis wrote: On Tue, 2006-03-07 at 17:57 +, eduardo fiss beloni wrote: hello people I must draw white points in a black foreground, but I'm drawing white points in the right places and black points elsewere. can I paint black the Gtk::DrawingArea derived object to make it keeps

Re: catching a mouse scroll event on a Gtk::DrawingArea

2006-02-19 Thread Rob Benton
Well I thought I was but it looks like I was adding it to the wrong widget :) Jonathon Jongsma wrote: Have you added the necessary events? (i.e. Gtk::Widget::add_events()) Jonner On 2/18/06, Rob Benton [EMAIL PROTECTED] wrote: Can this be done? I tried with the signal_scroll_event

catching a mouse scroll event on a Gtk::DrawingArea

2006-02-18 Thread Rob Benton
Can this be done? I tried with the signal_scroll_event() signal but I'm not getting into the handler: MyWindow::MyWindow() { _drawarea.signal_scroll_event().connect(sigc::mem_fun(*this, MyWindow::on_drawarea_scroll)); } bool MyWindow::on_drawarea_scroll(GdkEventScroll * e) { if

Re: main window not redrawing after dialog closes

2006-01-27 Thread Rob Benton
Emilian Nowak wrote: On 2006-01-25 (wed) Rob Benton wrote: In my main window I open a filechooser dialog then close it, set the mouse cursor to Gdk::WATCH, call a function, then change back the cursor. The problem is after the dialog closes the main window does not immediately redraw

main window not redrawing after dialog closes

2006-01-25 Thread Rob Benton
In my main window I open a filechooser dialog then close it, set the mouse cursor to Gdk::WATCH, call a function, then change back the cursor. The problem is after the dialog closes the main window does not immediately redraw and the cursor does not immediately change. It's not until my

using Gtk::Bin::get_child() to test for contents

2006-01-23 Thread Rob Benton
Is it a good or reliable use of Gtk::Bin::get_child() to see if a widget currently contains another widget? if (frame.get_child() != NULL) { g_print(we got something here\n); } else { g_print(empty\n); } ___ gtkmm-list mailing list

Re: Working with gtkmm libraries

2006-01-02 Thread Rob Benton
Sean Kelley wrote: While learning more about gtkmm, I've struggled initially to understand the automake and autoconf approach. I came across a few tutorials: http://www.openismus.com/documents/linux/automake/automake.shtml

Re: Use a .png file

2005-12-10 Thread Rob Benton
Bob Caryl wrote: It is a gnome application, so I suppose it is safe to assume that you must install it to use it. The reason I use this method is because I was not too impressed by the quality of the xpm export from gimp, versus the quality of the conversion of .png files by

Re: Strange Runtime Message

2005-12-05 Thread Rob Benton
Murray Cumming wrote: I must admit to my ignorance on how to do this. The SphereCrystal theme came as part of the Suse 9.3 linux distro. Search as I might, I have yet to discover the author's identity. I think it might be part of the gnome-themes-extras module (which should be in GNOME's

Re: Strange Runtime Message

2005-11-30 Thread Rob Benton
I get this, too. I think it only shows up when I run particular gtk themes. Another thing I've noticed is an error something like this: art_render_invoke: no image source given Bob Caryl wrote: I had googled before sending my inquiry and also found the libart references. Since I'm not

Re: GtkDrawingArea on_clicked ?

2005-11-28 Thread Rob Benton
Chris Vine wrote: You don't need an EventBox if you have a DrawingArea as I am pretty sure it has its own Gdk::Window (that is one of its purposes). If so, it is already capable of receiving events - you just need to enable them with Gtk::Widget::set_events(). Then why in the world did I

Re: GtkDrawingArea on_clicked ?

2005-11-27 Thread Rob Benton
Jonathon Jongsma wrote: You might try looking at the function Gtk::Widget::set_events() or Gtk::Widget::add_events() to make the drawing area respond to the events you're interested in. jonathon On 11/26/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, i've got drawinrgarea and i'm trying

Re: Widget's background colour?!

2005-11-07 Thread Rob Benton
Jamiil wrote: Hi! Do you know how to change the background colour of a widget? To make my job a bit easier I want to colour code the differnt Gtk::Box(es) my program requiresme to have. TIA There's a Gtk::Style widget. Use it to get the background color.

Re: the right way to draw in a drawingarea

2005-10-22 Thread Rob Benton
Paul Davis wrote: Foster, Gareth wrote: the display flickers, even when drawing a simple square. Doesn't this often mean you need to be double buffering? ___ gtkmm-list mailing list gtkmm-list@gnome.org

Re: Better way to do a syntax highlight

2005-10-22 Thread Rob Benton
Jupercio Juliano wrote: Hi. I'm trying to do a IDE to program microcontrolles using the C language and it is my first program in gtkmm. For the editor I'm using TextView+TextBuffer and need to highlight the code in C. Is textview a good idea to do this? I found

Re: boost::shared_ptr weirdness

2005-10-22 Thread Rob Benton
Murray Cumming wrote: Paul Davis [EMAIL PROTECTED] writes: Has anyone ever noticed weird behavior with boost::shared_ptrs and widgets? I've been getting some random segfaults when closing my programs. They seem to be coming from removing a container that contains a widget that is a member

Re: making menuitems insensitive by app context

2005-09-21 Thread Rob Benton
Murray Cumming wrote: On Tue, 2005-09-20 at 19:34 -0500, Rob Benton wrote: Bob Caryl wrote: Rob Benton wrote: I'm looking for a way, maybe a signal, to make my menuitems sensitive/insensitive based on the state of my program. This is what Gtk::Actions (see Gtk::UIManager) make easy

printing

2005-09-16 Thread Rob Benton
What options are there for printing support under gtk/gtkmm? I imagine there's different methods depending on the platform. I noticed a kind of consistent dialog approach from a lot of gnome applications. Does any of this fall specifically under gtk(mm) ?

Re: Implementing a LED-like widget

2005-08-26 Thread Rob Benton
Marcus Lundblad wrote: --- desk_indicator.hh: #include gtkmm.h #include gdkmm.h #ifndef DESK_INDICATOR #define DESK_INDICATOR class desk_indicator : public Gtk::Frame { public: desk_indicator(); ~desk_indicator(); void

using Gdk::Cursor

2005-08-13 Thread Rob Benton
I was looking through the Gdkmm and Gdk docs at the Gdk::Cursor and Gdk::Window. I notice that Gdk::Window has a set_cursor() method but not a get_cursor() method. How would you go about changing a cursor to something like GDK_WATCH while processing something in your main window and then

Gtk::FileChooserDialog::run()

2005-08-01 Thread Rob Benton
I'm confused about the showing and hiding of the dialog objects after their run function completes. I'm opening a FileChooserDialog, calling run(), checking the response type for OK, and finally doing a little xml processing with Xerces which I check for exceptions. If I catch an exception I

getting images inside a combobox

2005-05-07 Thread Rob Benton
I was checking out the section in the Gtkmm book on comboboxes: http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/ch06s03.html In the example I see that on the dropdown list there's an image in there. But if you select the image it does not become active. Is there a way to make images

Re: Gtk::Button with image only

2005-02-09 Thread Rob Benton
really a widget, it's part of Gdk. Part of the problem is I'm designing this through Glade and I haven't found a good button widget that doesn't have a label on it. On Wed, 2005-02-09 at 11:51, Rob Benton wrote: /(I asked this on the glademm list too) What's the easiest way to get a plain button

step/page sizes on Gtk::Scale

2005-01-27 Thread Rob Benton
I've got a Gtk::VScale widget that I'm setting min/max to 5,300 and step/page sizes to 5,10. This works great for the arrow keys and page up/down keys but moving with a mouse will still get all numbers in between. Is there a way to make the mouse behave the same as the arrow keys and page