[GB.GTK3]

* BUG: Explicit call to gtk_printer_option_widget_get_type(), otherwise 
  printing crashes. But why???


git-svn-id: svn://localhost/gambas/trunk@7125 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Benoît Minisini 2015-06-09 20:22:35 +00:00
parent 8d2e4c5262
commit a8b8ca57bc
2 changed files with 7 additions and 2 deletions

View file

@ -605,6 +605,7 @@ bool gDialog::selectFolder()
}
#ifdef GTK3
bool gDialog::selectFont()
{
GtkFontChooserDialog *dialog;

View file

@ -138,7 +138,9 @@ static gboolean find_file_printer(GtkPrinter *gtk_printer, gPrinter *printer)
return FALSE;
}
//extern void _gtk_printer_option_widget_get_type(void);
#ifdef GTK3
extern "C" void gtk_printer_option_widget_get_type(void);
#endif
gPrinter *gPrinter::_current = NULL;
@ -150,7 +152,9 @@ gPrinter::gPrinter()
_page_count = 1;
_page_count_set = false;
//_gtk_printer_option_widget_get_type();
#ifdef GTK3
gtk_printer_option_widget_get_type();
#endif
gtk_enumerate_printers((GtkPrinterFunc)find_default_printer, this, NULL, TRUE);
setPaperModel(GB_PRINT_A4);