diff pkui-icon.c @ 39:f6edbee6441f

Stylistic fixes
author Guido Berhoerster <gber@opensuse.org>
date Fri, 07 Feb 2014 21:56:46 +0100
parents bae8a7e20382
children aa5d3752091d
line wrap: on
line diff
--- a/pkui-icon.c	Fri Feb 07 18:31:52 2014 +0100
+++ b/pkui-icon.c	Fri Feb 07 21:56:46 2014 +0100
@@ -39,13 +39,13 @@
 	NotifyNotification *notification;
 };
 
-static GtkWidget* icon_popup_menu_create(PkuiIcon *self);
-static void icon_popup_menu_popup(GtkStatusIcon *status_icon, guint button,
+static GtkWidget*	icon_popup_menu_create(PkuiIcon *self);
+static void	icon_popup_menu_popup(GtkStatusIcon *status_icon, guint button,
     guint activate_time, gpointer user_data);
-static void icon_activated(GtkStatusIcon *status_icon, gpointer user_data);
-static void hide_notification(PkuiIcon *self);
-static void backend_state_changed(PkuiBackend *backend, gpointer user_data);
-static void update_viewer_exited(GPid pid, gint status, gpointer user_data);
+static void	icon_activated(GtkStatusIcon *status_icon, gpointer user_data);
+static void	hide_notification(PkuiIcon *self);
+static void	backend_state_changed(PkuiBackend *backend, gpointer user_data);
+static void	update_viewer_exited(GPid pid, gint status, gpointer user_data);
 
 static void
 pkui_icon_finalize(GObject *gobject)
@@ -125,31 +125,32 @@
 static void
 about_dialog_show(GtkMenuItem *item, gpointer user_data)
 {
-	static const gchar *copyright = "Copyright \xc2\xa9 2011 Guido "
+	static const gchar	*copyright = "Copyright \xc2\xa9 2011 Guido "
 	    "Berhoerster\nCopyright \xc2\xa9 2011 Pavol Rusnak\n";
-	static const gchar *authors[3] = {
+	static const gchar	*authors[3] = {
 	    "Guido Berhoerster <gber@opensuse.org>",
 	    "Pavol Rusnak <stick@gk2.sk>",
 	    NULL
 	};
-	static const gchar *documenters[2] = {
+	static const gchar	*documenters[2] = {
 	    "Guido Berhoerster <gber@opensuse.org>",
 	    NULL
 	};
-	static const gchar *license =
-	    "Licensed under the GNU General Public License Version 2\n\nThis "
-	    "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.\n\nThis 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.\n\nYou 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.";
-	const gchar *translators = _("translators");
+	static const gchar	*license =
+	    "Licensed under the GNU General Public License Version 2\n\n"
+	    "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.\n\n"
+	    "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.\n\n"
+	    "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.";
+	const gchar	*translators = _("translators");
 
 	if (strcmp(translators, "translators") == 0)
 	    translators = NULL;
@@ -202,7 +203,7 @@
 icon_popup_menu_popup(GtkStatusIcon *status_icon, guint button,
     guint activate_time, gpointer user_data)
 {
-	PkuiIcon *self = PKUI_ICON(user_data);
+	PkuiIcon	*self = PKUI_ICON(user_data);
 
 	gtk_menu_popup(GTK_MENU(self->priv->status_icon_popup_menu), NULL, NULL,
 	    NULL, NULL, button, activate_time);
@@ -212,7 +213,7 @@
 notification_handle_action(NotifyNotification *notification, gchar *action,
     gpointer user_data)
 {
-	PkuiIcon *self = PKUI_ICON(user_data);
+	PkuiIcon	*self = PKUI_ICON(user_data);
 
 	if (strcmp(action, "install-updates") == 0)
 		exec_update_viewer(self);
@@ -222,13 +223,13 @@
 update_notification(PkuiIcon *self, guint updates_normal,
     guint updates_important)
 {
-	gchar *message;
-	gchar *title = updates_important ?
+	gchar	*message;
+	gchar	*title = updates_important ?
 	    ngettext("Important Software Update", "Important Software Updates",
 	    updates_important + updates_normal) :
 	    ngettext("Software Update", "Software Updates", updates_important +
 	    updates_normal);
-	gchar *icon = updates_important ? "software-update-urgent" :
+	gchar	*icon = updates_important ? "software-update-urgent" :
 	    "software-update-available";
 
 	if (updates_important > 0)