Re: How to determine *actual* visible region of a window?

2007-06-27 Thread Dave Howorth
Gaurav Jain wrote: For the purpose of my application, I need to programmatically determine the actual 'exposed' region of a gdk window. The exposed region should not include any obscured regions of the window. For example, if there's some external window in front of my application's window,

Re: Flickering display (using RGB buffer to write on a DrawingArea)

2007-06-27 Thread Bruno Renier
Konstantin Evdokimenko wrote: Use this on your expose event callback. gdk_window_begin_paint_rect(widget-window, rect); /* Draw something */ gdk_window_end_paint(widget-window); And make sure that widget is double buffered (by default). Look at gtk_widget_set_double_buffered function.

Re: drag-data-received signal not being emitted

2007-06-27 Thread Dave Howorth
Chris Morrison wrote: Hi all, I am trying to write a GTK/GNOME application. It has a main window with GtkTreeView control on to which you can drag and drop files from Nautilus. The code I have used to set up the widgets is: snip However, although the drag_drop signal is being received

Re: drag-data-received signal not being emitted

2007-06-27 Thread Dave Howorth
I wrote: In particular, I believe you will also need to call gtk_tree_view_enable_model_drag_dest and/or gtk_tree_view_enable_model_drag_dest on the tree_view. Oops. Second one should be gtk_tree_view_enable_model_drag_source of course. Dave ___

Re: drag-data-received signal not being emitted

2007-06-27 Thread Dave Howorth
I wrote: I'm also trying to make drag-and-drop work in a tree and not finding much in the docs. The best docs I've found so far are for the Python bindings. Murphy's alive and well. Just twenty minutes later and my words are wrong :) I've just found this site:

GTK+, building a display

2007-06-27 Thread Leonel Freire
I already searched and asked for this on the GTK+/GTK+Devel lists but I didn't get any answer, so I'll ask again: is there any way to set the font width or height size? I mean, not the font size in points but the font width or height in pixels. I'm doing a display in GTK+ for a POS emulator and I

GtkTreeView total height.

2007-06-27 Thread Carlos Savoretti
Hi all! I'd need to compute the total height of a treeview based on the amount of rows its model has. I've tried with the following code but I had to set some constants that obviously works in my specific setting but I would like to know to what correspond that unknowns. Thanks in advance.

Re: How to determine *actual* visible region of a window?

2007-06-27 Thread Gaurav Jain
On 6/27/07, Dave Howorth [EMAIL PROTECTED] wrote: Gaurav Jain wrote: For the purpose of my application, I need to programmatically determine the actual 'exposed' region of a gdk window. The exposed region should not include any obscured regions of the window. For example, if there's

Re: Gtk with .po files

2007-06-27 Thread Andreas Stricker
David Nečas (Yeti) wrote: Ignore the inti parts there, though. I'd rather point to http://www.gnu.org/software/gettext/manual/gettext.html and after groking the basic concepts, look at any internationalized Gtk+ application as working real world examples are better than tutorials. I

motion-notify-event works only once

2007-06-27 Thread Jerome Blondel
Hi, I've set up a motion-notify-event handler in a GtkDrawingArea, adding the POINTER_MOTION and POINTER_MOTION_HINT event masks to the widget. The event is triggered only when the pointer moves into the window. I'd like to receive an event for each movement of the pointer. Is there something

Re: motion-notify-event works only once

2007-06-27 Thread Yeti
On Wed, Jun 27, 2007 at 05:46:57PM +0200, Jerome Blondel wrote: I've set up a motion-notify-event handler in a GtkDrawingArea, adding the POINTER_MOTION and POINTER_MOTION_HINT event masks to the widget. The event is triggered only when the pointer moves into the window. I'd like to receive

Re: Newbie Question: How i can use glib-2.0 in my c-programm ?

2007-06-27 Thread Alan M. Evans
On Tue, 2007-06-26 at 23:27 +0200, Kai Szymanski wrote: Sorry, german text. It say's: test.c:6: Error: »gstring« not declared This is because C is case sensitive. Try GString instead of gstring. ___ gtk-app-devel-list mailing list

Re: How to determine *actual* visible region of a window?

2007-06-27 Thread Jonathan Winterflood
Hi, I'm no expert, but AFAIK that information would have to be returned by the X server/whatever, and I expect the server will try and send the least possible events, eg. the smallest rectangle comprising all the surface to redraw. Plus, IIRC expose events won't tell you what has been covered,

Re: motion-notify-event works only once

2007-06-27 Thread Jerome Blondel
David Nečas (Yeti) : On Wed, Jun 27, 2007 at 05:46:57PM +0200, Jerome Blondel wrote: I've set up a motion-notify-event handler in a GtkDrawingArea, adding the POINTER_MOTION and POINTER_MOTION_HINT event masks to the widget. The event is triggered only when the pointer moves into the

Re: drag-data-received signal not being emitted

2007-06-27 Thread Chris Morrison
On Wed, 2007-06-27 at 10:43 +0100, Dave Howorth wrote: I wrote: In particular, I believe you will also need to call gtk_tree_view_enable_model_drag_dest and/or gtk_tree_view_enable_model_drag_dest on the tree_view. Oops. Second one should be gtk_tree_view_enable_model_drag_source of

geometry hints screwing up window sizes

2007-06-27 Thread David J. Andruczyk
I've poured over the GTK+ api docs and googled myself into the ground looking for a solution to the following issue. I have an app that creates a window. inside this window is an eventbox and inside that is a GtkFixed (no slapping me for using a GtkFixed, it works well for this purpose) I want

Problem with gtk_label_set_text

2007-06-27 Thread Divya yadav
Hello everyone I am using gtk_label_set_text in a dynamic gui and label keeps on changing around 1-2 times every second.My program crashes because of this. Is there any way to do the same. Thanks Divya ___ gtk-app-devel-list mailing list