From 464e0832f0aafc4af7811dcd3000f4285821ef9c Mon Sep 17 00:00:00 2001 From: monsta Date: Tue, 1 Sep 2015 10:57:04 +0300 Subject: dictionary: fixed indentation a bit --- mate-dictionary/src/gdict-app.c | 56 ++++++++++++++++++++--------------------- mate-dictionary/src/main.c | 10 ++++---- 2 files changed, 33 insertions(+), 33 deletions(-) diff --git a/mate-dictionary/src/gdict-app.c b/mate-dictionary/src/gdict-app.c index baf3ded8..c0673709 100644 --- a/mate-dictionary/src/gdict-app.c +++ b/mate-dictionary/src/gdict-app.c @@ -62,8 +62,8 @@ gdict_app_finalize (GObject *object) app->current_window = NULL; g_slist_foreach (app->windows, - (GFunc) gtk_widget_destroy, - NULL); + (GFunc) gtk_widget_destroy, + NULL); g_slist_free (app->windows); g_slist_foreach (app->lookup_words, (GFunc) g_free, NULL); @@ -125,13 +125,13 @@ gdict_window_created_cb (GdictWindow *parent, * destroyed, and will add/remove it to the windows list accordingly */ g_signal_connect (new_window, "created", - G_CALLBACK (gdict_window_created_cb), app); + G_CALLBACK (gdict_window_created_cb), app); g_signal_connect (new_window, "destroy", - G_CALLBACK (gdict_window_destroy_cb), app); + G_CALLBACK (gdict_window_destroy_cb), app); if (gtk_window_get_group (GTK_WINDOW (parent))) gtk_window_group_add_window (gtk_window_get_group (GTK_WINDOW (parent)), - GTK_WINDOW (new_window)); + GTK_WINDOW (new_window)); app->windows = g_slist_prepend (app->windows, new_window); app->current_window = new_window; @@ -147,13 +147,13 @@ gdict_create_window (GdictApp *app) GtkWidget *window; window = gdict_window_new (GDICT_WINDOW_ACTION_CLEAR, - singleton->loader, - singleton->source_name, - NULL); + singleton->loader, + singleton->source_name, + NULL); g_signal_connect (window, "created", - G_CALLBACK (gdict_window_created_cb), app); + G_CALLBACK (gdict_window_created_cb), app); g_signal_connect (window, "destroy", - G_CALLBACK (gdict_window_destroy_cb), app); + G_CALLBACK (gdict_window_destroy_cb), app); app->windows = g_slist_prepend (app->windows, window); app->current_window = GDICT_WINDOW (window); @@ -169,14 +169,14 @@ gdict_create_window (GdictApp *app) GtkWidget *window; window = gdict_window_new (GDICT_WINDOW_ACTION_LOOKUP, - singleton->loader, - singleton->source_name, - word); + singleton->loader, + singleton->source_name, + word); g_signal_connect (window, "created", - G_CALLBACK (gdict_window_created_cb), app); + G_CALLBACK (gdict_window_created_cb), app); g_signal_connect (window, "destroy", - G_CALLBACK (gdict_window_destroy_cb), app); + G_CALLBACK (gdict_window_destroy_cb), app); app->windows = g_slist_prepend (app->windows, window); app->current_window = GDICT_WINDOW (window); @@ -190,14 +190,14 @@ gdict_create_window (GdictApp *app) GtkWidget *window; window = gdict_window_new (GDICT_WINDOW_ACTION_MATCH, - singleton->loader, - singleton->source_name, - word); + singleton->loader, + singleton->source_name, + word); g_signal_connect (window, "created", - G_CALLBACK (gdict_window_created_cb), app); + G_CALLBACK (gdict_window_created_cb), app); g_signal_connect (window, "destroy", - G_CALLBACK (gdict_window_destroy_cb), app); + G_CALLBACK (gdict_window_destroy_cb), app); app->windows = g_slist_prepend (app->windows, window); app->current_window = GDICT_WINDOW (window); @@ -215,12 +215,12 @@ definition_found_cb (GdictContext *context, * database name and the last is the definition's text; please * keep the new lines. */ g_print (_("Definition for '%s'\n" - " From '%s':\n" - "\n" - "%s\n"), + " From '%s':\n" + "\n" + "%s\n"), gdict_definition_get_word (definition), - gdict_definition_get_database (definition), - gdict_definition_get_text (definition)); + gdict_definition_get_database (definition), + gdict_definition_get_text (definition)); } static void @@ -280,11 +280,11 @@ gdict_look_up_word_and_quit (GdictApp *app) g_assert (GDICT_IS_CONTEXT (context)); g_signal_connect (context, "definition-found", - G_CALLBACK (definition_found_cb), app); + G_CALLBACK (definition_found_cb), app); g_signal_connect (context, "error", - G_CALLBACK (error_cb), app); + G_CALLBACK (error_cb), app); g_signal_connect (context, "lookup-end", - G_CALLBACK (lookup_end_cb), app); + G_CALLBACK (lookup_end_cb), app); app->remaining_words = 0; for (l = app->lookup_words; l != NULL; l = l->next) diff --git a/mate-dictionary/src/main.c b/mate-dictionary/src/main.c index f6dcc94d..a89a5754 100644 --- a/mate-dictionary/src/main.c +++ b/mate-dictionary/src/main.c @@ -10,15 +10,15 @@ int main (int argc, char *argv[]) { - bindtextdomain (GETTEXT_PACKAGE, MATELOCALEDIR); - bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); - textdomain (GETTEXT_PACKAGE); + bindtextdomain (GETTEXT_PACKAGE, MATELOCALEDIR); + bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); + textdomain (GETTEXT_PACKAGE); gdict_init (&argc, &argv); - + gdict_main (); gdict_cleanup (); - + return EXIT_SUCCESS; } -- cgit v1.2.1