Problem: hiding window

2006-04-14 Thread Deependra Shekhawat
Hello friends, I want to hide a window when user clicks either on the close button or press the close (CROSS) on the top-right of every window. Here is my code: GtkWidget *window1; GtkWidget *butt_close; g_signal_connect((gpointer)butt_close,"clicked", G_CALLBACK (on_butt_clos

changing pango attributes

2006-04-14 Thread control H
Hi, I've made a gtklabel with an underline attribute: pango_attr_underline_new(PANGO_UNDERLINE_ERROR); The label shows up fine with this attribtute. However, later on I want to dynamically change this attribute to PANGO_UNDERLINE_NONE. The code basically looks like this: attrlist=gtk_label_get_a

Re: problem: text view appends

2006-04-14 Thread Eduardo M KALINOWSKI
Deependra Shekhawat wrote: >Hello friends, >I am trying to append text in a text view, don't know >how to do this (tried alot of things). > > >here is code snippet: > >gint call_me(gpointer user_data) >{ > int bytes=0,temp; >//checks to see whether called for first time or not > static

problem: text view appends

2006-04-14 Thread Deependra Shekhawat
Hello friends, I am trying to append text in a text view, don't know how to do this (tried alot of things). here is code snippet: gint call_me(gpointer user_data) { int bytes=0,temp; //checks to see whether called for first time or not static int flag=1; GtkWidget *textvi

Re: converting GTKWidget to Widget (Moftif)

2006-04-14 Thread John Cupitt
On 4/14/06, Dmitriy Chumack <[EMAIL PROTECTED]> wrote: > I have a little question. I need to create a widget using > XtVaCreateManagedWidget(...) > function from libXt.so.6 library. No, sorry, GTK and Motif are completely different and you can't mix their APIs. You must use one or the other. If

converting GTKWidget to Widget (Moftif)

2006-04-14 Thread Dmitriy Chumack
Hi, everyone. I have a little question. I need to create a widget using XtVaCreateManagedWidget(...) function from libXt.so.6 library. This function needs a parent Widget to be passed to it. I use GTK port of wxWidgets to create my GUI and that's why I have only GTKWidget's handles of my window