I tried the code below on debian GNU/Linux unstable as well on win32. The output
was a bit different but didn't work on both operating systems.
#include
void
begin_print(GtkPrintOperation *operation, GtkPrintContext *context)
{
gtk_print_operation_set_n_pages(operation, 1);
gtk_print_operat
i have a widget that is a gtkbin; inside there is a gtkscrolledwindow
i want to intercept scroll-event from my widget without pass it to the
internal gtkscrolledwindow
i set widget_class->scroll_event and GDK_BUTTON_PRESS_MASK but the
scroll-event goes always to the gtkscrolledwindow and no
I get the attached output which looks fine.
Which versions of pango and cairo are you using on Linux?
behdad
On 07/15/2009 11:05 AM, j...@weedlight.ch wrote:
I tried the code below on debian GNU/Linux unstable as well on win32. The output
was a bit different but didn't work on both operating sy
No, the output isn't fine it shows only the last part of the text
"Title\nsecondary text\0" and the string "0123456789" isn't displayed at
all.
On debian GNU/Linux unstable:
Name: Pango
pango_module_version=1.6.0
Version: 1.24.4
Name: cairo
Version: 1.8.8
Name: Pango Cairo
Ver
1) pango_attr_size_new() takes size in pango units, so, replace:
pango_attr_size_new(14) with pango_attr_size_new(14*PANGO_SCALE)
2) pango_layout_get_size() and pango_glyph_string_extents() returns sizes in
pango units, so instead of multiplying by PANGO_SCALE you should be dividing
by PANGO_S