diff options
author | Glenn Rice <glennricster@gmail.com> | 2012-12-18 09:04:08 -0600 |
---|---|---|
committer | Glenn Rice <glennricster@gmail.com> | 2012-12-18 09:04:08 -0600 |
commit | f7d90cf64d4de1b2b22603744455a1c921688ebc (patch) | |
tree | be341e43dc16ee9e9590e856b88560f9765bc81c | |
parent | 018d90b580740f518f2e03bd6b00707bd12cbe02 (diff) |
Oops. Forgot to remove commented segment.
-rw-r--r-- | examples/demo/annots.cc | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/examples/demo/annots.cc b/examples/demo/annots.cc index 1b09a1e..e411865 100644 --- a/examples/demo/annots.cc +++ b/examples/demo/annots.cc @@ -576,32 +576,6 @@ void Annots::flags_toggled(const std::string& path_str, (*iter)[column] = fixed; m_AnnotView.set_annot(annot); - -#if 0 - GtkTreeIter iter; - gboolean fixed; - PopplerAnnot *annot; - PopplerAnnotFlag flags; - GtkTreePath *path = gtk_tree_path_new_from_string (path_str); - GtkTreeModel *model = GTK_TREE_MODEL (demo->model); - - gtk_tree_model_get_iter (model, &iter, path); - gtk_tree_model_get (model, &iter, column, &fixed, ANNOTS_COLUMN, &annot,-1); - - fixed ^= 1; - flags = poppler_annot_get_flags (annot); - - if (fixed) - flags |= flag_bit; - else - flags &= ~flag_bit; - - poppler_annot_set_flags (annot, flags); - gtk_list_store_set (GTK_LIST_STORE (model), &iter, column, fixed, -1); - - pgd_annot_view_set_annot (demo, annot); - gtk_tree_path_free (path); -#endif } void Annots::hidden_flag_toggled(const Glib::ustring& path_str) |