Saving the whole GTKTextBuffer state

2002-02-20 Thread Germano Rizzo
Hi! I think this question is really stupid, but... isn't there a way to get *all* the text displayed in a GtkTextBuffer? I mean, the text plus all the tags, attributes, pixmaps... just like a word processor would have? I'm using a textbuffer, and I'm going to implement a way to save it

Gtk+2-style auto* scripts

2002-02-20 Thread Germano Rizzo
Hi! just for sake of exploring, I've begun to develop a program in GTK+ 2.0. Now, I'd like to get it packaged properly, so I really need all the automake/autoconf stuff... in the other programs I made, it was easy to find another similar program, just... eeeh... "quote" ;) that kind of

Re: inheritance

2002-02-20 Thread Ramon Alberto Triay Espinosa
El 20 Feb 2002 22:43:13 -0800, [EMAIL PROTECTED] escribió: > > From: Ramon Alberto Triay Espinosa <[EMAIL PROTECTED]> > > > > simple question: > > does all the 'children' widgets inherit all the functions of the > > 'parent' widget? > > I mean, does all functions that apply to a widget, apply to t

How to center the text

2002-02-20 Thread Jyothi
Hi, I have drawn a rectangle using gdk_draw_rectangle. I am using gdk_draw_string to write a char into that rectangle. But every time I am manually centering the char inside the rectangle , I mean by adjusting x an y position of char. It is not accurately centered. Is there any function or w

Re: inheritance

2002-02-20 Thread rsteinke
> From: Ramon Alberto Triay Espinosa <[EMAIL PROTECTED]> > > simple question: > does all the 'children' widgets inherit all the functions of the > 'parent' widget? > I mean, does all functions that apply to a widget, apply to their > children too? > > thanx > rtriay > :) Yep. All you need to do i

Re: move-event

2002-02-20 Thread Havoc Pennington
Ronald Bultje <[EMAIL PROTECTED]> writes: > > is there an event which is triggered by moving windows? expose_event > only gets called on a full repaint, I basically need to do some work > whenever the drawing area is being increased/decreased in size or is > being moved, either relative to the p

inheritance

2002-02-20 Thread Ramon Alberto Triay Espinosa
simple question: does all the 'children' widgets inherit all the functions of the 'parent' widget? I mean, does all functions that apply to a widget, apply to their children too? thanx rtriay :) ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.

RE: move-event

2002-02-20 Thread Esteban Quijano
gtk_signal_connect(GTK_OBJECT(window), "configure_event", GTK_SIGNAL_FUNC(msg_window_setposition), data); gbool msg_window_setposition(GtkWidget *widget, GdkEventConfigure *event, gpointer user_data) { /* Do whatever you want with event->x and event->y */ return TRUE; } The configure_event

move-event

2002-02-20 Thread Ronald Bultje
Hi there, is there an event which is triggered by moving windows? expose_event only gets called on a full repaint, I basically need to do some work whenever the drawing area is being increased/decreased in size or is being moved, either relative to the parent window or relative to the desktop roo

gtk config

2002-02-20 Thread Chris Pollock
Linux newbie here. I'm trying to install a program named BookBase. During the installation I get the following error: The gtk-config script installed by GTK could not be found. If GTK was installed in PREFIX, make sure PREFIX/bin is in your path, or set the GTK_CONFIG environment variable t

RE: When will GTK+2.0 be released?

2002-02-20 Thread David L. Cooper II
Check the mailing list archive at: http://mail.gnome.org/archives/gtk-devel-list/2002-February/thread.html   David -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jimmy LinSent: Wednesday, February 20, 2002 11:42 AMTo: [EMAIL PROTECTED]Subjec

RE: gtk on win32

2002-02-20 Thread David L. Cooper II
Check out: http://www.gimp.org/~tml/gimp/win32//new-downloads.html for more information on the libraries for windows. Regards, David -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Joseba Garcia Etxebarria Sent: Wednesday, February 20, 2002 4:45 PM To:

[GTK help]

2002-02-20 Thread Castor Fou
Thanks for the tips. But, my foreground must be diaphanously because the text on the background must be visible. I think I'm not clear. I have a notebook. In the notebook, I add a GtKFixed with two GtkText which coordonates must be the same. The first GtkText include, for example, a head, the

gtk on win32

2002-02-20 Thread Joseba Garcia Etxebarria
Hi, maybe you have discussed this many times before, but the thing is that i got a project in linux that uses gtk that i want to port to windows (either MSVC5 or cygwin) i'm quite newby to this kind of things, so i don't know where to start from. I've been to gimp.org/win32 but it seems quite

When will GTK+2.0 be released?

2002-02-20 Thread Jimmy Lin
Hello,   I'm a new comer of GTK+, I noticed that the api of GTK+1.2 and GTK+2.0 is incompatible. So should I learn GTK+2.0 is much better now? Please give me some advices. Thanks!!!   Jimmy

RE: [GTK help]

2002-02-20 Thread Esteban Quijano
Let's see. As I understand you want a gtktext over a bigger gtktext, both in the same window, don't you? You can do that with a GtkFixed widget. You can position widgets at fixed coordinates, no matter if one widget is in front of another one.   Esteban Quijano V. Artinsoft corp -Ori

Re: g_strdup()

2002-02-20 Thread John . Cupitt
Hi Ignacio, you need to be more careful about where you strdup, and you need to look at entry_param->_file_name, not at _wrl_name. The rule is that each instance of ParameterFile must own the pointer to the _file_name string. So: strdup() when you set _file_name, free when you unset, and absol

g_strdup()

2002-02-20 Thread Ignacio Nodal
Hi, I'm using the g_strdup() function provided by glib, which is suppose to duplicate a string, to update a file name string stored in a gchar* from a GtkEntry. In fact, it's a member of a my class, so I pass it in the constructor: ParameterFile::ParameterFile(GtkWidget* parent, gchar* para

[INIMSS] Problem with CList, may be a bug in GTK+.

2002-02-20 Thread Dino Cherian K
Hi In my application I had a CList with the selection mode set to Browse (Glade term, hope you will understand). When I tried to add a row using gtk_clist_append the application crashed (segmentation fault). Then I changed the selection mode to Single and the application worked fine. Why is t

Re: [GTK help]

2002-02-20 Thread Bruce A. Smith
Nope, can't be done.   - Original Message - From: Castor Fou To: [EMAIL PROTECTED] Sent: Wednesday, February 20, 2002 1:30 PM Subject: [GTK help] Hi! How I can superpose two GtkText in the same window (in a notebook for example)? In a background, a gtk

[GTK help]

2002-02-20 Thread Castor Fou
Hi! How I can superpose two GtkText in the same window (in a notebook for example)? In a background, a gtktext where you can't modify the text and in the foreground, a gtktext where you can modify the text. Result, you have the background and the foreground in the same window with the super

Re: Gtk drawing

2002-02-20 Thread John . Cupitt
Ricky Foo wrote: > Question about gtk_drawing_area. I created this dialog window with 3 > drawing areas inside. However, no matter how I tried, I couldn't get the > graphics to appear. There is nothing wrong with my callback. I have > already cross-checked it. > > Does GTK+ forbid multiple dr

Re: upgrading GTK1.2 to GTK2.0 and displaying images

2002-02-20 Thread Sven Neumann
Hi, Peter Van Osta <[EMAIL PROTECTED]> writes: > I am currently running a RedHat 7.2 system with GTK1.2 installed. How do > I upgrade from GTK1.2 to GTK2.0 without breaking the system ? I am using > GNOME for my desktop and I do not want to crash the system by changing > libraries the system mig

upgrading GTK1.2 to GTK2.0 and displaying images

2002-02-20 Thread Peter Van Osta
Hi, I am currently running a RedHat 7.2 system with GTK1.2 installed. How do I upgrade from GTK1.2 to GTK2.0 without breaking the system ? I am using GNOME for my desktop and I do not want to crash the system by changing libraries the system might depend on. When compiling a GTK-based program I

How access pixmap info like width&height? (1st arg of configure/expose callback nice...)

2002-02-20 Thread Chris Seberino
Configure and Expose events will use a callback with the first argument being a widget that has nice info about pixmap to be redrawn like width, height, style & "window". How can I access this widget on my own??? Or, how can I get at this info for a pixmap some other way??? Thanks, Chris --