Question about put GtkWidget pointer as function's argument

2006-07-17 Thread chao yeaj
Hello everyone My code like this: int create_image_from_file(GtkWidget *splash) { GtkWidget image = NULL; GtkWidget frame = NULL; image = gtk_image_new_from_file(~/splash.png); frame =

Re: Question about put GtkWidget pointer as function's argument

2006-07-17 Thread Christopher Backhouse
chao yeaj wrote: splash = frame;/* Here, the splash is not NULL*/ splash is a local variable. if you want to assign to the data at the pointer: *splash=frame ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

RE: Emitting signals

2006-07-17 Thread Supreet.Mysore
Hey thanks for your response. I had tried this exactly the same way as u said by doing g_signal_emit_by_name(entry, backspace), but it gives me an error like the one below signal id '65288' is invalid for instance '0X-' Regards, Supreet -Original Message- From: [EMAIL PROTECTED]

Re: Question about put GtkWidget pointer as function's argument

2006-07-17 Thread chao yeaj
Sorry,my code should be this : other_function(GtkWidget * splash); not other_function( ) I made a mistake at the first time, sorry! ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

backspace callback function

2006-07-17 Thread Supreet.Mysore
Hi All, I am trying to register a callback for backspace signal on entry widgets like below, g_signal_connect (G_OBJECT (entry), backspace, G_CALLBACK (enter_callback),NULL); and inside the callback I am just printing a message as below, static void enter_callback( GtkWidget

Re: platform support

2006-07-17 Thread Calum Benson
On 16 Jul 2006, at 13:16, ahmet alper parker wrote: just to confirm, it is nearly ok on mac osX and ok on linux and windows. how about unix (and mostly on solaris)? Solaris 10, the most recent supported version, ships with GNOME 2.6 / gtk+ 2.4. So if you don't use any widgets or

Re: What's worry with the entry widget? It makes my application so ugly!

2006-07-17 Thread Paul Davis
On Sun, 2006-07-16 at 13:17 +0200, Richard Boaz wrote: hi, if you want fine control over the size of your entry widgets, the following routines may be of help: gtk_entry_set_max_length() gtk_entry_set_width_chars() these are significant, but of likely equal importance is the way the

Multi-threaded gtk app very very slow

2006-07-17 Thread Mark Richardson
I have a multi-threaded application that I developed using gtk 2.4.1 (I know it's old - the SA hasn't had time to get to it yet - so I'll be moving to latest and greatest soon). Anyway, this application has multiple views - in that you can open different *.glade files (xml) and they open

Displaying text as a vertical marquee

2006-07-17 Thread Matt Hoosier
Does anybody have some ideas about a clean way to format some text as a vertical marquee without resorting to Pango layout/font manipulation? I.e., if foobar is the text, then it should be rendered with the characters stacked one atop the other: f o o b a r Thanks, Matt

Re: Displaying text as a vertical marquee

2006-07-17 Thread Yeti
On Mon, Jul 17, 2006 at 02:28:43PM -0500, Matt Hoosier wrote: Does anybody have some ideas about a clean way to format some text as a vertical marquee without resorting to Pango layout/font manipulation? I.e., if foobar is the text, then it should be rendered with the characters stacked one

Re: Displaying text as a vertical marquee

2006-07-17 Thread Matt Hoosier
This is occurring inside of a widget which auto-responds to locale changes. I'd hoped to avoid iterating across (and reformatting) the input whenever a set_text() call occurs. Thanks On 7/17/06, David Nečas (Yeti) [EMAIL PROTECTED] wrote: On Mon, Jul 17, 2006 at 02:28:43PM -0500, Matt Hoosier

Re: Displaying text as a vertical marquee

2006-07-17 Thread Yeti
On Mon, Jul 17, 2006 at 03:09:37PM -0500, Matt Hoosier wrote: This is occurring inside of a widget which auto-responds to locale changes. I'd hoped to avoid iterating across (and reformatting) the input whenever a set_text() call occurs. Well, I don't know anything that could do the right

Re: Displaying text as a vertical marquee

2006-07-17 Thread Matt Hoosier
Yes, I agree with all those concerns. Just trying to look for the least bad way to do this :) On 7/17/06, David Nečas (Yeti) [EMAIL PROTECTED] wrote: On Mon, Jul 17, 2006 at 03:09:37PM -0500, Matt Hoosier wrote: This is occurring inside of a widget which auto-responds to locale changes. I'd

cairocontext inside gtkobjects

2006-07-17 Thread Daniel Alonso
Hi, I would be very grateful if someone could shed some light in several CairoContext problems I'm having. Maybe I should send this cairo list but I would like to know first if it's someway related to cairo integration in gdk. First one: I have a GTKDrawindArea derived class that draws its

Re: RADiola, a GTK RAD tool

2006-07-17 Thread Roland Koebler
hi, after I read a bit of your documentation-pdf, I have some annotations: pdf - No knowledgement of a programming language is needed. pdf Applications are completely created in a graphical manner. I think this is only possible for very simple applications. for more complex applications you