[gtk+] gtkplacessidebar: remove unneeded condition



commit 40c0a6aa8753ec80963c163f6d3c1baf6f5945af
Author: Carlos Soriano <csoriano gnome org>
Date:   Thu Feb 18 10:53:35 2016 +0100

    gtkplacessidebar: remove unneeded condition
    
    We check for it before anyway, and in this case make sense to show the
    eject button in both cases.

 gtk/gtkplacessidebar.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c
index e6dfbc2..5e74d99 100644
--- a/gtk/gtkplacessidebar.c
+++ b/gtk/gtkplacessidebar.c
@@ -451,10 +451,7 @@ add_place (GtkPlacesSidebar            *sidebar,
   if (show_unmount || show_eject)
     g_assert (place_type != PLACES_BOOKMARK);
 
-  if (mount == NULL)
-    show_eject_button = FALSE;
-  else
-    show_eject_button = (show_unmount || show_eject);
+  show_eject_button = (show_unmount || show_eject);
 
   tooltip_escaped = g_markup_escape_text (tooltip, -1);
   row = g_object_new (GTK_TYPE_SIDEBAR_ROW,


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