Gtk 1.x->2.x upgrade problems



Hello.

 I've recently upgraded my application to gtk 2.4.9 from 1.2.x.
Unfortunately, I've encountered few strange problems:

1) Setting back pixmap stopped to work. I'm calling this:

gdk_window_set_back_pixmap(fixed_container->window,_bg_pixmap, FALSE);

which worked on gtk+ 1.x, and just does nothing on 2.4.x. Maybe I
should call another function to do this, but I do not know which one.

2) In some place I have small window, with label widget. Text in label
can be very short (trivial case), in this case I would like to center
it. But when the text is very long, I would like to be able to scroll
it inside label. I'm trying to move align with following call:

	GTK_MISC(self->_child)->xalign = halign;

which also stopped to work. I tried to call gtk_misc_set_alignment,
but also with no result - text in label is always drawn from beginning
and there is no possibility to see the rest of text.

Any ideas? thanks in advance...


-- Best regards from
Kamil Burzynski



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