[gedit] Small cleanup



commit 205de0000f1272ca620bd4333a38a1c9a1abc988
Author: Paolo Borelli <pborelli gnome org>
Date:   Sun Nov 24 14:19:47 2013 +0100

    Small cleanup

 plugins/changecase/gedit-changecase-plugin.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/plugins/changecase/gedit-changecase-plugin.c b/plugins/changecase/gedit-changecase-plugin.c
index 36c31f0..afc3233 100644
--- a/plugins/changecase/gedit-changecase-plugin.c
+++ b/plugins/changecase/gedit-changecase-plugin.c
@@ -67,13 +67,10 @@ change_case (GeditWindow             *window,
        doc = gedit_window_get_active_document (window);
        g_return_if_fail (doc != NULL);
 
-       if (!gtk_text_buffer_get_selection_bounds (GTK_TEXT_BUFFER (doc),
-                                                  &start, &end))
+       if (gtk_text_buffer_get_selection_bounds (GTK_TEXT_BUFFER (doc), &start, &end))
        {
-               return;
+               gtk_source_buffer_change_case (GTK_SOURCE_BUFFER (doc), choice, &start, &end);
        }
-
-       gtk_source_buffer_change_case (GTK_SOURCE_BUFFER (doc), choice, &start, &end);
 }
 
 static void


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