null parameter warning issue.

2001-07-25 Thread David Robin
hi everyone, when i use this piece of code: gtk_menu_popup( GTK_MENU (context_menu), GTK_WIDGET (NULL), // GtkWidget *parent_menu_shell, GTK_WIDGET (NULL), // GtkWidget *parent_menu_item, GTK_SIGNAL_FUNC(NUL

Re: null parameter warning issue.

2001-07-25 Thread Jean-Christophe Berthon
I would suggest that you try this : gtk_menu_popup( GTK_MENU (context_menu), (GtkWidget *)NULL, // GtkWidget *parent_menu_shell, (GtkWidget *)NULL, // GtkWidget *parent_menu_item, GTK_SIGNAL_FUNC(NULL), // n

Re: null parameter warning issue.

2001-07-25 Thread John Cupitt
David Robin wrote: > gtk_menu_popup( > GTK_MENU (context_menu), > GTK_WIDGET (NULL), // GtkWidget > *parent_menu_shell, > GTK_WIDGET (NULL), // GtkWidget > *parent_menu_item, > GTK_SIGNAL_FUNC(NULL), // not r

gdk_bitmap_create_from_data() prototype

2001-07-25 Thread Ian Britten
Hi all, Shouldn't the prototype to gdk_bitmap_create_from_data() accept a guchar parameter, rather than a gchar (For the XBM data)? Many (Most?) tools (bitmap, etc) write the XBM format as unsigned char, which appears to be correct according to the info I could find about the file specification.

Re: How to deallocate memory? => a quest for a new memory allocator.

2001-07-25 Thread Enrico Weigelt
Havoc Pennington wrote: > > A bug in your program. Maybe you are freeing things twice and the > second time you have junk memory instead of a widget. seems to be a normal malloc() problem. (gdk functions use d_malloc() and d_free() which currently end up in malloc() and free() ). calling free()

[ADM]: reply-to

2001-07-25 Thread Enrico Weigelt
could the admin of this list please mask the reply-to header, so using the MUA's reply function automatically replies to the list ? ~-n _ Enrico Weigelt meTUX IT Services www: www.metux.de email: [EMAIL PROTECTED] phone: +49 36207 51833

Re: reference counting using a pointer

2001-07-25 Thread Enrico Weigelt
Eduardo PĂ©rez Ureta wrote: > > Could anyone explain me why don't you use: > > void g_io_channel_ref (GIOChannel **channel); > instead of: > void g_io_channel_ref (GIOChannel *channel); you could write an macro for the your case, but the old interface must stay intact. but the cleanest way i

Re: null parameter warning issue.

2001-07-25 Thread David Robin
hi, Here comes the feedback! Jean-Christophe, your solution is working fine. Thanks. John, i first tried NULL parameters as described in the API documentation, but gcc didn't like it (maybe because i use C++\GTK+). That's why I felt i had to ask the mailing-list. Thanks anyway. Sincerly, David

Re: [ADM]: reply-to

2001-07-25 Thread Skip Montanaro
Enrico> could the admin of this list please mask the reply-to header, so Enrico> using the MUA's reply function automatically replies to the list Enrico> ? Doesn't your MUA have both "reply" and "reply to all" functionality? -- Skip Montanaro ([EMAIL PROTECTED]) http://www.mojam.co

GtkSocket focus control?

2001-07-25 Thread Neil Bird
I've put a GTK+ vim into a 1.2 GtkSocket (via GtkPlug). While it works, I can't manage to sort out the input focus correctly. (a) vim doesn't think it has input focus (as per it's cursor shape); I imiagine it's expecting GTK to tell it that (b) all key presses go to vim (and work) *and*

how to change clist background color

2001-07-25 Thread Jim Edwards
Hi, How can I change the background color of an entire clist as opposed to changing just one row? Thanks, Jim ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

GtkStyles and RC-Files.

2001-07-25 Thread Simon Budig
Hi all. The following scenario is given: I want to create an application that has to match certain design-criteria given from other people with no GTK-Look&Feel knowledge. I now try to model my application so that it matches as close as possible to the original design. The design involves Button

Re: GtkStyles and RC-Files.

2001-07-25 Thread Sven Neumann
Hi Simon, Simon Budig <[EMAIL PROTECTED]> writes: > The design involves Buttons in different areas, some are black on white, > some are white on black. Since it would be overkill to derive > GtkButtonBW and GtkButtonWB I thought about GtkStyles. Is it possible > to: > > 1) have two Styles

Re: GtkStyles and RC-Files.

2001-07-25 Thread Sven Neumann
Hi, Simon Budig <[EMAIL PROTECTED]> writes: > > simply define your styles in the gtkrc and add lines like > > > > widget "*foobw*" style "foobw" > > widget "*foowb*" style "foowb" > > > > Then name your buttons "foobw" or "foowb" using gtk_widget_set_name() and > > you are done. > > But th

Callback from which window???

2001-07-25 Thread Pedro Zorzenon Neto
Hi list, :-) I need a program with two identical windows, so I did: ... GtkWidget *winA; GtkWidget *winB; winA = create_winmon (); // <- creates my window with a button gtk_widget_show (winA); winB = create_winmon (); // <- creates another window just like the other gtk_widget_show

How to set GTK_CONFIG

2001-07-25 Thread joev_nylug
While trying to install GIMP I get this 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 to the *** full path to gtk-config. So I try to set the enviromen

Open File../ Save As..

2001-07-25 Thread castelo
Hi, I'm tyring to modified gtkfilesel.c source code (GTK+ 1.2.8) for my own purpose. I having a problem to determine when the program call 'Open File' or 'Save As' dialog box. From which I know(correct me if i'm wrong), Open File and Save As call the same function -> gtk_file_selection_init. But

Re: Callback from which window???

2001-07-25 Thread Paul Davis
> GtkWidget *winA; > GtkWidget *winB; > winA = create_winmon (); // <- creates my window with a button > gtk_widget_show (winA); > winB = create_winmon (); // <- creates another window just like the other > gtk_widget_show (winB); > gtk_main(); > ... > > But there is a problem... both window

Re: Error when usinf NCD Xterminal

2001-07-25 Thread Havoc Pennington
Hi, Owen can answer this better but is out of town, so I'll try. Kevin Handy <[EMAIL PROTECTED]> writes: > I am getting the following error twice (always 2 copies of this error) > on an NCD hmx Xterminal whenever I try to run anything using gtk. > > Xlib: extension "XInputExtension" missing on

Re:How to set GTK_CONFIG

2001-07-25 Thread joev_nylug
Thanks for the infor but neither worked. export gave me a message of declare -x GTK_CONFIG=/usr/local/bin and the /etc/profile already had PATH=/usr/local/bin; still got the same error when I ran ./configure that it can not find gtk-config. Did I miss something? Joe Kerry <[EMAIL PROTECTED]>