gnome-commander r1935 - trunk/libgcmd
- From: epiotr svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-commander r1935 - trunk/libgcmd
- Date: Mon, 4 Aug 2008 17:17:57 +0000 (UTC)
Author: epiotr
Date: Mon Aug 4 17:17:57 2008
New Revision: 1935
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=1935&view=rev
Log:
Code cleanup
Modified:
trunk/libgcmd/libgcmd-utils.c
trunk/libgcmd/libgcmd-utils.h
Modified: trunk/libgcmd/libgcmd-utils.c
==============================================================================
--- trunk/libgcmd/libgcmd-utils.c (original)
+++ trunk/libgcmd/libgcmd-utils.c Mon Aug 4 17:17:57 2008
@@ -23,8 +23,7 @@
#include "libgcmd-utils.h"
-static gchar *
-get_trashed_string (const gchar *in)
+static gchar *get_trashed_string (const gchar *in)
{
gchar *out = g_strdup (in);
gchar *end;
@@ -44,7 +43,8 @@
if (g_utf8_validate (unknown, -1, NULL))
out = g_strdup (unknown);
- else {
+ else
+ {
gsize i;
out = g_locale_to_utf8 (unknown, strlen (unknown), &i, &i, NULL);
if (!out)
@@ -55,22 +55,19 @@
}
-gchar *
-get_bold_text (const gchar *in)
+gchar *get_bold_text (const gchar *in)
{
return g_strdup_printf ("<span weight=\"bold\">%s</span>", in);
}
-gchar *
-get_mono_text (const gchar *in)
+gchar *get_mono_text (const gchar *in)
{
return g_strdup_printf ("<span font_family=\"monospace\">%s</span>", in);
}
-gchar *
-get_bold_mono_text (const gchar *in)
+gchar *get_bold_mono_text (const gchar *in)
{
return g_strdup_printf ("<span font_family=\"monospace\" weight=\"bold\">%s</span>", in);
}
Modified: trunk/libgcmd/libgcmd-utils.h
==============================================================================
--- trunk/libgcmd/libgcmd-utils.h (original)
+++ trunk/libgcmd/libgcmd-utils.h Mon Aug 4 17:17:57 2008
@@ -22,17 +22,13 @@
G_BEGIN_DECLS
-gchar *
-get_utf8 (const gchar *unknown);
+gchar *get_utf8 (const gchar *unknown);
-gchar *
-get_bold_text (const gchar *in);
+gchar *get_bold_text (const gchar *in);
-gchar *
-get_mono_text (const gchar *in);
+gchar *get_mono_text (const gchar *in);
-gchar *
-get_bold_mono_text (const gchar *in);
+gchar *get_bold_mono_text (const gchar *in);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]