summaryrefslogtreecommitdiff
path: root/mate-about
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-11-20 22:09:31 +0300
committermonsta <[email protected]>2016-11-20 22:09:31 +0300
commit8a02c826552076be5f85bc9412252d096d4f01bb (patch)
tree0b109f4bbbb4d59494f55d8a700ae0bc2caeca08 /mate-about
parent06cb0eac6e40a12855a707d100eacfede1c839c2 (diff)
downloadmate-desktop-8a02c826552076be5f85bc9412252d096d4f01bb.tar.bz2
mate-desktop-8a02c826552076be5f85bc9412252d096d4f01bb.tar.xz
fix indent a bit
Diffstat (limited to 'mate-about')
-rw-r--r--mate-about/mate-about.c32
-rw-r--r--mate-about/mate-about.h8
2 files changed, 18 insertions, 22 deletions
diff --git a/mate-about/mate-about.c b/mate-about/mate-about.c
index 50506e5..224f341 100644
--- a/mate-about/mate-about.c
+++ b/mate-about/mate-about.c
@@ -95,9 +95,9 @@ void mate_about_run(void)
* displayed in the about box to give credit to the translator(s). */
mate_about_dialog_set_translator_credits(mate_about_dialog, _("translator-credits"));
- #if GTK_CHECK_VERSION(3, 0, 0)
- gtk_window_set_application(GTK_WINDOW(mate_about_dialog), mate_about_application);
- #endif
+#if GTK_CHECK_VERSION(3, 0, 0)
+ gtk_window_set_application(GTK_WINDOW(mate_about_dialog), mate_about_application);
+#endif
// start and destroy
gtk_dialog_run((GtkDialog*) mate_about_dialog);
@@ -128,25 +128,21 @@ int main(int argc, char** argv)
{
gtk_init(&argc, &argv);
- #if GTK_CHECK_VERSION(3, 0, 0)
-
- mate_about_application = gtk_application_new("org.mate.about", 0);
- g_signal_connect(mate_about_application, "activate", G_CALLBACK(mate_about_on_activate), NULL);
-
- status = g_application_run(G_APPLICATION(mate_about_application), argc, argv);
-
- g_object_unref(mate_about_application);
-
- #else
+#if GTK_CHECK_VERSION(3, 0, 0)
+ mate_about_application = gtk_application_new("org.mate.about", 0);
+ g_signal_connect(mate_about_application, "activate", G_CALLBACK(mate_about_on_activate), NULL);
- mate_about_application = g_application_new("org.mate.about", G_APPLICATION_FLAGS_NONE);
- g_signal_connect(mate_about_application, "activate", G_CALLBACK(mate_about_on_activate), NULL);
+ status = g_application_run(G_APPLICATION(mate_about_application), argc, argv);
- status = g_application_run(G_APPLICATION(mate_about_application), argc, argv);
+ g_object_unref(mate_about_application);
+#else
+ mate_about_application = g_application_new("org.mate.about", G_APPLICATION_FLAGS_NONE);
+ g_signal_connect(mate_about_application, "activate", G_CALLBACK(mate_about_on_activate), NULL);
- g_object_unref(mate_about_application);
+ status = g_application_run(G_APPLICATION(mate_about_application), argc, argv);
- #endif
+ g_object_unref(mate_about_application);
+#endif
}
return status;
diff --git a/mate-about/mate-about.h b/mate-about/mate-about.h
index 9edf8a4..7fb903d 100644
--- a/mate-about/mate-about.h
+++ b/mate-about/mate-about.h
@@ -652,9 +652,9 @@ const char* artists[] = {
MateAboutDialog* mate_about_dialog = FALSE;
#if GTK_CHECK_VERSION(3, 0, 0)
- GtkApplication* mate_about_application;
+GtkApplication* mate_about_application;
#else
- GApplication* mate_about_application;
+GApplication* mate_about_application;
#endif
/**
@@ -667,9 +667,9 @@ void mate_about_run(void);
void mate_about_release_version(void);
#if GTK_CHECK_VERSION(3, 0, 0)
- static void mate_about_on_activate(GtkApplication* app);
+static void mate_about_on_activate(GtkApplication* app);
#else
- static void mate_about_on_activate(GApplication* app);
+static void mate_about_on_activate(GApplication* app);
#endif
// arguments definitions