[PATCH] Fix for previous GnomeICU patch (was: Re: GnomeICU patch.)
- From: Daniel Burrows <Daniel_Burrows brown edu>
- To: Adrian <chungm uoguelph ca>
- Cc: gnome-list gnome org
- Subject: [PATCH] Fix for previous GnomeICU patch (was: Re: GnomeICU patch.)
- Date: Wed, 31 Mar 1999 18:58:30 -0500
On Wed, Mar 31, 1999 at 11:45:04PM +0000, Adrian was heard to say:
> Hi there, I just today applied both the drag/drop and applet behaviour
> patches to gnomeICU, and they compile find, however, when a message
> comes in and I double click the flashing icon in the panel, I get the
> following error message:
>
> --
> Gtk-WARNING **: invalid cast from (NULL) pointer to `GtkEntry'
>
> Gtk-CRITICAL **: file gtkentry.c: line 490 (gtk_entry_get_text):
> assertion `entry != NULL' failed.
> --
>
> Any ideas? I'm running Glib/GTK 1.2.1, RH5.2, Kernel 2.2.5, and glibc.
> Normally, GnomeICU works fine. :)
Oops. Yes, this is my fault. I've attached a secondary patch that fixes
the bug I introduced, I think.
Daniel
--
Imagine if every Thursday your shoes exploded if you tied them the usual
way. This happens to us all the time with computers, and nobody thinks of
complaining.
-- Jeff Raskin
--- gtkfunc.c~ Wed Mar 31 18:57:09 1999
+++ gtkfunc.c Wed Mar 31 18:56:45 1999
@@ -2005,12 +2005,11 @@
char *buf;
if( Contacts[ cx ].messages )
{
- char *nick=gtk_entry_get_text(GTK_ENTRY(Contacts[cx].info_nick));
int cy;
buf=g_malloc(strlen(nick)+strlen("Message from ")+3);
- sprintf( buf, "Message from %s:", nick );
+ sprintf( buf, "Message from %s:", Contacts[cx].nick );
icq_msgbox( Contacts[ cx ].message[ 0 ], buf, data );
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]