colors in pixmap

2002-02-01 Thread Marco Lettere
hello everyone, suppose I've a pixmap with a color which I want to modify with 3 slider widgets for RGB. The way I'm performing it now is to destroy the old pixmap, change the xpm C structure and then recreate the pixmap with the new data. Isn't there a better way (less expensive) of performing

RE: [INIMSS] GtkCList :: Wrapping Text in Cells

2002-02-01 Thread zze-coframi balr001
Title: RE: [INIMSS] GtkCList :: Wrapping Text in Cells Hello, you can get the text of a GtkCList cell using gtk_clist_get_text (GtkCList * clist, gchar * texte); and put a text in a cell using gtk_clist_set_text (GtkCList * clist, int row, int column, gchar * texte); With your variable

Re: [INIMSS] GtkCList :: Wrapping Text in Cells

2002-02-01 Thread Dino Cherian K
Hi I think you had not really understood the situation. I actually meant to wrap the text only in the display of the cell and not the data. By default the text that exceeds the limit of the cell is truncated. I want to avoid this truncation and make the text displayed wrapped-down so that we

Re: drawing a line

2002-02-01 Thread Sven Neumann
Hi, Shiraz Baig [EMAIL PROTECTED] writes: I changed the parameters as suggested by Mr Neumann and viola! I am drawing the lines without expose event and only with pushing a button. now move your mouse over the line you've just drawn or obscure the window by moving another window over it.

RE: [INIMSS] GtkCList :: Wrapping Text in Cells

2002-02-01 Thread zze-coframi balr001
Hello, Now I undestand your point. Why don't you use ScrolledWindow ?? If you don't want to see the scroll bar, you put the gtk_policy to Never I explain : 1- You create you window 2- You add you scrolledwindow and put gtk_scrolled_window_set_policy (scrollwindow,

Re: What event has happened?

2002-02-01 Thread John . Cupitt
hzeng wrote: At the virtual screen of XWindow,when I do nothing to my app window and only move the mouse, so my app window will move out of the view port bordered by the monitor. In this situation I want to do some thing in my app, but how can I get the signal, or what event happen?

Re: drawing a line

2002-02-01 Thread John . Cupitt
Hiya, try the page for the drawing area widget: http://gtk.org/tutorial/sec-thedrawingareawidget.html I think this explains the problem. With a window system, you don't just draw on the screen. What happens when your window is covered or uncovered? You need to be able to recreate any part of

Re: What event has happened?

2002-02-01 Thread hzeng
Hi, I think you misunderstand my meaning. I want to get the signal emit by the app window when I move the mouse in anywhwere of the virtual desktop, the enter_notify_event and the leave_notify_event is emit only the mouse enter the app window and leave the app window. I must do

Re: What event has happened?

2002-02-01 Thread John . Cupitt
Ah, sorry, I misunderstood. You could grab the pointer: then you get all mouse movement until you ungrab. Of course, this will stop all other programs from working :-( so you must be very careful. gdk_pointer_grab() and gdk_pointer_ungrab(). John hzeng wrote: Hi, I think you

Re: GUI design

2002-02-01 Thread Luciano Chavez
On Wed, 2002-01-30 at 20:34, Raymond Wan wrote: Hi all, Not directly related to GTK+, but I was wondering if anyone could suggest a book which talks about how to design a GUI. In particular, what are the do's and don'ts of GUI design. And, even better, if such a book exists which

GTK without X ???

2002-02-01 Thread Flávio Alberto Lopes Soares
Hello all, I hear (in Linux for PlayStation2 Forum) about some version of GTK+ that access directly the framebuffer, does not need for X, this proceed , if yes where can I found information about this (for PC X86) ? Thanks in advance Flavio Alberto

Problem with *widget on show_event w/ idle process

2002-02-01 Thread Jason LaPenta
Hello, I'm using glade. I'm starting up an idle process when the main window is shown. I'm passing a widget pointer to the idle process so it can do widget lookups with lookup_widget(). If I start the idle process under a show event, then lookup_widget fails and causes my program to exit; Any

RE: GTK without X ???

2002-02-01 Thread zze-coframi balr001
Hello, there's a version of GTK that directly access the framebuffer, but it's under developpement. It's GTK 1.3.X This version of GTK doesn't need an X Server. You can find it in rmpfind.net or on gtk.org You can find information on it on gtk.org or directfb.org Isabelle -Message

RE: Problem with *widget on show_event w/ idle process

2002-02-01 Thread zze-coframi balr001
Title: RE: Problem with *widget on show_event w/ idle process Hello, Do you have named your widget using gtk_widget_set_name (GtkWidget * , char *); ?? Before making your call to lookup_widget, try to print the result of gtk_widget_get_name (GtkWidget *) GtkWdget * window =

RE: GTK without X ???

2002-02-01 Thread Flávio Alberto Lopes Soares
Can I compile my application normally (I making my application using GTK+ 1.2.10), or I must make some changes ? Thanks in advance Flavio Alberto Em 01 Feb 2002 15:50:59 +0100, zze-coframi balr001 escreveu: Hello, there's a version of GTK that directly access the framebuffer, but it's

RE: GTK without X ???

2002-02-01 Thread zze-coframi balr001
Hello, you don't need to make some changes. You just have to compile your code using the GTK 1.3.X for linux-fb librairies. Isabelle -Message d'origine- De : Flávio Alberto Lopes Soares [mailto:[EMAIL PROTECTED]] Envoyé : vendredi 1 février 2002 16:12 À : zze-coframi balr001 Cc :

setting the font in a program using gtk 1.3.12

2002-02-01 Thread K P-W
I have been trying to find out how tp set the font and the fontsize in my program using gtk version 1.3.12 because the standard font is unreadable. whatever i do, i cant change the font. how do i do this or where in the gtk library is the font and its size defined? thanx in advance

GNode and GtkCTree

2002-02-01 Thread Randy Rueckner
hello there! i write a little application to manipulate and filter magnetic resonance tomographie - images using glib/gtk. the main part is done - gtk is really great, but now i have a little problem and hope someone here can help me. i want to build a GtkCTree which shows the local images, but

linker problems

2002-02-01 Thread Paul Moore
Hi - I'm trying to build gtk+-1.2.10 on Solaris 8. I started off by building glib-1.2.10. I ran the configure script, did a make, followed by a make install. See the attached file (lib_list) for a list of libraries that were installed as a result of the make install. I then tried to build

Re: Horiz motion: What is faster/better than redrawing pic moved 1 pixel to left 100x?

2002-02-01 Thread Umesh Chattopadhyaya
Had I been in need of that situation, I would simply have put the pixmap into a scrolled window. Wouldn't that be faster?? I guess so!! Ishan Suppose I want to simulate a picture moving across a widget/pixmap. I *could* erase it and redraw it moving it 1 pixel at a time. but... is

Catching keys combinations

2002-02-01 Thread Flávio Alberto Lopes Soares
Hello again, I need to catch key combinations (ex.: CTRL + X + any key) , my application windows are connected with the key_press_event, but I view only 1 key press in moment, what I do ? Thanks in advance Flavio Alberto ___ gtk-list mailing list

Re: GTK without X ???

2002-02-01 Thread Havoc Pennington
Flávio Alberto Lopes Soares [EMAIL PROTECTED] writes: Can I compile my application normally (I making my application using GTK+ 1.2.10), or I must make some changes ? You will need to port to 1.3.x/2.0, which is fairly simple and a good idea anyway. There's some information in the

Re: GUI design

2002-02-01 Thread Havoc Pennington
Hi, User Interface Design for Programmers by Joel Spolsky is good. It's online in shortened form but the paper version is enough better to be worth buying I think. Havoc ___ gtk-list mailing list [EMAIL PROTECTED]

Problem passing pointer to widget with gtk_idle_add()

2002-02-01 Thread Jason LaPenta
MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Hello, When I pass a pointer to a widget with void on_scan_window_show( GtkWidget *widget, gpointer user_data ) { printf( adding main_idle 0x%x\n, widget ); g_idle_id = gtk_idle_add( main_idle, widget ); } By the time the

Re: Catching keys combinations

2002-02-01 Thread Paul Davis
I need to catch key combinations (ex.: CTRL + X + any key) , my application windows are connected with the key_press_event, but I view only 1 key press in moment, what I do ? if i understand your question (which i am not confident about), then you must keep track of keys yourself. modifier keys

Re: HELP: Compiling GTK+ Applications on UNIX

2002-02-01 Thread Paul Davis
Paul Davis [EMAIL PROTECTED] writes: i sincerely hope that in a future release of the 1.2 series, pkg-config gets added. Note that pkg-config has some dubious legacy hacks in it - try pkg-config --cflags gtk for example. which version? 0.8.0 just reports an error if i try that.

Re: setting the font in a program using gtk 1.3.12

2002-02-01 Thread Havoc Pennington
K P-W [EMAIL PROTECTED] writes: I have been trying to find out how tp set the font and the fontsize in my program using gtk version 1.3.12 because the standard font is unreadable. This really isn't a reason to hardcode the font in your app - that will just result in every app having a

Re: colors in pixmap

2002-02-01 Thread rsteinke
From: Marco Lettere [EMAIL PROTECTED] hello everyone, suppose I've a pixmap with a color which I want to modify with 3 slider widgets for RGB. The way I'm performing it now is to destroy the old pixmap, change the xpm C structure and then recreate the pixmap with the new data. Isn't there

Re: GTK without X ???

2002-02-01 Thread Flávio Alberto Lopes Soares
Hello again Where can I download GTK+2.0 ? Thanks Flavio Alberto Em 01 Feb 2002 11:10:38 -0500, Havoc Pennington escreveu: Flávio Alberto Lopes Soares [EMAIL PROTECTED] writes: Can I compile my application normally (I making my application using GTK+ 1.2.10), or I must make some changes

Re: HELP: Compiling GTK+ Applications on UNIX

2002-02-01 Thread Sven Neumann
Hi, Havoc Pennington [EMAIL PROTECTED] writes: Paul Davis [EMAIL PROTECTED] writes: Paul Davis [EMAIL PROTECTED] writes: i sincerely hope that in a future release of the 1.2 series, pkg-config gets added. Note that pkg-config has some dubious legacy hacks in it - try

Re: HELP: Compiling GTK+ Applications on UNIX

2002-02-01 Thread Paul Davis
0.8 should have this. I'm pretty sure it was there almost from the start, even before 0.8. What error do you get? If you strace -f is there any fork/exec of gtk-config going on? it doesn't fork/exec it, doesn't open it, stat it, read it or mmap it. --p

Re: HELP: Compiling GTK+ Applications on UNIX

2002-02-01 Thread Havoc Pennington
Sven Neumann [EMAIL PROTECTED] writes: I hope you are joking here. Forking gtk-config would be a really evil hack. If that's indeed what pkg-config does, a crash is what you deserve. It allows you to use PKG_CHECK_MODULES with the GNOME 1 platform. It's kind of a cheesy special case, but

Re: GTK without X ???

2002-02-01 Thread Havoc Pennington
Flávio Alberto Lopes Soares [EMAIL PROTECTED] writes: Where can I download GTK+2.0 ? Get 1.3.13 (the unstable version that will become 2.0). It's on ftp.gtk.org. Havoc ___ gtk-list mailing list [EMAIL PROTECTED]

Is this thread-safe in GTK+....

2002-02-01 Thread Chris Seberino
I want to use pthreads to have a thread that just generates numbers used by GTK+ in another thread for drawing. (pixmap plot of the numbers) I believe variables are global with pthreads but are there any gotchas to this? Do I need to use semaphores? (I must find out what they are first!) :(

Re: GNode and GtkCTree

2002-02-01 Thread Andreas Scherf
Am Don, 2002-01-31 um 15.40 schrieb Randy Rueckner: hello there! i write a little application to manipulate and filter magnetic resonance tomographie - images using glib/gtk. the main part is done - gtk is really great, but now i have a little problem and hope someone here can help me. i

Re: HELP: Compiling GTK+ Applications on UNIX

2002-02-01 Thread Havoc Pennington
Paul Davis [EMAIL PROTECTED] writes: ah. thats different. thats an m4 macro that probably calls pkg-config and handles failure. that doesn't mean pkg-config itself can handle it. No, pkg-config itself definitely does ask a set of legacy *-config scripts for results if it can't find .pc

GTK2 and gettext

2002-02-01 Thread Ralph Walden
It seems to me that glib innow REQUIRES the use of GNU gettext, which is covered under GPL. If that's true, then GTK2 can no longer be used for commercial software development. Is this intentional? Am I missing something? Is there a way to use glib/GTK2 without GNU gettext? Thanks,

Re: GTK2 and gettext

2002-02-01 Thread Havoc Pennington
Ralph Walden [EMAIL PROTECTED] writes: It seems to me that glib innow REQUIRES the use of GNU gettext, which is covered under GPL. If that's true, then GTK2 can no longer be used for commercial software development. Is this intentional? Am I missing something? Is there a way to

Re: GTK2 and gettext

2002-02-01 Thread Ralph Walden
Where can I obtain the LGPL version of gettext? I downloaded the gettext-0.11 version from gnu.org, and there is no mention of LGPL, only GPL. Thanks, Ralph Walden Havoc Pennington wrote: Ralph Walden [EMAIL PROTECTED] writes: It seems to me that glib innow REQUIRES the use of GNU

Re: GTK2 and gettext

2002-02-01 Thread Ralph Walden
Oops, sorry. I didn't look closely enough. in the NEWS file with gettext-0.11: Version 0.10.40 - September 2001 * The libintl library is now covered by the GNU LGPL. The tools are still covered by the GNU GPL. Thanks, Ralph Walden Havoc Pennington wrote: Ralph Walden [EMAIL

Re: GTK2 and gettext

2002-02-01 Thread Havoc Pennington
Ralph Walden [EMAIL PROTECTED] writes: Where can I obtain the LGPL version of gettext? I downloaded the gettext-0.11 version from gnu.org, and there is no mention of LGPL, only GPL. Look at intl/COPYING.LIB-2.1 in the source tree. Only the library part of gettext is LGPL, the command line

Re: Is this thread-safe in GTK+....

2002-02-01 Thread Soeren Sandmann
Chris Seberino [EMAIL PROTECTED] writes: I want to use pthreads to have a thread that just generates numbers used by GTK+ in another thread for drawing. (pixmap plot of the numbers) I believe variables are global with pthreads but are there any gotchas to this? Do I need to use

How to set only ONE Column editable (GTK2)

2002-02-01 Thread Andreas Scherf
I have another problem, i have 2 columns : Number Name Now i want that the user could edit the name but not want that he could change the number. I have solved this by dont let the changes come trough : column = g_object_get_data (G_OBJECT (cell), column); if ((gint) column==NUMBER_COLUMN) {

Re: How to set only ONE Column editable (GTK2)

2002-02-01 Thread Havoc Pennington
Andreas Scherf [EMAIL PROTECTED] writes: I have another problem, i have 2 columns : Number Name Now i want that the user could edit the name but not want that he could change the number. I have solved this by dont let the changes come trough : column = g_object_get_data (G_OBJECT (cell),