[fedora-java] RSSOwl, SWT, and table sorting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, Anthony,

I have a question for you. What does happen if you click into column
headers to sort them? When I use the SWT from RSSOwl CVS, the sort
indicator in the table headers disappears. Ben Pasero says it's a bug
in SWT. I sent him a patch (attached), but he's not taking it.
So, I'd like to know if it's the same with your SWT.

Greetings,
-- Pete

http://sourceforge.net/tracker/index.php?func=detail&aid=1389434&group_id=86683&atid=580504

Index: rssowl_linux/src/java/net/sourceforge/rssowl/controller/sort/SortingSelectionAdapter.java
diff -u -r1.5 SortingSelectionAdapter.java
--- rssowl_linux/src/java/net/sourceforge/rssowl/controller/sort/SortingSelectionAdapter.java	6 Nov 2005 18:34:15 -0000	1.5
+++ rssowl_linux/src/java/net/sourceforge/rssowl/controller/sort/SortingSelectionAdapter.java	24 Dec 2005 08:25:00 -0000
@@ -201,6 +201,9 @@
     if (table.getSelectionCount() > 0)
       selectedNews = table.getSelection()[0].getText(1);
 
+    /** Remove All tableitems. This clears the Sort Indicator, too. */
+    table.removeAll();
+
     /** Show a Sort Indicator inside the selected TableColumn */
     if (!tc.getData().equals("TABLE_HEADER_STATUS")) {
       table.setSortColumn(tc);
@@ -236,9 +239,6 @@
       table.setSortColumn(null);
     }
 
-    /** Remove All tableitems */
-    table.removeAll();
-
     /** Create new, sorted table */
     NewsTable.fillTable(table, newsItems, newsItemOrder, newsItemInfos, performSearch, columnWidth);
 


[Index of Archives]     [Red Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux