Selection Rectangle in a GtkDrawingArea

2008-05-14 Thread Diego Rivera
Hi, I have an aplication where i need to draw something in a GtkDrawingArea (or similar), because i need to create a picture from pixel handling. I want to had some sort of selection box in the DrawingArea, something similar as the one used to select multiple files in nautilus or something (while

Re: Scrolling to end of scrolled window when first displayed

2008-05-14 Thread John M Collins
On Wed, 2008-05-14 at 18:42 +0100, [EMAIL PROTECTED] wrote: > 2008/5/14 John M Collins <[EMAIL PROTECTED]>: > > I have a GtkTextView displaying some text - actually a log file in a > > Scrolled Window. > > > > I should like it to start off with the scroll at the bottom of the file > > - i.e. showin

Re: Scrolling to end of scrolled window when first displayed

2008-05-14 Thread Micah Carrick
There is an example of scrolling a GtkTextView to the end at http://www.gtkforums.com/about1307.html If it's not working "initially" but works in callbacks, perhaps that is because the widget isn't shown yet. After the text view and scrolled window have been shown, do while (gtk_events_pending

Re: Scrolling to end of scrolled window when first displayed

2008-05-14 Thread jcupitt
2008/5/14 John M Collins <[EMAIL PROTECTED]>: > I have a GtkTextView displaying some text - actually a log file in a > Scrolled Window. > > I should like it to start off with the scroll at the bottom of the file > - i.e. showing the most recent entry in the log file. > > How do I do this? > > I hav

Scrolling to end of scrolled window when first displayed

2008-05-14 Thread John M Collins
I have a GtkTextView displaying some text - actually a log file in a Scrolled Window. I should like it to start off with the scroll at the bottom of the file - i.e. showing the most recent entry in the log file. How do I do this? I have tried: GtkAdjustment *adj = gtk_scrolled_window_get_vadjus

Re: Best practices for laying out controls

2008-05-14 Thread Dave Foster
On Tue, May 13, 2008 at 1:58 PM, <[EMAIL PROTECTED]> wrote: > I use a GtkSizeGroup to line them up. > > http://library.gnome.org/devel/gtk/stable/GtkSizeGroup.html > John, Peter - Thanks, I didn't know about this class, so far my testing has been good with it. It's a shame it can't really be us

new object, with variables

2008-05-14 Thread Kees Scherpenhuijzen
heyy, @ the moment i trying to make an object inherited from GTK_ACTION, this all is managed. Only now i'm trying to initialize the object with an variable, a struct. Ie read the manual about the wrapper that is used, only i can't seem to find a way in which i can add the struct to g_object_new o