[no subject]

2018-09-22 Thread Радомир Хаџић via gtk-app-devel-list
hello world ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

How can I change the font of a text field using non-deprecated way?

2018-09-22 Thread Радомир Хаџић via gtk-app-devel-list
Hello. I'm trying to make a small application in C using GTK+3 (the latest stable). The application is going to have a text field implemented using GtkTextView where a user can write text. I also font a user to be able to change font, so I've added a font chooser using GtkFontChooserDialog. The p

Segmentation fault when passing Poppler objects

2018-11-06 Thread Радомир Хаџић via gtk-app-devel-list
Hi. I get segmentation fault if I try to access a Poppler object whose pointer is passed through g_signal_connect. There is no such problem with normal pointers, though. For example, if I run the following code... #include struct Colors { double red; double green; double

How to make text in rendered PDF pages selectable?

2018-11-19 Thread Радомир Хаџић via gtk-app-devel-list
Hello. I'm using Poppler to render PDF page onto GtkDrawingArea surface. Everything renders correctly so far, but I can't figure out how to make text selectable. For example, a user may wish to select some text using mouse with the intention of copying it, or when user searches a document for a st

PDF page not rendering properly if the page is changed

2018-11-28 Thread Радомир Хаџић via gtk-app-devel-list
Hello. I've sent as an attachment a code for a very simple PDF viewer. It is not that well written but that's because I wanted it to be simple and easy to understand. The purpose of the program is to illustrate a problem that I'm having with my larger project. The problem is that if a user change

Searching for text in PDF files is wrong

2018-11-30 Thread Радомир Хаџић via gtk-app-devel-list
Hi. I use poppler_page_find_text() to find text in PDF files. This returns GList of pointers to PopplerRectangles. Then I use poppler_page_render_selection() to mark the found text. What is wrong is that PopplerRectangles returned by poppler_page_find_text() are incompatible with those that poppl