[gedit/wip/improve-printing: 1/3] commands-file-print: small code clean-up



commit 2d0314028b338353d254cbc0cf1ee1bfe585ad4b
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Thu Feb 19 19:15:03 2015 +0100

    commands-file-print: small code clean-up

 gedit/gedit-commands-file-print.c |   15 ++++-----------
 1 files changed, 4 insertions(+), 11 deletions(-)
---
diff --git a/gedit/gedit-commands-file-print.c b/gedit/gedit-commands-file-print.c
index 03c20c1..5cdbb5a 100644
--- a/gedit/gedit-commands-file-print.c
+++ b/gedit/gedit-commands-file-print.c
@@ -20,15 +20,7 @@
  * along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
 #include "gedit-commands.h"
-
-#include <glib/gi18n.h>
-#include <gtk/gtk.h>
-
 #include "gedit-window.h"
 #include "gedit-tab.h"
 #include "gedit-debug.h"
@@ -44,10 +36,11 @@ _gedit_cmd_file_print (GSimpleAction *action,
        gedit_debug (DEBUG_COMMANDS);
 
        tab = gedit_window_get_active_tab (window);
-       if (tab == NULL)
-               return;
 
-       _gedit_tab_print (tab);
+       if (tab != NULL)
+       {
+               _gedit_tab_print (tab);
+       }
 }
 
 /* ex:set ts=8 noet: */


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