Text box issues



    Ok, for those who have helped, thanks a bunch.  This is what I have
    decided to do.  Since I am having trouble with gtk and threads I
    have decided to do all of my windowing in one thread.  To do this I
    want to create my own signal and emit it from a thread, then have
    the windowning thread answer the signal and run predefined code.  I
    am having trouble with the signal definition part.  
    I am want to define a new signal for the widget 'class'.  here is a
    code snippet:
         signum = gtk_object_class_user_signal_new
            ( GTK_OBJECT_CLASS( GTK_TYPE_WIDGET ),
              name,
              GtkSignalRunType( GTK_RUN_LAST | GTK_RUN_ACTION),
              gtk_marshal_NONE__POINTER,
              GTK_TYPE_NONE, 1, 
              GTK_TYPE_POINTER );
        That snippet did not work because of the first argument although
        it was straight out 
        of the FAQ.  If anyone has succeeded could they tell me how
        exactly I could define a signal for the whole widget class?
        For that matter, what the hell is a gtkxxxxclass pointer, and
        such.
        I do want to learn to add signals to pre-existing widgets, is
        there more information than what comes with the tutorial?
        Thanks, Chris




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]