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

Re: Problem with adjustments



(gdb) p 'calc.c'::text
$4 = (GtkWidget *) 0x8099688
(gdb) p 'calc.c'::text->vadj
There is no member named vadj.
(gdb) p *'calc.c'::text
$5 = {object = {klass = 0x80988e8, flags = 69576, ref_count = 1,
    object_data = 0x80ce888}, private_flags = 2, state = 0 '\000',
  saved_state = 0 '\000', name = 0x0, style = 0x80a7868, requisition = {
    width = 146, height = 126}, allocation = {x = 0, y = 0, width = 485,
    height = 330}, window = 0x80aa1a0, parent = 0x8098848}
(gdb) p *'calc.c'::text->vadj
There is no member named vadj.


I must admit that I am not experienced in gdb and am probably doing
something wrong. Hope this helps.

On Thu, 5 Aug 1999, Havoc Pennington wrote:

> 
> On Thu, 5 Aug 1999, Aaron Lehmann wrote:
> > 
> >       gtk_adjustment_set_value (GTK_TEXT(text)->vadj, GTK_TEXT 
> > (text)->vadj->upper);
> >       gtk_widget_queue_draw (text);
> > 
> > The result is a segmentation fault.
> >
> 
> What are the values of text, text->vadj, *text, and *text->vadj in gdb?
>  
> Havoc
> 
> 
> 
> -- 
>          To unsubscribe: mail gtk-app-devel-list-request@redhat.com with 
>                        "unsubscribe" as the Subject.
> 
> 	Mailing list concerns should be mailed to <listmaster@redhat.com>
> 
> 



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