[Xfce4-commits] <postler:master> Don't show a menu item for GENERIC in 'Use As'

Christian Dywan noreply at xfce.org
Tue Jan 25 20:02:04 CET 2011


Updating branch refs/heads/master
         to 5f9459c73365059002495316b5bbdc74f9ca9777 (commit)
       from 1d19ef11e64b0986169cd3c1435f3406c963a51d (commit)

commit 5f9459c73365059002495316b5bbdc74f9ca9777
Author: Christian Dywan <christian at twotoasts.de>
Date:   Tue Jan 25 20:00:04 2011 +0100

    Don't show a menu item for GENERIC in 'Use As'

 postler/postler-folders.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/postler/postler-folders.vala b/postler/postler-folders.vala
index a98cb8d..3c2242a 100644
--- a/postler/postler-folders.vala
+++ b/postler/postler-folders.vala
@@ -559,7 +559,7 @@ public class Postler.Folders : Gtk.TreeView {
 
             menuitem = new Gtk.MenuItem.with_mnemonic (_("_Use as..."));
             var use_as_menu = new Gtk.Menu ();
-            for (int i = 1; i < FolderType.MAX; i++) {
+            for (int i = 1; i < FolderType.GENERIC; i++) {
                 var type = (FolderType)i;
                 var folder_item = new Gtk.ImageMenuItem.from_stock (
                     type.get_stock_id () ?? Gtk.STOCK_DIRECTORY, null);



More information about the Xfce4-commits mailing list