In gtk+ application,how to parse xml file

2006-06-22 Thread yeajchao
Hello everybody First,I apologize for my terrible English. My application is developed by gtk+,and the application need a config file for startup initialization.The config file's name is config.xml What I need your help is that: I didn't known how to parse the ``.xml'' file Any

In gtk+ application,how to parse xml file

2006-06-22 Thread yeajchao
Hello everybody First,I apologize for my terrible English. My application is developed by gtk+,and the application need a config file for startup initialization.The config file's name is config.xml What I need your help is that: I didn't known how to parse the ``.xml'' file Any

Need your help on the widget's width and height

2006-03-17 Thread yeajchao
Hello everyone I am writing my own gtk widget and i want my own widget's height and width ratio is 0.8, like this: widget-allocation.height / widget-allocation.width == 0.8 and my gtk_mywidget_size_allocate() function like this: Start of my code

Question about GdkColor

2006-03-17 Thread yeajchao
Hello all I am chinese,I am sorry for my terriblly poor English ! I have confused about GdkColor In general,the RGB color mode ,the red or green or blue's value is from 0 to 255 But ,the GdkColor ,the value is from 0 to 65535 My question is ,how to map (0--255) to

Hekp,writing my own widget,about gtk_widget_new

2006-03-13 Thread yeajchao
Hello all I am frastrated about writing my own gtk widget You know,in the gtk tutorial, there is a widget named gtkdial And its definition like this : -- gtkdial.h struct _GtkDial { GtkWidget widget; ... }

I have a problem with GtkRadioButton

2006-02-08 Thread yeajchao
Hello all First of all, I apologize for my terrible english! I have a problem with GtkRadioButton. You know,when you select a GtkRadioButton,there will be a big point placed in the circle of the radio button .It maybe called indicator. My problem is that: I want to change the

question about combo

2005-12-17 Thread yeajchao
hello all In my application,i use combo in somewhere the problem is when i click on it he popup a list when i move mouse on the list the selected highligth don't move accordingly what can i do ? any help would be much appreciate __

about draw color line or polygon

2005-12-17 Thread yeajchao
kello all i want draw line or my own widget with color how can i draw a polygon with color ,and in the polygon, the color are not the same ,the coloe in the polygon have setp change from red to green any help would be much appreciate __

multithread

2005-11-16 Thread yeajchao
,wait for its timer can anybody will be so kind as to give me some advise ? an example may even better Thanks in advance ! yeajchao ___ 雅虎免费G邮箱-中国第一绝无垃圾邮件骚扰超大邮箱 http

complie error

2005-11-16 Thread yeajchao
Hello all I encountered a simple problem while compile a simple program the program and the complie infomation as follow /**/ #includegtk/gtk.h int main (int argc, char **argv) { GtkWidget *window; /* init threads */