gtkicq woes



  Well, I finally got gtkicq to compile on my machine--now that gnome-core
installs gnome-panel.h, the only modification needed was to change an occurance
of applet_widget_init_defaults() to applet_widget_init() (note: I can imagine
that this might not be the Right Way to solve the problem, since I'm not an
expert on the applet stuff).  However, it now segfaults immediately after
being loaded and generally manages to take the panel down with it.  Wuen I run
it in gdb I get:

(gdb) run
Starting program: /usr/local/gnome/bin/gtkicq 
Unable to connect to server port 35091
This generally means that the program could not talk to the esound server

Program received signal SIGSEGV, Segmentation fault.
0x4030e8e8 in gtk_widget_get_style (widget=0xbffffc24) at gtkwidget.c:3276
3276      g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL);
(gdb) backtrace
#0  0x4030e8e8 in gtk_widget_get_style (widget=0xbffffc24) at gtkwidget.c:3276
#1  0x80677d8 in create_applet (window=0x80a5e80, data=0xbffffc10)
    at applet.c:155
#2  0x80679c0 in make_applet (argc=1, argv=0xbffffc44, data=0xbffffc10)
    at applet.c:230
#3  0x805b48f in main (argc=1, argv=0xbffffc44) at gtkicq.c:986
(gdb) print widget
$1 = (GtkWidget *) 0xbffffc24
(gdb) print *widget
$2 = {object = {klass = 0x0, flags = 0, ref_count = 134543770, 
    object_data = 0x1}, private_flags = 64580, state = 255 'ÿ', 
  saved_state = 191 '¿', 
  name = 0xbffffc4c "Býÿ¿^ýÿ¿qýÿ¿}ýÿ¿\213ýÿ¿\230ýÿ¿§ýÿ¿¯ýÿ¿Áýÿ¿Õýÿ¿éýÿ¿öýÿ¿\bþÿ¿\023þÿ¿Bþÿ¿Ñþÿ¿îþÿ¿ûþÿ¿\fÿÿ¿\031ÿÿ¿(ÿÿ¿Wÿÿ¿nÿÿ¿\200ÿÿ¿\227ÿÿ¿¥ÿÿ¿°ÿÿ¿Òÿÿ¿", 
  style = 0xbffffc4c, requisition = {width = 1, height = 0}, allocation = {
    x = -730, y = -16385, width = 0, height = 0}, window = 0xbffffd42, 
  parent = 0xbffffd5e}

  (My panel stays alive at this point, even after I kill the process and quit
   gdb)

  Does anyone know what could be wrong?  I've attached the single-line change
I made to the source to get the stuff to compile to this message.

-- 
  Daniel Burrows

"I think that the surest sign that there is intelligent
 life out there is that none of it has tried to contact us."

  -- _Calvin and Hobbes_, Bill Watterson
Index: applet.c
===================================================================
RCS file: /cvs/gnome/gtkicq/src/applet.c,v
retrieving revision 1.4
diff -c -r1.4 applet.c
*** applet.c	1998/12/13 17:47:53	1.4
--- applet.c	1998/12/19 20:11:10
***************
*** 220,226 ****
  	if( applet_toggle == FALSE )
  		return;
  
! 	applet_widget_init_defaults("gtkicq_applet", VERSION, argc, argv, options, 0, NULL);
  
  	applet = applet_widget_new("gtkicq_applet");
  	if ( !applet )
--- 220,226 ----
  	if( applet_toggle == FALSE )
  		return;
  
! 	applet_widget_init("gtkicq_applet", VERSION, argc, argv, options, 0, NULL);
  
  	applet = applet_widget_new("gtkicq_applet");
  	if ( !applet )

PGP signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]