now that we're on GtkDrawingArea... =)

2002-02-27 Thread David Eduardo Gomez Noguera
I was doing some tests on it. I have my DrawingArea on a ViewPort on a ScrolledWindow on a pane on a notebook on a table. like the song... I couldnt use any function that gets a GdkWindow as a parameter. As in the scribble example, the Area is just under the Window, and it works. But i had

RE: drawing area and expose event

2002-02-27 Thread satyajit kanungo
Thanks a lot I shall put all my drawings in the expose event and try my application again. I had taken the sample program form GdkRGB chapter (gdk API Reference) and was trying it the other way round . So whenever I want some drawings to happen in my drawable I should better call a g

Info Regarding GtkEntry

2002-02-27 Thread Ganesan Sethuraman
Hi, Could you please tell me if there is any limatations on the number of characters a GtkEntry widget can hold ? If I give more than 7300(approx) characters, the characters are getting overlapped. Any idea on what could be the problem ? Thanks, S.Ganesan. __

Re: GTK+2 - GtkTreeModel

2002-02-27 Thread Havoc Pennington
Shane Butler <[EMAIL PROTECTED]> writes: > > Just wondering if someone could suggest the best way to move a row in a > GtkTreeModel up or down. > The GtkTreeModel interface is read-only; you have to use the specific subclass of GtkTreeModel to modify things. So for example with GtkListStore

Re: drawing area and expose event

2002-02-27 Thread Havoc Pennington
Christian Seberino <[EMAIL PROTECTED]> writes: > > I thought configure event handler draws *everything* and > expose event handler just redraws portion *uncovered* > e.g. covering with corner of window and then not. > > This would imply that all drawing should happen in configure > event with "

Re: drawing area and expose event

2002-02-27 Thread Christian Seberino
Havoc I thought configure event handler draws *everything* and expose event handler just redraws portion *uncovered* e.g. covering with corner of window and then not. This would imply that all drawing should happen in configure event with "patches" being done in expose event. Am I missing somet

Best way to Print

2002-02-27 Thread Pablo Yaggi
Hi, I want to build a simple application to test printing, I need to print formated text (in paragraphs) and graphics could anyone please give me a direction, how do I do that, with bonobo? gnome_print ? ? ?? Pablo ___ gtk-list mailing list [EMAIL PROT

Force a widget to redraw itself (1.2.10)

2002-02-27 Thread Oliver Singla
Hi, How can I really force a widget to redraw itself ? If I call gtk_widget_queue_draw(), that seems to work only for widgets without an X-Window (such GtkLabel or GtkHSeparator). I attached a expose_event signal to see if the draw is performed or not. TIA, Olivier Singla, QNX, Raleigh NC [EM

GTK+2 - GtkTreeModel

2002-02-27 Thread Shane Butler
Hi all, Just wondering if someone could suggest the best way to move a row in a GtkTreeModel up or down. Thanks, Shane ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

Transparent GtkWidget

2002-02-27 Thread Romain Epita
It is possible to set a GtkWidget transparent ? as a GdkWindow with the function gdk_window_shape_combine_mask ! If it is possible, how I do that ? Romain PARMANTIER A.K.A Castor Delegue SpeC2 Sécretaire BDE Epita-Epitech tel : 06-07-66-16-18 [EMAIL PROTECTED] "L'ho

Re: drawing area and expose event

2002-02-27 Thread Havoc Pennington
"Norman Black" <[EMAIL PROTECTED]> writes: > > The expose handler must be able to redraw any area anyway, so you may > > as well put all drawing there for code cleanliness; putting all > > drawing there is also crucial to be sure you don't have any flicker in > > GTK 2. > > My code does not flic

Re: drawing area and expose event

2002-02-27 Thread Norman Black
> The expose handler must be able to redraw any area anyway, so you may > as well put all drawing there for code cleanliness; putting all > drawing there is also crucial to be sure you don't have any flicker in > GTK 2. My code does not flicker now on GTK or Win32. So if GTK 2 makes my code flick

New Documentation?

2002-02-27 Thread hunchback
Hi, I'm just wondering if GTK+ will have a better documentation? I ask this because some metods aren't even commented, and just by the name you can't say what it does (at least on the gtk 1.2, i haven't used gtk 2). The Java Specification is much better in that mather.. Afonso

Re: Fixed size window

2002-02-27 Thread A R Hummaida
oops read here http://developer.gnome.org/doc/API/gtk/gtkwindow.html A R Hummaida wrote: > this is from API :). read more there under GtkWindow > > > > > > > voidgtk_window_set_policy (GtkWindow > *window, >

Re: Fixed size window

2002-02-27 Thread A R Hummaida
this is from API :). read more there under GtkWindow voidgtk_window_set_policy (GtkWindow *window, gint allow_shrink, gint allow_grow,

Fixed size window

2002-02-27 Thread Andrea Bergia
Hi, I have a simple questions about GTK: how can I lock the size of a window? I want that the the user cannot resize the windows, is there a simple way to do this? Thanks. Andrea. _ Do You Yahoo!? Get your free @yahoo.com address at http:/

Re: More pango-0.26 compile problems

2002-02-27 Thread Sven Neumann
Hi, Jeff Trefftzs <[EMAIL PROTECTED]> writes: > I downloaded pango-0.26.tar.gz last night, and have begun trying > to compile and install it. I managed the ./configure step okay > -- I have installed glig-1.3.15 -- but, like Raymond Wan, my > compilation breaks in the examples directory. Ca

More pango-0.26 compile problems

2002-02-27 Thread Jeff Trefftzs
Hi all - I downloaded pango-0.26.tar.gz last night, and have begun trying to compile and install it. I managed the ./configure step okay -- I have installed glig-1.3.15 -- but, like Raymond Wan, my compilation breaks in the examples directory. Can anyone tell me where to start looking in or

Re: drawing area and expose event

2002-02-27 Thread Havoc Pennington
<[EMAIL PROTECTED]> writes: > > Then I attached an "expose-event" to the drawing area and in the callback I put >>the same > > function(drawing fuction) and it draws properly . > > Do we always need to attach the expose event to the drawing area to draw >>anything on it . > > Is there an

Re: drawing area and expose event

2002-02-27 Thread Havoc Pennington
"Norman Black" <[EMAIL PROTECTED]> writes: > > Are you saying that when a user hits the "e" key in my program I should > generate an expose event to draw the "e" in my window rather than simply > draw the "e" in response to them pressing "e". > What you should do is call gtk_widget_queue_draw_a

Re: drawing area and expose event

2002-02-27 Thread Paul Davis
>Hmmm. "all drawing"!!! > >Are you saying that when a user hits the "e" key in my program I should >generate an expose event to draw the "e" in my window rather than simply >draw the "e" in response to them pressing "e". call gtk_widget_queue_draw(), then redraw in the subsequent expose event. y

Re: drawing area and expose event

2002-02-27 Thread iain
On Wed, 2002-02-27 at 16:47, Norman Black wrote: > Hmmm. "all drawing"!!! > > Are you saying that when a user hits the "e" key in my program I should > generate an expose event to draw the "e" in my window rather than simply > draw the "e" in response to them pressing "e". Well, if you don't do

Re: drawing area and expose event

2002-02-27 Thread Norman Black
Hmmm. "all drawing"!!! Are you saying that when a user hits the "e" key in my program I should generate an expose event to draw the "e" in my window rather than simply draw the "e" in response to them pressing "e". Best Regards, Norman Black Stony Brook Software - Original Message - Fro

Re: GTK_TYPE_BOXED

2002-02-27 Thread Ralph Walden
Thanks, that was the lead I needed. So, if you were deriving a type from GTK_TYPE_BOXED in gtk+-1.2, with the requisite GtkTypeInfo structure and gtk_type_unique call, for gtk-2.0 you just call newtype = g_boxed_type_register_static( name, copy_func, free_func ); and you're all set, no need to

Re: file handling with fopen() and fclose()

2002-02-27 Thread Michael Mitton
On Wed, 27 Feb 2002 [EMAIL PROTECTED] wrote: > On Wed, 27 Feb 2002 06:23:58 EST, Michael Mitton said: > > Even with PAM you need to be root. I had this trouble myself and ended up > > writing a helper script that ran suid as root and passed login info via > > pipes. If you are not root, it se

RE: drawing area and expose event

2002-02-27 Thread hunchback
Hi, > Then I attached an "expose-event" to the drawing area and in the callback I put >>the same > function(drawing fuction) and it draws properly . > Do we always need to attach the expose event to the drawing area to draw >anything >on it . > Is there any other way where I can force th

Re: drawing area and expose event

2002-02-27 Thread Havoc Pennington
"satyajit kanungo" <[EMAIL PROTECTED]> writes: > Do we always need to attach the expose event to the drawing area to draw anything >on it . > Is there any other way where I can force the drawing . > Yes, all drawing should happen in expose_event. There are other ways to do it sometimes,

Re: file handling with fopen() and fclose()

2002-02-27 Thread Valdis . Kletnieks
On Wed, 27 Feb 2002 06:23:58 EST, Michael Mitton said: > Even with PAM you need to be root. I had this trouble myself and ended up > writing a helper script that ran suid as root and passed login info via > pipes. If you are not root, it seems to only auth the user your are > running your script

Re: file handling with fopen() and fclose()

2002-02-27 Thread Havoc Pennington
John Breen <[EMAIL PROTECTED]> writes: > > Ok, I sit corrected. I guess I'll have to add more overhead and figure > out _how_ to handle the authentication. PAM _looks_ like it will do it, > but then again maybe not. > > Has anyone done such a thing then, and prepared to share the > methodolog