[gtk+] placesview: Simplify



commit 3308122c321a20e5420ede855f678b9204a4f3f4
Author: Benjamin Otte <otte redhat com>
Date:   Sun Mar 20 05:18:38 2016 +0100

    placesview: Simplify
    
    http://www.viva64.com/en/b/0383/

 gtk/gtkplacesview.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkplacesview.c b/gtk/gtkplacesview.c
index e8ab18c..b91394f 100644
--- a/gtk/gtkplacesview.c
+++ b/gtk/gtkplacesview.c
@@ -705,8 +705,7 @@ add_volume (GtkPlacesView *view,
   name = g_volume_get_name (volume);
   path = !is_network ? g_volume_get_identifier (volume, G_VOLUME_IDENTIFIER_KIND_UNIX_DEVICE) : NULL;
 
-  if (!mount ||
-      (mount && !g_mount_is_shadowed (mount)))
+  if (!mount || !g_mount_is_shadowed (mount))
     {
       GtkWidget *row;
 


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