Basics of writing a new widget ...




Can someone please help me with this:

I want to write a new widget based on the GtkEntry widget. Which are
the minimum functions to be overridden? Actually, I just wnat to
override the functions which insert text into the widget and those
which draw the widget.

Will I also have to override the functions which initiate the widget
and widget class (I guess i will have to). But what about the realize.
unrealize stuff??

Also, I guess I will ahve to set the parent widget to be the GtkEntry
and not GtkEditable?

Thanks,

sachin


Hubbard's Law:
        Don't take life too seriously; you won't get out of it alive.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                 Sachin Garg, Member Technical Staff 
      Centre for Development of Advanced Computing,BANGALORE,INDIA  
            Phone: +91-80-5584271/143/982 Fax: +91-80-5584893
               http://sangam.cjb.net <sachin@cdacb.ernet.in>



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