2d image manipualtion in a gtk widget.

2005-01-27 Thread Luca Cappa
Hello, i need to do some 2D image manipulation in a GTK+ widget (well, actually i'm using gtkmm, but it should not matter).. Which is the best 2D canvas to use? I would like to use some acceleration method like OGL Pixmaps. Greeting, Luca ___ gtk-app-

g_main_context_unref

2005-01-27 Thread Carsten Burstedde
Hello, I would like to unref the default main context after use for proper cleanup. However, this leaves a dangerous invalid pointer in default_main_context. Should this be fixed? I am not quite sure about the locking/atomic issues though. Carsten --- gmain-orig.c2004-11-08 19:49:35.0

Re: Compile line options for a libglade project?

2005-01-27 Thread Jonas Geiregat
On Wed, 26 Jan 2005 08:46:46 -0500, Tony Freeman > The first error says that 'PREFIX' is undeclared. I have no PREFIX at > all in the whole program ... so this tells me that I'm not using the > right flags for gcc to properly compile. Are you sure you don't have PREFIX in your main.c file ,else

Re: size adaptive window layout

2005-01-27 Thread Stefan Kost
Hi hi, it is a GtkTable with 3 columns. The widgets in column 1 and 3 are packed with SHRINK set for width, while the widget in the middle has EXPAND|FILL set. You can look at: http://cvs.sourceforge.net/viewcvs.py/buzztard/buzztard/src/ui/edit/machine-preferences-dialog.c?view=markup search for

static build

2005-01-27 Thread Bob Caryl
Greetings all! I am trying to do a static link of my application using the gtkmm library. Yeah, I know: why Bob? Well, I have installed the gtkmm package using ./configure --enable-static; but the output of `pkg-config --libs gtkmm-2.4` continues to start with the "-Wl,--export_dynamic" option.

GtkTextBuffer: how to insert new line?

2005-01-27 Thread Felix Kater
Hi, how do I insert a new line after I inserted text into a GtkTextBuffer? I am using gtk 2.4 (with win32/mingw) and got gtk errors when I tried to insert "\n" into the text (this fist approach is probably completely wrong, I suppose ...). I read that there are bugs in gtk -- could not find anyt

Re: GtkTextBuffer: how to insert new line?

2005-01-27 Thread Paolo Costabel
I just tried this: gtk_text_buffer_insert_at_cursor(buffer, "\n\n\n\n", 4); and works fine here (gtk 2.4.10). What call are you using? Felix Kater wrote: Hi, how do I insert a new line after I inserted text into a GtkTextBuffer? I am using gtk 2.4 (with win32/mingw) and got gtk errors when I tri

how to make a function thread safe?

2005-01-27 Thread Felix Kater
Hi, is a function thread save when all inside code is wrapped into a static mutex? What is with this function: Could a second thread influence the first thread while it is looping (because of the pointer argument)? void f(gint* my_gint){ static GStaticMutex my_mutex = G_STATIC_MUTEX_INIT;

Re: GtkTextBuffer: how to insert new line?

2005-01-27 Thread Felix Kater
Paolo Costabel: > I just tried this: > > gtk_text_buffer_insert_at_cursor(buffer, "\n\n\n\n", 4); > > and works fine here (gtk 2.4.10). > > What call are you using? Hm. a) First I used gtk_text_buffer_insert_at_cursor(buffer, "\n\0", -1); This didn't work (maybe the 0 termination is not

Re: Compile line options for a libglade project?

2005-01-27 Thread Tony Freeman
Thanks to the people who have replied so far. Attached is the glade file and the c file. I've check and rechecked the glade and c files for syntax errors, etc. I found one typo that I corrected: I had "int main (int argc, *argv[])" which I changed to "int main (int argc, **argv)". My compile l

Re: GtkTextBuffer: how to insert new line?

2005-01-27 Thread Paolo Costabel
You cannot use -1 for the length, at least according to the documentation. voidgtk_text_buffer_insert_at_cursor (GtkTextBuffer *buffer, const gchar *text,

Re: GtkTextBuffer: how to insert new line?

2005-01-27 Thread Felix Kater
Paolo Costabel: > You cannot use -1 for the length, at least according to the > documentation. [...] > Plus, why are you adding a NULL terminator? Thanks, that's it. I took the -1/NULL terminator thing from the function above in the doc where that is possible (gtk_text_buffer_insert). Felix __

"gtk+" + "omniORB" ( corba )

2005-01-27 Thread Linux User
Is it possible ( and a good idea ) to code a program with GTK+ and omniORB at the project ? I heard issues about this ( something about thread incompatabilities ), but I'm not sure about that. I could do what I want with Bonobo, but I don't want to be "attached" to Gnome libraries ( libGnome a

GtkTextView and paste_clipboard signal

2005-01-27 Thread Jesper Eskilson
Hi! I'm trying to get a notification on when the user pastes text into my buffer, but I can't get the paste_clipboard signal to work. static void paste_clipboard(console_t *con, void *dummy) { fprintf(stderr, "pasting!\n"); } [...] g_signal_connect_swapped(G_OBJECT(con->textview), "paste_cl

Windiow Background Help!

2005-01-27 Thread u821417
Dear Sir or Madam: I just have a GTK+2 question. I have many buttons on a window. They all are with pictures,and what i need is the transparent effect. What i am wondering is (1)I cannot show the window background picture. (2)Widgets cannot overlap! (i.e.,i cannot put image on an image) Pl

Re: GtkTextBuffer: how to insert new line?

2005-01-27 Thread John K Luebs
On Fri, Jan 28, 2005 at 12:28:06AM +0100, Felix Kater wrote: > Paolo Costabel: > > > I just tried this: > > > > gtk_text_buffer_insert_at_cursor(buffer, "\n\n\n\n", 4); > > > > and works fine here (gtk 2.4.10). > > > > What call are you using? > > Hm. > > a) > > First I used gtk_text_bu