Hi, you may need to create a separate set of scrollbars and then attach them to the GtkScrolledWindow.
I would do it like this: 1. disable GtkScrolledWindow's scrollbars with gtk_scrolled_window_set_policy( swindow, GTK_POLICY_NEVER, GTK_POLICY_NEVER ) 2. create separate set of scrollbars with hscroll = gtk_hscrollbar_new( gtk_scrolled_window_get_hadjustment( swindow ) ) and vscroll = gtk_vscrollbar_new( gtk_scrolled_window_get_vadjustment( swindow ) ) 3. pack those two in separate compartment inside table/box After that your size group should function properly. 2008/11/17 <[EMAIL PROTECTED]>: > On Mon, Nov 17, 2008 at 6:55 PM, Tristan Van Berkom > <[EMAIL PROTECTED]> wrote: >> On Mon, Nov 17, 2008 at 10:59 AM, <[EMAIL PROTECTED]> wrote: >>> Hi, >>> I have problems packing widgets into a table using sizeGroup. Here I >>> try to pack 2 gtkRulers around a scrolled window, so that rulers cover >>> only scrolled window's container and not the scrollbars (like in >>> gimp), I try to achieve this by putting rulers in the same sizeGroup >>> with scrolled window's container. But it doesn't seem to work - >>> instead rulers "cover" also the scrollbars :( what do I do wrong? >> >> Size groups group widgets together so that they all request the >> same size, they cannot break the rules of container packing positions. >> >> I didnt look at your ui code, but you need your scroll bars to be in >> different table columns than your rulers and scrolled windows. > > I have a 3x3 table > the vertical ruler is in the column 0-1, the horz. ruler is in columnt > 1-2, and the scrolled window got 2 columns - 1-3... so there is space > of the third column for the vert. scrollbar... > and how can I separate scrollbars from scrolled window - its one widget? > > thank you > Zeev > _______________________________________________ > gtk-list mailing list > [email protected] > http://mail.gnome.org/mailman/listinfo/gtk-list > -- Tadej Borovšak [EMAIL PROTECTED] [EMAIL PROTECTED] _______________________________________________ gtk-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gtk-list
