[Xfce4-commits] <mousepad:master> * mousepad/mousepad-dbus-infos.xml, mousepad/mousepad-undo.c, mousepad/mousepad-view.c: Fix some typos and replace tabs.
Nick Schermer
noreply at xfce.org
Sat May 5 21:30:28 CEST 2012
Updating branch refs/heads/master
to 5cd70d2665de061f5c64d6a7a21b5f564eeec813 (commit)
from 72d49ecc7196fe7c8d5479e978593718e3b17a39 (commit)
commit 5cd70d2665de061f5c64d6a7a21b5f564eeec813
Author: Nick Schermer <nick at xfce.org>
Date: Tue May 1 16:07:57 2007 +0000
* mousepad/mousepad-dbus-infos.xml, mousepad/mousepad-undo.c,
mousepad/mousepad-view.c: Fix some typos and replace tabs.
(Old svn revision: 25662)
ChangeLog | 5 +++++
mousepad/mousepad-dbus-infos.xml | 28 ++++++++++++++--------------
mousepad/mousepad-undo.c | 38 +++++++++++++++++++-------------------
mousepad/mousepad-view.c | 6 +++---
4 files changed, 41 insertions(+), 36 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index f9de9f2..5df6ff7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,9 @@
2007-05-01 Nick Schermer <nick at xfce.org>
+ * mousepad/mousepad-dbus-infos.xml, mousepad/mousepad-undo.c,
+ mousepad/mousepad-view.c: Fix some typos and replace tabs.
+
+
+2007-05-01 Nick Schermer <nick at xfce.org>
* mousepad/mousepad-{document,window}.c: Allow uri and tab
drops inside the textview widget.
* mousepad/mousepad-window.c: Hide the searchbar when all the
diff --git a/mousepad/mousepad-dbus-infos.xml b/mousepad/mousepad-dbus-infos.xml
index 4787ba8..1182a5e 100644
--- a/mousepad/mousepad-dbus-infos.xml
+++ b/mousepad/mousepad-dbus-infos.xml
@@ -1,29 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
- $Id$
+ $Id$
- Copyright (c) 2007 Nick Schermer <nick at xfce.org>
+ Copyright (c) 2007 Nick Schermer <nick at xfce.org>
- This program is free software; you can redistribute it and/or modify it
- under the terms of the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at your option)
- any later version.
+ This program is free software; you can redistribute it and/or modify it
+ under the terms of the GNU General Public License as published by the Free
+ Software Foundation; either version 2 of the License, or (at your option)
+ any later version.
- This program is distributed in the hope that it will be useful, but WITHOUT
- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
- more details.
+ This program is distributed in the hope that it will be useful, but WITHOUT
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ more details.
- You should have received a copy of the GNU General Public License along with
- this program; if not, write to the Free Software Foundation, Inc., 59 Temple
- Place, Suite 330, Boston, MA 02111-1307 USA
+ You should have received a copy of the GNU General Public License along with
+ this program; if not, write to the Free Software Foundation, Inc., 59 Temple
+ Place, Suite 330, Boston, MA 02111-1307 USA
-->
<node name="/org/xfce/Mousepad">
<!--
- org.xfce.Thunar
+ org.xfce.Mousepad
The Mousepad specific interface, which provides Mousepad specific methods.
diff --git a/mousepad/mousepad-undo.c b/mousepad/mousepad-undo.c
index 51b094b..3fa6fba 100644
--- a/mousepad/mousepad-undo.c
+++ b/mousepad/mousepad-undo.c
@@ -332,21 +332,21 @@ mousepad_undo_new_step (MousepadUndo *undo)
if (undo->steps_position != length)
for (i = length - 1; i >= undo->steps_position; i--)
{
- /* get the existing step */
- existing = g_list_nth_data (undo->steps, i);
+ /* get the existing step */
+ existing = g_list_nth_data (undo->steps, i);
- /* allocate a new slice */
- info = g_slice_new0 (MousepadUndoInfo);
+ /* allocate a new slice */
+ info = g_slice_new0 (MousepadUndoInfo);
- /* copy the data from the existing step */
- info->string = g_strdup (existing->string);
- info->start = existing->start;
- info->end = existing->end;
+ /* copy the data from the existing step */
+ info->string = g_strdup (existing->string);
+ info->start = existing->start;
+ info->end = existing->end;
- /* set the inverted action */
- info->action = (existing->action == INSERT ? DELETE : INSERT);
+ /* set the inverted action */
+ info->action = (existing->action == INSERT ? DELETE : INSERT);
- /* append to the steps list */
+ /* append to the steps list */
undo->steps = g_list_append (undo->steps, info);
}
@@ -405,12 +405,12 @@ mousepad_undo_handle_step (const gchar *text,
/* only do this if there is 1 character typed / deleted */
if (length == 1)
{
- /* get the character */
- c = g_utf8_get_char (text);
+ /* get the character */
+ c = g_utf8_get_char (text);
- /* check if the charater is a space or a new line */
- char_isspace = (c == ' ' || c == '\t');
- char_isnewline = (c == '\n');
+ /* check if the charater is a space or a new line */
+ char_isspace = (c == ' ' || c == '\t');
+ char_isnewline = (c == '\n');
}
/* create a new step if we jump to a new line or the string contains only spaces, but the
@@ -428,7 +428,7 @@ mousepad_undo_handle_step (const gchar *text,
/* check if we can append (insert action) */
if (undo->step_action == action && action == INSERT && undo->step_end == start)
{
- /* append the inserted string */
+ /* append the inserted string */
undo->step_buffer = g_string_append_len (undo->step_buffer, text, length);
/* update the end position */
@@ -437,7 +437,7 @@ mousepad_undo_handle_step (const gchar *text,
/* check if we can prepend (delete action) */
else if (undo->step_action == action && action == DELETE && undo->step_start == end)
{
- /* prepend the deleted text */
+ /* prepend the deleted text */
undo->step_buffer = g_string_prepend_len (undo->step_buffer, text, length);
/* update the start position */
@@ -456,7 +456,7 @@ new_step:
/* only start a new step when the char was not a space */
if (create_new_step)
{
- /* set the new info */
+ /* set the new info */
undo->step_buffer = g_string_append_len (undo->step_buffer, text, ABS (start - end));
undo->step_action = action;
undo->step_start = start;
diff --git a/mousepad/mousepad-view.c b/mousepad/mousepad-view.c
index bb4d8fd..3ca086e 100644
--- a/mousepad/mousepad-view.c
+++ b/mousepad/mousepad-view.c
@@ -115,7 +115,7 @@ mousepad_view_class_init (MousepadViewClass *klass)
static void
mousepad_view_finalize (GObject *object)
{
- (*G_OBJECT_CLASS (mousepad_view_parent_class)->finalize) (object);
+ (*G_OBJECT_CLASS (mousepad_view_parent_class)->finalize) (object);
}
@@ -189,7 +189,7 @@ mousepad_view_key_press_event (GtkWidget *widget,
/* get the selected text */
has_selection = gtk_text_buffer_get_selection_bounds (buffer, &start, &end);
- /* Shift + Tab */
+ /* shift + tab */
if (event->state & GDK_SHIFT_MASK)
{
/* unindent */
@@ -420,7 +420,7 @@ mousepad_view_get_lines (GtkTextView *text_view,
gtk_text_view_get_line_at_y (text_view, &iter, first_y, NULL);
/* for each iter, get its location and add it to the arrays.
- * Stop when we pass last_y */
+ * stop when we pass last_y */
while (!gtk_text_iter_is_end (&iter))
{
/* get the y position of the iter */
More information about the Xfce4-commits
mailing list