summaryrefslogtreecommitdiff
path: root/properties
diff options
context:
space:
mode:
authorAlexei Sorokin <[email protected]>2017-03-05 21:17:23 +0300
committerAlexei Sorokin <[email protected]>2017-03-05 21:17:23 +0300
commitf56979b9fe55ea7e26ef5de0ebdf9f00d0c585d9 (patch)
treee776a7fddb929e6b0f4d61b1754c85c5ea7640b6 /properties
parent00fad2c0d0fcdade570a08f046e85a4558f1fc0c (diff)
downloadatril-f56979b9fe55ea7e26ef5de0ebdf9f00d0c585d9.tar.bz2
atril-f56979b9fe55ea7e26ef5de0ebdf9f00d0c585d9.tar.xz
Revert "sometimes info->linearized is not a string" and
"crash on g_free the address 0 or 1" These hacks are no longer of need after 1a0f225
Diffstat (limited to 'properties')
-rw-r--r--properties/ev-properties-view.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/properties/ev-properties-view.c b/properties/ev-properties-view.c
index f4fab251..2209c8ba 100644
--- a/properties/ev-properties-view.c
+++ b/properties/ev-properties-view.c
@@ -360,21 +360,8 @@ ev_properties_view_set_info (EvPropertiesView *properties, const EvDocumentInfo
set_property (properties, GTK_GRID (grid), N_PAGES_PROPERTY, text, &row);
g_free (text);
}
- if (info->fields_mask & EV_DOCUMENT_INFO_LINEARIZED)
- {
- /* nice hack bro */
- if (info->linearized == 1)
- {
- set_property (properties, GTK_GRID (grid), LINEARIZED_PROPERTY, _("Yes"), &row);
- }
- else if (info->linearized == 0)
- {
- set_property (properties, GTK_GRID (grid), LINEARIZED_PROPERTY, _("No"), &row);
- }
- else
- {
- set_property (properties, GTK_GRID (grid), LINEARIZED_PROPERTY, info->linearized, &row);
- }
+ if (info->fields_mask & EV_DOCUMENT_INFO_LINEARIZED) {
+ set_property (properties, GTK_GRID (grid), LINEARIZED_PROPERTY, info->linearized, &row);
}
if (info->fields_mask & EV_DOCUMENT_INFO_SECURITY) {
set_property (properties, GTK_GRID (grid), SECURITY_PROPERTY, info->security, &row);