why that not working?

2002-01-21 Thread 黃慶 Kason Huang
hello: for creating a colorful button,I do a testing code,however,that not working? why and how to do?anyone could help me? #include #include GdkColor cyan = {0,0x,0x,0x}; int main(int argc,char *argv[]) { GtkWidget *window; GttkWidget *button1; GtkWidget *button2; GtkWidget

Re: why that not working?

2002-01-21 Thread Sven Neumann
Hi, ¶À¼y Kason Huang <[EMAIL PROTECTED]> writes: > hello: > for creating a colorful button,I do a testing code,however,that not working? > why and how to do?anyone could help me? > > #include > #include > > GdkColor cyan = {0,0x,0x,0x}; you can't allocate a color like this. I'd su

GUI problem

2002-01-21 Thread Ricky Foo
Hi all, I have this program which monitors incoming connections and updates some fields in the GUI. The problem is that several threads can access the GUI at once. I have tried it out and the GUI seems to corrupt itself most of the time (it can't draw properly). Any ideas on how I can solve

Re: how to set a button's background?

2002-01-21 Thread Jean-Christophe Berthon
how to set a button's background?Hello, I'm using this method to paint the background of a CList cell in a different color, maybe you can apply that to your case : GdkColor xColor; GdkColormap *pxColorMap; /* Get the colormap from the GtkCList object */ pxColorMap = gtk_widget_get_col

Re: why that not working?

2002-01-21 Thread Jean-Christophe Berthon
Hello :-) This is not working because "&cyan" means that you give the address of the variable "cyan" which then should be declare somewhere. gdk_windows_set_background require as a second argument a pointer to a GdkColor structure. To allocate this structure you need to declare a GdkColor object.

Re: GtkText patch code

2002-01-21 Thread John . Cupitt
Hellenthal wrote: > I'm using wxGTK-2.2.9 and gtk+-1.2.10 in a project over here and have a logging > window for which wxWindows uses the GtkText widget. Unfortunatly it has no > horizontal scrollbar. I can adapt the wxWindows code to show a horizontal > scrollbar but it doesn't work. GtkText

Re: gtk_file_selection_new

2002-01-21 Thread John . Cupitt
Chip Rodden wrote: > I'm trying to modify a gtk program which uses a file selection > widget.(gtk_file_selection_new) I have maybe 3 hours of experience > looking at gtk code so I'm fairly clueless. What I am trying to do is > to limit the user to just one directory where he can open from or

Re: Re :Re: How can i play MP3?

2002-01-21 Thread Olaf Leidinger
Hi all! > I know what is gtk,but my means > what is library for play MP3 in > Linux or C programming! Why don't you try mpg123 or something similar. You might start it in another process. There is also libmpeg and liblame but I dont know whether they play mp3 files. > Thanks,but i don

Re: Bug fix: gtk programs didn't work in zh_TW.Big5 locale

2002-01-21 Thread Mike Fabian
Owen Taylor <[EMAIL PROTECTED]> writes: > Mike Fabian <[EMAIL PROTECTED]> writes: > >> with recent CVS versions of gtk-1.2.10, programs linked against >> gtk didn't work in zh_TW.Big5 locale anymore. > > There are no CVS versions of GTK+-1.2.10 :-). There is a CVS branch > that we'll use when we d

Re: How can it do that?

2002-01-21 Thread Rogerio Villela de L . Bastos
On Sun, 20 Jan 2002 23:58:23 -0500 (EST) Jamie Guinan <[EMAIL PROTECTED]> wrote: > > Here's my take, > > This creates a *new* GtkButton object. The previous value of "button" is > lost now, but you must have attached the "first" button to a vbox or > something when you said "...", so Gtk sti

gtk-1.3.12.90 (redhat rawhide) GtkTreeView bug?

2002-01-21 Thread Boszormenyi Zoltan
Hi! I tried gtk-demo from the RedHat rawhide's gtk2-1.3.12.90. I found it quite nice and stable for most things. However, the "Editable Cells" demo crashes when I do the following: select one of the cells is the last row and press the "remove item" button. The selected cell remains on the screen

TR: how to set a button's background?

2002-01-21 Thread AZINCOURT, Eric
unsubscribe -Message d'origine- De?: Jean-Christophe Berthon [mailto:[EMAIL PROTECTED]] Envoye?: lundi 21 janvier 2002 12:01 A?: 6@base[GTK_STATE_NORMAL] = xColor; pxUndetStyle->base[GTK_STATE_ACTIVE] = xColor; pxUndetStyle->base[GTK_STATE_PRELIGHT] = xColor; pxUndetStyle->base[GTK_STA

Re: why that not working?

2002-01-21 Thread Havoc Pennington
Hi, Read http://pobox.com/~hp/gtk-colors.html Havoc ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

Re: gtk-1.3.12.90 (redhat rawhide) GtkTreeView bug?

2002-01-21 Thread Havoc Pennington
Boszormenyi Zoltan <[EMAIL PROTECTED]> writes: > > I tried gtk-demo from the RedHat rawhide's gtk2-1.3.12.90. > I found it quite nice and stable for most things. > However, the "Editable Cells" demo crashes when I do the > following: select one of the cells is the last row and > press the "remov

GtkTreeView pop up menu on right click

2002-01-21 Thread Thomas Amsler
I would like to have a pop up menu appear when one right clicks on a GtrTreeView item. I am using gtk+-1.3.12. Does someone have some sample code that implements this task, or could someone point me in the right direction of implementing this feature. Thank you very much. -- Thomas Amsler [E

Memory Leak? pango_layout_set_markup

2002-01-21 Thread Jason Tackaberry
Either I'm doing something wrong, or there is a memory leak within pango_layout_set_markup. I have a PangoLayout that I am reusing to render text to a drawable. I'm just calling pango_layout_set_markup to change the text. It gets called quite a bit, and I noticed my program growing. I've isola

Re: Re :Re: How can i play MP3?

2002-01-21 Thread Vahid Zahiri
Hi Olaf Thanks for your help. But if i want, when user clicked on button play a Little sound like or ...,(not Beep) how can do this? Is it possible play .wav file? Thanks Vahid Zahiri __ Do You Yahoo!? Send FREE video email

Re: Re :Re: How can i play MP3?

2002-01-21 Thread Paul Davis
> Thanks for your help. > But if i want, when user clicked on button > play a Little sound like or ...,(not Beep) > how can do this? > > Is it possible play .wav file? this is not the correct list to ask these questions. GTK is a toolkit for constructing the visual portions of graphical user in

Re: Memory Leak? pango_layout_set_markup

2002-01-21 Thread Havoc Pennington
Jason Tackaberry <[EMAIL PROTECTED]> writes: > If this is a genuine bug, please let me know and I will file it in > bugzilla. If something does need to be freed, the API documentation > should be updated. :) > I just fixed it in CVS, thanks for the nice test case. (Simple compilable test

Sorry 4 my Question!

2002-01-21 Thread Vahid Zahiri
Hi Sir :) then i will ask ONLY & ONLY GTK Questions! Sorry for my last Question. Thanks Vahid Zahiri Isfahan University of Technology Linux Lab. --- Paul Davis <[EMAIL PROTECTED]> wrote: > > Thanks for your help. > > But if i want, when user clicked on button > > play a Little sound l

Icon for Application?

2002-01-21 Thread Vahid Zahiri
Hi When i make a application, how can set icon for my window? Thanks Vahid Zahiri __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ ___ gtk-list mailing

Re: Difficulties in using GTK from Emacs

2002-01-21 Thread Richard Stallman
A conceptual misunderstanding here is that the queue of GdkEvents makes up the entire GTK+ main loop. The main loop is much more general than that, it represents any kind of task, including tasks done at certain intervals (timeouts) and tasks done when there are no other tasks

about button's problem......

2002-01-21 Thread 黃慶 Kason Huang
hi,hello: Thanks for your helps. now i want to do:my condition is being no mouse,the only terminal controlling tool is the keyboard.(i am doing a STB project.). when a button get focus(with keyboard) , setting the button's background to be a color. then when the button lost focus,setting t

Re: Difficulties in using GTK from Emacs

2002-01-21 Thread Havoc Pennington
Richard Stallman <[EMAIL PROTECTED]> writes: > > It might be important to explain this more explicitly in the > documentation. If there are already solutions to some of the > problems Jan encountered, I think they should be documented too. > Can you do that? > Sure, I do my best to work on GTK