Question about "Color name Gtk+ knowns"

2006-09-03 Thread chao yeaj
Hello all The gtk's document file saids "GTK+ knows all names from the X color database /usr/lib/X11/rgb.txt)" But ,in my PC, i can not find this file named "rgb.txt" My OS is :Fedora Core 5 Why ? Any comments would be much appreciated ,and thanks in advance

The dial's pointer looks like a sawtooth,how to render it ?

2006-08-29 Thread chao yeaj
Hello everyone In the Gtk+2.0 tutorial,there is a dial widget When i enlarge it, the pointer's like a sawtooth, How to render it ,in order to make it more smoothly ? I have no idea, i need your help Any comments would be much appreciated ,and thanks in advance ! _

How to set the "window" widget's border to zero

2006-08-28 Thread chao yeaj
Hello everyone You know, the gtk_container_set_border_width function can set the border's width of container but ,when i use this function to set my application's main window's border to zero , I failed I want my main window has no border ,how to achieve this ? I ne

Question about Data Exchange

2006-08-28 Thread chao yeaj
Hello everyone You know ,in an application one widget may associated with one data member For example,there is a entry widget ,the user can write some data into the entry widget;In the application, there must be a data variable named str_widget,associated to the entry widget. When t

How to change the label's text's font size

2006-08-26 Thread chao yeaj
Hello everyone You Know,the label widget displays text I want to change the Font Size of the label's text, But i did not know how to do that. I found somebody change the font size using <...small ...> <...large ...> But i want the change the font size to a certain siz

Question about gtk_label_set_justify()

2006-07-24 Thread chao yeaj
Hello everyone You knowe ,there is a function called gtk_label_set_justify(),which used to modify the label's text'sjustify mode my code as follow GtkWidget *label = NULL; gtk_label_new(" I am label!"); gtk_label_set_justify(GTK_LABEL(label),GTK_JUSTIFY_FILL); but ,this d

Compile error with /usr/include/cairo/cairo.h

2006-07-24 Thread chao yeaj
Hello everyone I meet a compile error when make my application The error message like this: //-- In file included from /usr/include/gtk-2.0/gdk/gdkcolor.h:30, from /usr/include/gtk-2.0/gdk/gdkcairo.h:23,

Re: Question about put "GtkWidget" pointer as function's argument

2006-07-17 Thread chao yeaj
Sorry,my code should be this : other_function(GtkWidget * splash); not other_function( ) I made a mistake at the first time, sorry! ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-a

Question about put "GtkWidget" pointer as function's argument

2006-07-16 Thread chao yeaj
Hello everyone My code like this: int create_image_from_file(GtkWidget *splash) { GtkWidget image = NULL; GtkWidget frame = NULL; image = gtk_image_new_from_file("~/splash.png"); frame = g

How can i show a GtkImage widget ?

2006-07-16 Thread chao yeaj
Hello,everyone I have GtkWidget like this: GtkWidget *image = gtk_image_new_from_file("~/image.jpg"); and i show that widget like this: GtkWidget *frame = gtk_frame_new(NULL); gtk_container_add(GTK_CONTAINER(frame),image); gtk_show_widget_all(frame

What's worry with the "entry" widget? It makes my application so ugly!

2006-07-16 Thread chao yeaj
Hello everyone First ,I am sorry for my poor Englisth ! In my application, there are sveral "entry" widgets usually ,they are nice, and the widget's default size is that: it's width can accommodate 12 characters ,as follow, +-+ |0123456

Strange compile error : /usr/include/cairo/cairo.h:55: error: expected ‘=’, =?UTF-8?Q?=E2=80=98,=E2=80=99,_=E2=80=98; =E2=80=99?= , ‘asm’ or ‘__attribute __’ before ‘int’

2006-07-11 Thread chao yeaj
Hello everyone I meet a compile error as follow: when I compile my source file :state_panel.c,I meet the error message when remove the source file from my applicaion,no this message,why? [EMAIL PROTECTED] tsz]$ make gcc -c -Wall -g `pkg-config --cflags gtk+-2.0` `pkg-config --libs gt

I did not know this leak memory or not (gtk_object_set_data)

2006-07-09 Thread chao yeaj
Hello everyone I use function``gtk_object_set_data'' to set data to object my code like this: /***/ guint *p = NULL; p = g_malloc0(sizeof(guint)): gtk_object_set_data(GTK_OBJECT(button),"key",p); /**

About gtk_object_set_data()

2006-07-09 Thread chao yeaj
Hello everyone I have a check button and the check button may have an associated data,which is an source id returned by g_timeout_add() function I do this,because,the check button may be need a function periodically changing its attributes to manage the source i

How to keep the check button' checked state

2006-07-09 Thread chao yeaj
Hello ,everyone i have a check button i want to manage the check button's check state using source code and i want no matter how the user click the check button , the check button keeps its state i connected to the check button's clicked signal,and ac

Help, How to mange the id returned by g_timeout_add

2006-07-07 Thread chao yeaj
Hello,all You know ,we can register a timeout function using g_timeout_add and g_timeout_add return an ID And,we must mannually remove the timeout function using g_source_remove The problem is,in my application,there are several timeout functions ,in many modules In my ap

Why gtk_bin_get_child() does not work?

2006-07-07 Thread chao yeaj
Hello ,everyone I have a problem with "gtk_bin_get_child" my code is like this: // GtkWidget * radio_button = NULL; GtkWidget * label = NULL; radio_button = gtk_radio_button_new(NULL); /* There ,the pointer radio_b

Why ? When segmentation fault,there has no "core" file

2006-07-07 Thread chao yeaj
Hello everyone I compiled my application with the ``-g '' options and when debug with gdb, i can list the source file The problem is : when segmentation fault ,there has nocore file if the has a core file ,i can debug it, but there has nocore file why?

Re: How to get and change the RadioButton's display texts

2006-07-07 Thread chao yeaj
thank you but i want to get the "label" widget of the radio button and then,chang the label text's color and font On 7/7/06, Iago Rubio <[EMAIL PROTECTED]> wrote: > On Fri, 2006-07-07 at 16:15 +0800, chao yeaj wrote: > > Hello ,all > > You know,t

How to get and change the RadioButton's display texts

2006-07-07 Thread chao yeaj
Hello ,all You know,the radio button has its display text, i think there is a label widget i want to chang the text of the radio button but i do not know how to do that i need your help Any comments would be much appreciated,and thanks in advance _

when wride my own widget, how to keep the rate of the widget's height and width at a constant value

2006-07-04 Thread chao yeaj
Hello everyone First ,i apologize for my poor English I am writing my own gtk widget for my application What i want to achieve is that: when the user change the widget's size with his mouse,i want the widget keep this: height/width = 3/4 .

When packing widgets, what is the difference between "box" and "table "

2006-07-03 Thread chao yeaj
Hello, everyone First ,i am sorry for my terrible English. When packing widgets ,we can use the box widget or the table widget,but what is the difference ? when many widgets packed to the box or table,how to modify the "tab order" of those packed widgets ? Any hint

Help!Which widget is my need!

2006-06-30 Thread chao yeaj
Hello everyone First,i ma really sorry for my terrible English. In my application,there are many peripherals device indicators, When one device working smoothly,the corresponding indicator will glimmering with green(color);but when the device meet some exception error,or broken down, t