Here comes the fun part. C/C++ is compiled, not interpreted. In (for example)
Python, functions (and thus programs) are objects and can be manipulated as such --
passed to other functions, assigned to a local name (aka variable), etc. If you want
to treat a compiled (C/C++) app as an object
Meghal,
Just another question... just to be sure... you are calling
gtk_main, right?
The thing is, this is supposed to work... it has worked for me.
Could you post a small sample program that also exhibits the
behavior. I think it's too hard to tell otherwise.
Darin
Meghal Harish Varia wrote
configure bails with the error 'glib-config --version
'returned 1.2.6, but GLIB (1.2.8) was found! None of the suggestions
worked, how can I get glib-config to recognize the new 1.2.8 version. I run
ldconfig -v, and it shows the correct version. This is very frustrating, I'm
running RH6.2.
Hello,
I use gdk_input_add in my program as follows:
{
sd=socket(AF_INET,SOCK_STREAM,0);
/* I check if a valid socket is returnet */
gdk_input_add(sd, GDK_INPUT_READ,incoming_message,NULL);
}
and then i declare:
static void
incoming_message (gpointer data, gint source, GdkInputCondition cond)
I want write a dialog box that does the following:
It has a GtkEntry and a GtkButton. When it first appears, the GtkEntry
has the focus. The user types in the GtkEntry and hits Enter, which -
and here's my problem - activates the GtkButton.
When I hit Enter, the GtkEntry "activate" event is tr
Hmm... It sounds like dialog_win might not be pointing to the widget you want
when you set tasks->dialog_win. Use a debugger to check the value of dialog_win
to see if it's changing. If you don't have a debugger available, insert
printf() statements to display the value of dialog_win after you
Hi there,
is it possible to use an existing c/c++ Application as some sort of
object-kind-of-thing in a gtk-application?
The object/c/c++-thing is in this case a tv-viewer and my own application
should add some functionality to it (buttons, etc), but I still wanna watch
tv, of course, so I also
Below should show my scoping of how I do everything. It must be a scoping
issue. Basically what I do is in two different functions I implement the
following code to display the dialog under a specific condition.
void some_func(void)
{
if(tasks->dead_tasks == TRUE)
{
gtk_widge_s
In message <[EMAIL PROTECTED]>you write:
>I wrote a program but have a problem. When I execute it, the main program
>doesn't appear, then when I pressed 's'( or whatever on the keyboard ) and
>press enter the file selection box( for open file ) appear with the main
>program. Then I get an error
I wrote a program but have a problem. When I execute it, the main program
doesn't appear, then when I pressed 's'( or whatever on the keyboard ) and
press enter the file selection box( for open file ) appear with the main
program. Then I get an error message that said;
/etc/gtk/gtkrc:1: error:
10 matches
Mail list logo