static VALUE annot_text_get_icon(VALUE self) { #if POPPLER_CHECK_VERSION(0, 9, 0) return CSTR2RVAL_FREE(poppler_annot_text_get_icon(SELF(self))); #else return TEXT_ICON2RVAL(poppler_annot_text_get_icon(SELF(self))); #endif }
static void pgd_annot_view_set_annot_text (GtkWidget *table, PopplerAnnotText *annot, gint *row) { gchar *text; pgd_table_add_property (GTK_GRID (table), "<b>Is open:</b>", poppler_annot_text_get_is_open (annot) ? "Yes" : "No", row); text = poppler_annot_text_get_icon (annot); pgd_table_add_property (GTK_GRID (table), "<b>Icon:</b>", text, row); g_free (text); pgd_table_add_property (GTK_GRID (table), "<b>State:</b>", get_text_state (annot), row); }