[Xfce4-commits] r25662 - in mousepad/branches/nick_0_3: . mousepad
Nick Schermer
nick at xfce.org
Tue May 1 18:07:57 CEST 2007
Author: nick
Date: 2007-05-01 16:07:57 +0000 (Tue, 01 May 2007)
New Revision: 25662
Modified:
mousepad/branches/nick_0_3/ChangeLog
mousepad/branches/nick_0_3/mousepad/mousepad-dbus-infos.xml
mousepad/branches/nick_0_3/mousepad/mousepad-undo.c
mousepad/branches/nick_0_3/mousepad/mousepad-view.c
Log:
* mousepad/mousepad-dbus-infos.xml, mousepad/mousepad-undo.c,
mousepad/mousepad-view.c: Fix some typos and replace tabs.
Modified: mousepad/branches/nick_0_3/ChangeLog
===================================================================
--- mousepad/branches/nick_0_3/ChangeLog 2007-05-01 15:59:28 UTC (rev 25661)
+++ mousepad/branches/nick_0_3/ChangeLog 2007-05-01 16:07:57 UTC (rev 25662)
@@ -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
Modified: mousepad/branches/nick_0_3/mousepad/mousepad-dbus-infos.xml
===================================================================
--- mousepad/branches/nick_0_3/mousepad/mousepad-dbus-infos.xml 2007-05-01 15:59:28 UTC (rev 25661)
+++ mousepad/branches/nick_0_3/mousepad/mousepad-dbus-infos.xml 2007-05-01 16:07:57 UTC (rev 25662)
@@ -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.
Modified: mousepad/branches/nick_0_3/mousepad/mousepad-undo.c
===================================================================
--- mousepad/branches/nick_0_3/mousepad/mousepad-undo.c 2007-05-01 15:59:28 UTC (rev 25661)
+++ mousepad/branches/nick_0_3/mousepad/mousepad-undo.c 2007-05-01 16:07:57 UTC (rev 25662)
@@ -332,21 +332,21 @@
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 @@
/* 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 @@
/* 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 @@
/* 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 @@
/* 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;
Modified: mousepad/branches/nick_0_3/mousepad/mousepad-view.c
===================================================================
--- mousepad/branches/nick_0_3/mousepad/mousepad-view.c 2007-05-01 15:59:28 UTC (rev 25661)
+++ mousepad/branches/nick_0_3/mousepad/mousepad-view.c 2007-05-01 16:07:57 UTC (rev 25662)
@@ -115,7 +115,7 @@
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 @@
/* 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 @@
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