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
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 !
_
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
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
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
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
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,
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
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
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
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
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
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);
/**
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
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
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
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
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?
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
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
_
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 .
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
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
23 matches
Mail list logo