[anjuta] anjuta: Remove trailing spaces
- From: Sebastien Granjoux <sgranjoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] anjuta: Remove trailing spaces
- Date: Sun, 11 Nov 2012 18:15:29 +0000 (UTC)
commit 427ec9114cbc6eba42f59c139b14d7030cc361a4
Author: SÃbastien Granjoux <seb sfo free fr>
Date: Sun Nov 11 17:48:54 2012 +0100
anjuta: Remove trailing spaces
src/about.c | 60 +++++++++++++++++++++++-----------------------
src/action-callbacks.c | 22 ++++++++--------
src/action-callbacks.h | 10 ++++----
src/anjuta-actions.h | 16 ++++++------
src/anjuta-application.h | 14 +++++-----
src/anjuta-window.h | 14 +++++-----
src/main.c | 8 +++---
7 files changed, 72 insertions(+), 72 deletions(-)
---
diff --git a/src/about.c b/src/about.c
index e47bf6f..ac8a4cb 100644
--- a/src/about.c
+++ b/src/about.c
@@ -31,7 +31,7 @@
#define LICENSE_FILE PACKAGE_DOC_DIR "/COPYING"
#define ANJUTA_PIXMAP_LOGO "anjuta_logo.png"
-#define ABOUT_AUTHORS "AUTHORS"
+#define ABOUT_AUTHORS "AUTHORS"
#define MAX_CAR 256
#define MAX_CREDIT 500
@@ -46,7 +46,7 @@ about_read_line(FILE *fp)
static gchar tpn[MAX_CAR];
char *pt;
char c;
-
+
pt = tpn;
while( ((c=getc(fp))!='\n') && (c!=EOF) && ((pt-tpn)<MAX_CAR) )
*(pt++)=c;
@@ -54,7 +54,7 @@ about_read_line(FILE *fp)
if ( c!=EOF)
return tpn;
else
- return NULL;
+ return NULL;
}
static gchar*
@@ -69,8 +69,8 @@ about_read_developers(FILE *fp, gchar *line, gint *index, const gchar **tab)
line = g_strchomp(line);
}
while (!g_str_has_suffix(line, ":") );
-
- return line;
+
+ return line;
}
static gchar*
@@ -85,8 +85,8 @@ read_documenters(FILE *fp, gchar *line, gint *index, const gchar **tab)
line = g_strchomp(line);
}
while ( !g_str_has_suffix(line, ":") );
-
- return line;
+
+ return line;
}
static gchar*
@@ -94,12 +94,12 @@ read_translators(FILE *fp, gchar *line)
{
gboolean found = FALSE;
gchar *env_lang = getenv("LANG");
-
+
do
{
if ( !(line = about_read_line(fp)))
return NULL;
-
+
line = g_strchug(line);
if (!found && g_str_has_prefix(line, env_lang) )
{
@@ -112,11 +112,11 @@ read_translators(FILE *fp, gchar *line)
line = g_strchomp(line);
}
while ( !g_str_has_suffix(line, ":") );
-
- return line;
+
+ return line;
}
-static void
+static void
about_read_file(void)
{
FILE *fp;
@@ -125,7 +125,7 @@ about_read_file(void)
gint i_doc = 0;
fp = fopen(PACKAGE_DATA_DIR"/"ABOUT_AUTHORS, "r");
-
+
g_return_if_fail (fp != NULL);
line = about_read_line(fp);
do
@@ -158,7 +158,7 @@ static void
about_free_credit(void)
{
gint i = 0;
-
+
gchar** ptr = (gchar**) authors;
for(i=0; ptr[i]; i++)
g_free (ptr[i]);
@@ -176,11 +176,11 @@ about_box_new (GtkWindow *parent)
GdkPixbuf *pix;
gchar* license = NULL;
GError* error = NULL;
-
+
/* Parse AUTHORS file */
about_read_file();
-
+
if (!g_file_get_contents (LICENSE_FILE,
&license,
NULL,
@@ -191,25 +191,25 @@ about_box_new (GtkWindow *parent)
error->message);
g_error_free (error);
}
-
+
pix = gdk_pixbuf_new_from_file (PACKAGE_PIXMAPS_DIR"/"ANJUTA_PIXMAP_LOGO,
NULL);
-
+
dialog = gtk_about_dialog_new();
gtk_window_set_transient_for(GTK_WINDOW(dialog), parent);
gtk_window_set_modal(GTK_WINDOW(dialog), TRUE);
gtk_about_dialog_set_program_name(GTK_ABOUT_DIALOG(dialog), "Anjuta");
gtk_about_dialog_set_version(GTK_ABOUT_DIALOG(dialog), VERSION);
- gtk_about_dialog_set_copyright(GTK_ABOUT_DIALOG(dialog),
+ gtk_about_dialog_set_copyright(GTK_ABOUT_DIALOG(dialog),
_("Copyright (c) Naba Kumar"));
gtk_about_dialog_set_comments(GTK_ABOUT_DIALOG(dialog),
_("Integrated Development Environment"));
- gtk_about_dialog_set_license(GTK_ABOUT_DIALOG(dialog),
+ gtk_about_dialog_set_license(GTK_ABOUT_DIALOG(dialog),
license);
gtk_about_dialog_set_website(GTK_ABOUT_DIALOG(dialog), "http://www.anjuta.org");
gtk_about_dialog_set_logo(GTK_ABOUT_DIALOG(dialog), pix);
-
+
gtk_about_dialog_set_authors(GTK_ABOUT_DIALOG(dialog), authors);
gtk_about_dialog_set_documenters(GTK_ABOUT_DIALOG(dialog), documenters);
gtk_about_dialog_set_translator_credits(GTK_ABOUT_DIALOG(dialog), translators);
@@ -246,7 +246,7 @@ on_about_plugin_activate (GtkMenuItem *item, AnjutaShell *shell)
anjuta_plugin_description_get_string (desc, "Anjuta Plugin",
"Authors", &authors);
anjuta_plugin_description_get_string (desc, "Anjuta Plugin",
- "License", &license);
+ "License", &license);
if (icon)
{
gchar *path = g_build_filename (PACKAGE_PIXMAPS_DIR, icon, NULL);
@@ -260,22 +260,22 @@ on_about_plugin_activate (GtkMenuItem *item, AnjutaShell *shell)
dialog = gtk_about_dialog_new();
gtk_window_set_transient_for(GTK_WINDOW(dialog), GTK_WINDOW(shell));
gtk_window_set_modal(GTK_WINDOW(dialog), TRUE);
-
+
gtk_about_dialog_set_program_name(GTK_ABOUT_DIALOG(dialog), name);
gtk_about_dialog_set_version(GTK_ABOUT_DIALOG(dialog), VERSION);
if (license)
- gtk_about_dialog_set_copyright(GTK_ABOUT_DIALOG(dialog),
+ gtk_about_dialog_set_copyright(GTK_ABOUT_DIALOG(dialog),
license);
gtk_about_dialog_set_comments(GTK_ABOUT_DIALOG(dialog),d);
gtk_about_dialog_set_logo(GTK_ABOUT_DIALOG(dialog), pix);
-
+
gtk_about_dialog_set_authors(GTK_ABOUT_DIALOG(dialog),
(const gchar **)authors_v);
-
+
gtk_widget_show (dialog);
g_signal_connect (dialog, "response", G_CALLBACK (gtk_widget_destroy), NULL);
-
+
g_object_unref (pix);
g_strfreev (authors_v);
g_free (name);
@@ -290,14 +290,14 @@ about_create_plugins_submenu (AnjutaShell *shell, GtkWidget *menuitem)
{
GtkWidget *submenu;
GList *plugin_descs, *node;
-
+
g_return_if_fail (ANJUTA_IS_SHELL (shell));
g_return_if_fail (GTK_IS_MENU_ITEM (menuitem));
-
+
submenu = gtk_menu_new ();
gtk_widget_show (submenu);
gtk_menu_item_set_submenu (GTK_MENU_ITEM (menuitem), submenu);
-
+
plugin_descs =
anjuta_plugin_manager_query (anjuta_shell_get_plugin_manager (shell, NULL),
NULL, NULL, NULL, NULL);
diff --git a/src/action-callbacks.c b/src/action-callbacks.c
index 9583d0a..259a1e8 100644
--- a/src/action-callbacks.c
+++ b/src/action-callbacks.c
@@ -2,17 +2,17 @@
/*
* mainmenu_callbacks.c
* Copyright (C) 2003 Naba Kumar <naba gnome 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 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
@@ -47,7 +47,7 @@ on_exit1_activate (GtkAction * action, AnjutaWindow *win)
event->any.window = g_object_ref (gtk_widget_get_window (GTK_WIDGET(win)));
event->any.send_event = TRUE;
-
+
gtk_main_do_event (event);
gdk_event_free (event);
}
@@ -98,25 +98,25 @@ on_set_preferences1_activate (GtkAction * action, AnjutaWindow *win)
{
GtkWidget *preferences_dialog;
-
+
if (anjuta_preferences_is_dialog_created (win->preferences))
{
gtk_window_present (GTK_WINDOW (anjuta_preferences_get_dialog (win->preferences)));
return;
}
preferences_dialog = anjuta_preferences_get_dialog (win->preferences);
-
+
/* Install main application preferences */
anjuta_window_install_preferences (win);
-
+
g_signal_connect_swapped (G_OBJECT (preferences_dialog),
"response",
G_CALLBACK (gtk_widget_destroy),
- preferences_dialog);
-
+ preferences_dialog);
+
gtk_window_set_transient_for (GTK_WINDOW (preferences_dialog),
GTK_WINDOW (win));
-
+
gtk_widget_show (preferences_dialog);
}
@@ -152,7 +152,7 @@ on_url_faqs_activate (GtkAction * action, gpointer user_data)
void
on_about_activate (GtkAction * action, AnjutaWindow *win)
-{
+{
GtkWidget *about_dlg = about_box_new (GTK_WINDOW (win));
g_signal_connect_swapped(about_dlg, "response",
diff --git a/src/action-callbacks.h b/src/action-callbacks.h
index 677b6ed..0ca5aa7 100644
--- a/src/action-callbacks.h
+++ b/src/action-callbacks.h
@@ -1,19 +1,19 @@
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
-/*
+/*
* mainmenu_callbacks.h
* Copyright (C) 2003 Naba Kumar <naba gnome 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 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
+ *
+ * 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.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
diff --git a/src/anjuta-actions.h b/src/anjuta-actions.h
index fb46193..af2a7e9 100644
--- a/src/anjuta-actions.h
+++ b/src/anjuta-actions.h
@@ -2,19 +2,19 @@
/*
* anjuta.c
* Copyright (C) 2003 Naba Kumar <naba gnome 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
+ * 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
+ * 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.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "action-callbacks.h"
@@ -28,7 +28,7 @@ static GtkActionEntry menu_entries_file[] = {
static GtkActionEntry menu_entries_edit[] = {
{ "ActionMenuEdit", NULL, N_("_Edit")},
- { "ActionEditPreferences", GTK_STOCK_PROPERTIES,
+ { "ActionEditPreferences", GTK_STOCK_PROPERTIES,
N_("_Preferences"), NULL,
N_("Do you prefer coffee to tea? Check it out."),
G_CALLBACK (on_set_preferences1_activate)},
@@ -36,7 +36,7 @@ static GtkActionEntry menu_entries_edit[] = {
static GtkActionEntry menu_entries_view[] = {
{ "ActionMenuView", NULL, N_("_View")},
- { "ActionViewResetLayout", NULL,
+ { "ActionViewResetLayout", NULL,
N_("_Reset Dock Layout"), NULL,
N_("Reset the widgets docking layout to default"),
G_CALLBACK (on_reset_layout_activate)}
@@ -51,7 +51,7 @@ static GtkToggleActionEntry menu_entries_toggle_view[] = {
N_("_Lock Dock Layout"), NULL,
N_("Lock the current dock layout so that widgets cannot be moved"),
G_CALLBACK (on_layout_lock_toggle)},
- { "ActionViewToolbar", NULL,
+ { "ActionViewToolbar", NULL,
N_("_Toolbar"), NULL,
N_("Show or hide the toolbar"),
G_CALLBACK (on_toolbar_view_toggled)}
diff --git a/src/anjuta-application.h b/src/anjuta-application.h
index d5e60a7..734f61f 100644
--- a/src/anjuta-application.h
+++ b/src/anjuta-application.h
@@ -2,20 +2,20 @@
/*
* anjuta-application.h
* Copyright (C) 2000 Naba Kumar <naba gnome 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
+ * 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
+ * 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.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef _ANJUTA_APPLICATION_H_
@@ -43,7 +43,7 @@ struct _AnjutaApplication
{
GtkApplication parent;
- AnjutaApplicationPrivate *priv;
+ AnjutaApplicationPrivate *priv;
};
GType anjuta_application_get_type (void);
diff --git a/src/anjuta-window.h b/src/anjuta-window.h
index 4438bfe..b32a88f 100644
--- a/src/anjuta-window.h
+++ b/src/anjuta-window.h
@@ -2,20 +2,20 @@
/*
* anjuta-window.h
* Copyright (C) 2003 Naba Kumar <naba gnome 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
+ * 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
+ * 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.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef _ANJUTA_WINDOW_H_
@@ -53,7 +53,7 @@ struct _AnjutaWindow
gboolean maximized;
GtkAccelGroup *accel_group;
-
+
AnjutaStatus *status;
AnjutaUI *ui;
AnjutaPreferences *preferences;
diff --git a/src/main.c b/src/main.c
index b36a681..e88dffb 100644
--- a/src/main.c
+++ b/src/main.c
@@ -48,15 +48,15 @@ main (int argc, char *argv[])
#endif
g_set_application_name (_("Anjuta"));
-
+
anjuta = anjuta_application_new ();
-
+
status = g_application_run (G_APPLICATION (anjuta), argc, argv);
-
+
if (anjuta_application_get_proper_shutdown (anjuta))
{
g_object_unref (anjuta);
-
+
/* xmlCleanupParser must be called only one time in the application */
xmlCleanupParser ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]