~bookworm-team/bookworm/trunk

« back to all changes in this revision

Viewing changes to src/Library/LibraryGrid.vala

  • Committer: Raphael Isemann
  • Date: 2013-11-28 11:16:16 UTC
  • mfrom: (21.2.1 bookworm)
  • Revision ID: teemperor@googlemail.com-20131128111616-xacgees1lx04vvf1
First version of the Property Dialog

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
 
11
11
                ArrayList<string> category_names = new ArrayList<string> ();
12
12
 
13
 
                int ITEM_WIDTH = 96;
 
13
                int ITEM_WIDTH = 80;
14
14
                int ITEM_PADDING = 10;
15
15
 
16
16
                LibraryView parent_view;
104
104
                                Gtk.TreeIter root;
105
105
                                string group = book.bookgroup;
106
106
                                create_group (book.bookgroup);
107
 
                                Gdk.Pixbuf icon_pixbuf = null;
108
 
                                icon_pixbuf = book.get_cover ();
109
107
                                category_store[group].append (out root);
110
108
 
111
109
                                book.cover_changed.connect (() => {
112
 
                                        category_store[group].set (root, 0, book.get_cover (), 1,
113
 
                                                                book.name, 2, book.id, 3, true);
114
 
                                        queue_draw ();
115
 
                                });
116
 
                                category_store[group].set (root, 0, icon_pixbuf, 1,
 
110
                                        category_store[group].set (root, 0, book.cover, 1,
 
111
                                                                book.name, 2, book.id, 3, true);
 
112
                                        queue_draw ();
 
113
                                });
 
114
 
 
115
                                book.data_changed.connect (() => {
 
116
                                        category_store[group].set (root, 0, book.cover, 1,
 
117
                                                                book.name, 2, book.id, 3, true);
 
118
                                        queue_draw ();
 
119
                                });
 
120
 
 
121
                                category_store[group].set (root, 0, book.cover, 1,
117
122
                                                                        book.name, 2, book.id, 3, true);
118
123
                                category_labels[group].show_all ();
119
124
                                category_views[group].show_all ();