FW: Text wrapping along with ellipsizing

2007-06-26 Thread Suma H.S
-Original Message- From: Suma [mailto:[EMAIL PROTECTED] Sent: Monday, June 25, 2007 11:39 PM To: 'gtk-app-devel-list@gnome.org' Subject:Text wrapping along with ellipsizing hi, Does anyone know how to have text wrapping along with ellipsizing? I want to have text

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

2007-06-26 Thread Bruno Renier
Hi! I'm currently writing an application that needs to redraw a whole GtkDrawingArea when new data arrives. It needs to draw a certain number of boxes based on the incoming data. The drawing area is updated maybe 100 times per second. I'm using a GdkRGB buffer that I update when new data

gtk_text_buffer_get_text with tags

2007-06-26 Thread Leander Seige
Hello, sorry for crosspostings, already asked this on the gtk-list but I think this was wrong place. I'm using a GtkTextBuffer with tags in my program and I would like to know how I can get the content of the buffer *including* the tags. I want to pass this string over to pango for rendering

FW: Gtk with .po files

2007-06-26 Thread Suma H.S
-Original Message- From: Suma [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 26, 2007 2:14 AM To: 'gtk-app-devel-list@gnome.org' Subject:FW: Gtk with .po files hi, I have a Gtk Application which uses some strings. I want to localize these strings. I know it is to be

RE: Gtk with .po files

2007-06-26 Thread Kumar Siddharth
Hi, http://inti.sourceforge.net/tutorial/libinti/internationalization.html Hope it helps. Regards, Siddharth TATA Elxsi -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Suma H.S Sent: Tuesday, June 26, 2007 2:48 PM To: gtk-app-devel-list@gnome.org

Re: Gtk with .po files

2007-06-26 Thread Yeti
On Tue, Jun 26, 2007 at 02:53:26PM +0530, Kumar Siddharth wrote: http://inti.sourceforge.net/tutorial/libinti/internationalization.html 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,

Re: Gtk with .po files

2007-06-26 Thread Emmanuele Bassi
On Tue, 2007-06-26 at 12:17 +0200, David Nečas (Yeti) wrote: On Tue, Jun 26, 2007 at 02:53:26PM +0530, Kumar Siddharth wrote: http://inti.sourceforge.net/tutorial/libinti/internationalization.html Ignore the inti parts there, though. I'd rather point to

Re: FW: Text wrapping along with ellipsizing

2007-06-26 Thread Yeti
On Tue, Jun 26, 2007 at 02:10:51AM -0700, Suma H.S wrote: Does anyone know how to have text wrapping along with ellipsizing? I want to have text wrapped to three lines and have ellipsis in the last line if the text exceeds three lines. I have used GtkLabel and set the properties for both

Re: Changing the style properties?

2007-06-26 Thread Felipe
Emmanuele Bassi wrote: On Mon, 2007-06-25 at 15:04 +0200, Felipe wrote: Hi, I want to remove the horizontal separators of a tree view, but the corresponding property is read only[1]. I assume that this style property can be changed in some way, but how? you can change the style

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

2007-06-26 Thread Gaurav Jain
Hi, 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, then the exposed

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

2007-06-26 Thread Konstantin Evdokimenko
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: Getting a GDK_CONFIGURE event from a GtkImage

2007-06-26 Thread Jim George
On 6/26/07, Jim George [EMAIL PROTECTED] wrote: [...] caused an infinite loop, because I'm trying to do the following: gboolean solar_cal_pixbuf_resize(GtkWidget *widget, GtkAllocation *alloc, gpointer user_data) { GtkImage *img_widget = user_data; GdkPixbuf *pixbuf =

drag-data-received signal not being emitted

2007-06-26 Thread Chris Morrison
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: enum { TARGET_URI_LIST, }; static GtkTargetEntry target_list [] = {{ text/uri-list, 0,

Re: Getting a GDK_CONFIGURE event from a GtkImage

2007-06-26 Thread Yeti
On Tue, Jun 26, 2007 at 11:28:48AM -0600, Jim George wrote: I'll take that back, the handler keeps getting called even if I block it before calling gtk_image_set_from_pixbuf. If I disconnect it, it doesn't get called again. Seems like the allocate-event occurs with some delay after

Re: Getting a GDK_CONFIGURE event from a GtkImage

2007-06-26 Thread Jim George
I do not follow this thread, but can't you just compare the new allocation to the current one and do nothing when they are equal? That doesn't work, they seem to always be equal. I'm comparing the allocation being passed to the alloc-event handler in the second parameter and the allocation of

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

2007-06-26 Thread Kai Szymanski
Hi! As i search the web for a util-library that i can use in my c-programms, i found glib-2.0. So i decide to install it on my system (debian 4.0 - libglib-2.0 and libglib-2.0-dev). When i try to use it, i did'nt work. The Source (a simple test): -- Snip #include stdio.h #include

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

2007-06-26 Thread Kai Szymanski
Hello Alan, This is because C is case sensitive. Try GString instead of gstring. Oh...that's dimp from me...thanks a lot for your help...i think it's to late for me ;) Best regards, Kai. ___ gtk-app-devel-list mailing list

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

2007-06-26 Thread Matí­as Alejandro Torres
Kai Szymanski escribió: Hi! As i search the web for a util-library that i can use in my c-programms, i found glib-2.0. So i decide to install it on my system (debian 4.0 - libglib-2.0 and libglib-2.0-dev). When i try to use it, i did'nt work. The Source (a simple test): -- Snip #include