(no commit message)
authorJean-Philippe Orsini <jeanfi@gmail.com>
Thu, 2 May 2013 08:39:56 +0000 (08:39 +0000)
committerJean-Philippe Orsini <jeanfi@gmail.com>
Thu, 2 May 2013 08:39:56 +0000 (08:39 +0000)
src/glade/prss.glade
src/main.c

index 31908ba..1c7a070 100644 (file)
@@ -21,6 +21,8 @@
       <column type="gint"/>
       <!-- column-name date -->
       <column type="gchararray"/>
+      <!-- column-name gint1 -->
+      <column type="gint64"/>
     </columns>
   </object>
   <object class="GtkListStore" id="liststore1">
                         <property name="visible">True</property>
                         <property name="can_focus">True</property>
                         <property name="model">headline_store</property>
+                        <property name="reorderable">True</property>
                         <signal name="cursor-changed" handler="headline_cursor_changed_cbk" swapped="no"/>
                         <signal name="row-activated" handler="headline_row_activated_cbk" swapped="no"/>
                         <child internal-child="selection">
                             <property name="sizing">fixed</property>
                             <property name="fixed_width">300</property>
                             <property name="title" translatable="yes">Headline</property>
+                            <property name="reorderable">True</property>
+                            <property name="sort_column_id">0</property>
                             <child>
                               <object class="GtkCellRendererText" id="cellrenderertext1"/>
                               <attributes>
                             <property name="sizing">fixed</property>
                             <property name="fixed_width">50</property>
                             <property name="title" translatable="yes">Date</property>
+                            <property name="reorderable">True</property>
+                            <property name="sort_column_id">3</property>
                             <child>
                               <object class="GtkCellRendererText" id="cellrenderertext3"/>
                               <attributes>
index 72770ff..e122bfa 100644 (file)
@@ -52,7 +52,8 @@ enum {
 enum {
        COL_HEADLINE_TITLE,
        COL_HEADLINE_ID,
-       COL_HEADLINE_DATE
+       COL_HEADLINE_DATE,
+       COL_HEADLINE_EPOCH_TIME
 };
 
 static struct option long_options[] = {
@@ -342,6 +343,8 @@ int feed_cursor_changed_cbk(GtkTreeView *treeview, gpointer data)
                                                   h->id,
                                                   COL_HEADLINE_DATE,
                                                   date,
+                                                  COL_HEADLINE_EPOCH_TIME,
+                                                  h->date,
                                                   -1);
 
                                g_free(title);
@@ -395,6 +398,7 @@ int headline_cursor_changed_cbk(GtkTreeView *treeview, gpointer data)
                                   &iter,
                                   COL_HEADLINE_TITLE, headline->title,
                                   COL_HEADLINE_DATE, date,
+                                  COL_HEADLINE_EPOCH_TIME, headline->date,
                                   -1);
                free(date);
        } else {