summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPerberos <[email protected]>2011-12-22 21:27:17 -0200
committerPerberos <[email protected]>2011-12-22 21:27:17 -0200
commit07079b52712765a5e54f55e4c5e5fa8ab1723a15 (patch)
tree806ad7681f047b61d3fbddaa6149b2191dd6b0e7
parent8e56ff9a0cb8c2a8fc4b99d5dd3a622cedfa3234 (diff)
downloadatril-07079b52712765a5e54f55e4c5e5fa8ab1723a15.tar.bz2
atril-07079b52712765a5e54f55e4c5e5fa8ab1723a15.tar.xz
sometimes info->linearized is not a string
-rw-r--r--properties/ev-properties-view.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/properties/ev-properties-view.c b/properties/ev-properties-view.c
index 453780ab..96f9b29d 100644
--- a/properties/ev-properties-view.c
+++ b/properties/ev-properties-view.c
@@ -356,8 +356,21 @@ ev_properties_view_set_info (EvPropertiesView *properties, const EvDocumentInfo
set_property (properties, GTK_TABLE (table), N_PAGES_PROPERTY, text, &row);
g_free (text);
}
- if (info->fields_mask & EV_DOCUMENT_INFO_LINEARIZED) {
- set_property (properties, GTK_TABLE (table), LINEARIZED_PROPERTY, info->linearized, &row);
+ if (info->fields_mask & EV_DOCUMENT_INFO_LINEARIZED)
+ {
+ /* nice hack bro */
+ if (info->linearized == 1)
+ {
+ set_property (properties, GTK_TABLE (table), LINEARIZED_PROPERTY, _("Yes"), &row);
+ }
+ else if (info->linearized == 0)
+ {
+ set_property (properties, GTK_TABLE (table), LINEARIZED_PROPERTY, _("No"), &row);
+ }
+ else
+ {
+ set_property (properties, GTK_TABLE (table), LINEARIZED_PROPERTY, info->linearized, &row);
+ }
}
if (info->fields_mask & EV_DOCUMENT_INFO_SECURITY) {
set_property (properties, GTK_TABLE (table), SECURITY_PROPERTY, info->security, &row);