Re: (2) Segmetation fault assigning a GdkPixmap* to a GdkPixmap& parameter (using C++)

2001-06-06 Thread Helmethead
On Wed, Jun 06, 2001 at 11:16:37PM +0200, Ignacio Nodal wrote: > Sorry,there was a fault on the function I pasted ;)) > > gboolean ParameterKernel::ReadPixmap(gchar **pixstring, GdkPixmap& pix) > //Reads a pixmap from a xpm-format string & stores it in GdkPixmap& pix > { > > GdkPixmap *pixma

Re: (2) Segmetation fault assigning a GdkPixmap* to a GdkPixmap& parameter (using C++)

2001-06-06 Thread Havoc Pennington
Ignacio Nodal <[EMAIL PROTECTED]> writes: > but not the segmentation fault I get with "pix = *pixmap;" which I don't > really understand ;(( You can't copy GdkPixmap by value. It can only be manipulated as a pointer. Havoc ___ gtk-list mailing list [

(2) Segmetation fault assigning a GdkPixmap* to a GdkPixmap& parameter (using C++)

2001-06-06 Thread Ignacio Nodal
Sorry,there was a fault on the function I pasted ;)) gboolean ParameterKernel::ReadPixmap(gchar **pixstring, GdkPixmap& pix) //Reads a pixmap from a xpm-format string & stores it in GdkPixmap& pix { GdkPixmap *pixmap; GdkBitmap *mask; pixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL

Segmetation fault using assigning a GdkPixmap* to a GdkPixmap& parameter (using C++)

2001-06-06 Thread Ignacio Nodal
On Thu, May 24, 2001 at 07:29:29PM +0100, Ignacio Nodal wrote: > Hi, > > I want to write a function to read a pixmap string and store it into a > GdkPixmap, but without having to know which widget it will be added into.By > the way the widget could be still not created at all. > The problem is if

1 bit GdkVisual

2001-06-06 Thread Ron Steinke
I'm trying to add a utility program which will pull certain GdkBitmaps from the code of my main program and save them as xpms. Since nothing I'm doing in the utility program actually uses gtk, I'm running gdk_init() instead. Everything works fine, except that to create a colormap for the b

Re: Help, how to set background color of a text(window)

2001-06-06 Thread Havoc Pennington
Paul Davis <[EMAIL PROTECTED]> writes: > >whether there is an easy way to set up the background > >color of a text widget (or a window). > > Have you read Havoc's color-setting FAQ? Search the archives of this > list; it was posted here recently. It would be nice if it showed up in > the GTK F

Re: Help, how to set background color of a text(window)

2001-06-06 Thread Valdis . Kletnieks
On Wed, 06 Jun 2001 10:11:51 CDT, Skip Montanaro said: > Agreed. Is there a move afoot to Gtk-ize XEmacs? I found the following > page: > > http://www.cs.indiana.edu/elisp/gui-xemacs/ XEmacs 21.4 and 21.5 have --with-gtk options for configure. Unfortunately, at the current time, you have

Re: Help, how to set background color of a text(window)

2001-06-06 Thread Skip Montanaro
> "Paul" == Paul Davis <[EMAIL PROTECTED]> writes: Paul> implement yet another text editor that will no doubt ... still Paul> fail to do everything done by long lived text editors that don't Paul> meet our particular aesthetic criteria. Agreed. Is there a move afoot to Gtk-ize X

Re: Help, how to set background color of a text(window)

2001-06-06 Thread Paul Davis
>Hi everyone, > We are currently writing a text editor and I wonder despite the mellifluous superfluousness of existing text based applications for unix like operating systems, we have decided to implement yet another text editor that will no doubt include bits and pieces of the functionality

Re: Printing

2001-06-06 Thread [EMAIL PROTECTED]
Try to use gtkextra library it provides tools for drawing graphics, and for printing in ps format, you can find it in "gtkextra.sourceforge.net" On Wed, 6 Jun 2001 [EMAIL PROTECTED] wrote: > Hello!!! > > I am writing an application using gtk and I want to allow the user to > print so

To Moritz Angermann

2001-06-06 Thread Edson Lima
Hi Moritz Could you help me with some study aid of GTK+ with PHP, and how to access database?? ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

Help, how to set background color of a text(window)

2001-06-06 Thread Howard Zhou
Hi everyone, We are currently writing a text editor and I wonder whether there is an easy way to set up the background color of a text widget (or a window). We can set the background of the text we will insert, but that doesn't fill the entire window, so is there something like a function that

Re: gtk_editable_get_chars=gtk_entry_get_text

2001-06-06 Thread John Cupitt
dodi-nug wrote: > i failed to get text from entry text's widget, it seem that > in gtk tutorial page(www.gtk.org/tutorial/sec-textentries.html) > doesn't work too. > i have tried gtk_editable_get_chars ( Mr. bowman's advise), > but i didn't work too. It should work. Try: char *txt = gtk_

Re: Removing a selected list item from a combo box

2001-06-06 Thread John Cupitt
Ian King wrote: > Is there any way that a listitem can remove itself from a combo box on its > selection without the application seg faulting. Hi Ian, I remember struggling with something like this ... the solution I found was to warp the focus to some other widget (with gtk_widget_grab_focus())

Re: seg fault, gtk_fixed_expose

2001-06-06 Thread John Cupitt
Thomas J Lewis wrote: > get segmentation fault when clicking > on windows. doesn't happen all the time. > doesn't point to a line of code in my software. > running xxgdb get error message: > > Program received signal SIGSEGV, Segmentation fault. > 0x401ba306 in gtk_fixed_expose () from /usr/lib/l

seg fault, gtk_fixed_expose

2001-06-06 Thread Thomas J Lewis
get segmentation fault when clicking on windows. doesn't happen all the time. doesn't point to a line of code in my software. running xxgdb get error message: Program received signal SIGSEGV, Segmentation fault. 0x401ba306 in gtk_fixed_expose () from /usr/lib/libgtk-1.2.so.0 (xxgdb) thanks in ad