[geany/geany] 15f75c: Fix a few indentation style issues

Colomban Wendling git-noreply at xxxxx
Fri Feb 13 13:11:30 UTC 2015


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Fri, 13 Feb 2015 13:11:30 UTC
Commit:      15f75ca2ac1e57a8e2fe375d3be8b605182e0f7d
             https://github.com/geany/geany/commit/15f75ca2ac1e57a8e2fe375d3be8b605182e0f7d

Log Message:
-----------
Fix a few indentation style issues


Modified Paths:
--------------
    src/gtkcompat.h
    src/keybindings.c

Modified: src/gtkcompat.h
16 lines changed, 8 insertions(+), 8 deletions(-)
===================================================================
@@ -73,14 +73,14 @@ G_BEGIN_DECLS
 /* GtkWidget */
 #if ! GTK_CHECK_VERSION(2, 18, 0)
 #  define compat_widget_set_flag(widget, flag, enable) \
-    do { \
-        GtkWidget *set_flag__widget = (widget); \
-        GtkWidgetFlags set_flag__flag = (flag); \
-        if (enable) \
-            GTK_WIDGET_SET_FLAGS(set_flag__widget, set_flag__flag); \
-        else \
-            GTK_WIDGET_UNSET_FLAGS(set_flag__widget, set_flag__flag); \
-    } while (0)
+	do { \
+		GtkWidget *set_flag__widget = (widget); \
+		GtkWidgetFlags set_flag__flag = (flag); \
+		if (enable) \
+			GTK_WIDGET_SET_FLAGS(set_flag__widget, set_flag__flag); \
+		else \
+			GTK_WIDGET_UNSET_FLAGS(set_flag__widget, set_flag__flag); \
+	} while (0)
 #	define gtk_widget_set_can_default(widget, can_default) \
 		compat_widget_set_flag((widget), GTK_CAN_DEFAULT, (can_default))
 #	define gtk_widget_is_toplevel(widget)		GTK_WIDGET_TOPLEVEL(widget)


Modified: src/keybindings.c
22 lines changed, 11 insertions(+), 11 deletions(-)
===================================================================
@@ -122,10 +122,10 @@ static void add_popup_menu_accels(void);
 GdkModifierType keybindings_get_modifiers(GdkModifierType mods)
 {
 #ifdef __APPLE__
-    if (mods & GDK_MOD2_MASK)
-        mods |= GEANY_PRIMARY_MOD_MASK;
+	if (mods & GDK_MOD2_MASK)
+		mods |= GEANY_PRIMARY_MOD_MASK;
 #endif
-    return mods & gtk_accelerator_get_default_mod_mask();
+	return mods & gtk_accelerator_get_default_mod_mask();
 }
 
 
@@ -2251,15 +2251,15 @@ static void reflow_lines(GeanyEditor *editor, gint column)
 /* deselect last newline of selection, if any */
 static void sci_deselect_last_newline(ScintillaObject *sci)
 {
-    gint start, end;
+	gint start, end;
 
-    start = sci_get_selection_start(sci);
-    end = sci_get_selection_end(sci);
-    if (end > start && sci_get_col_from_position(sci, end) == 0)
-    {
-        end = sci_get_line_end_position(sci, sci_get_line_from_position(sci, end-1));
-        sci_set_selection(sci, start, end);
-    }
+	start = sci_get_selection_start(sci);
+	end = sci_get_selection_end(sci);
+	if (end > start && sci_get_col_from_position(sci, end) == 0)
+	{
+		end = sci_get_line_end_position(sci, sci_get_line_from_position(sci, end - 1));
+		sci_set_selection(sci, start, end);
+	}
 }
 
 



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list