diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-08-16 23:25:56 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-09-04 19:34:32 +0800 |
commit | fcbbdfbd18e15b4ee8322a0217cf03a689a5e033 (patch) | |
tree | e16cd2a2279558c6a2bfb6ca39fcbaac4c85ba59 /shell | |
parent | f78417c48861759d7b0c4535ecd3febe4638a7d3 (diff) | |
download | gsoc2013-evolution-fcbbdfbd18e15b4ee8322a0217cf03a689a5e033.tar.gz gsoc2013-evolution-fcbbdfbd18e15b4ee8322a0217cf03a689a5e033.tar.zst gsoc2013-evolution-fcbbdfbd18e15b4ee8322a0217cf03a689a5e033.zip |
Coding style and whitespace cleanup.
Diffstat (limited to 'shell')
-rw-r--r-- | shell/e-shell-meego.c | 8 | ||||
-rw-r--r-- | shell/e-shell-migrate.c | 7 | ||||
-rw-r--r-- | shell/e-shell-switcher.c | 18 | ||||
-rw-r--r-- | shell/e-shell-utils.c | 2 | ||||
-rw-r--r-- | shell/e-shell-view.c | 3 | ||||
-rw-r--r-- | shell/e-shell-window-actions.c | 58 | ||||
-rw-r--r-- | shell/e-shell-window.c | 8 | ||||
-rw-r--r-- | shell/es-event.c | 11 | ||||
-rw-r--r-- | shell/killev.c | 3 | ||||
-rw-r--r-- | shell/main.c | 3 |
10 files changed, 69 insertions, 52 deletions
diff --git a/shell/e-shell-meego.c b/shell/e-shell-meego.c index 6b5c0f22d0..1f1e3ee25e 100644 --- a/shell/e-shell-meego.c +++ b/shell/e-shell-meego.c @@ -54,9 +54,9 @@ e_shell_detect_meego (gboolean *is_meego, */ struct { gint (*XFree) (gpointer); - gint (*XGetWindowProperty) (Display*, XID, Atom, long, long, Bool, - Atom, Atom *, gint *, unsigned long*, - unsigned long*, guchar **); + gint (*XGetWindowProperty) (Display *, XID, Atom, long, long, Bool, + Atom, Atom *, gint *, gulong *, + gulong *, guchar **); } fns = { 0, 0 }; *is_meego = *small_screen = FALSE; @@ -67,7 +67,7 @@ e_shell_detect_meego (gboolean *is_meego, GdkDisplay *display; GdkAtom wm_win, mob_atom; Atom dummy_t; - unsigned long dummy_l; + gulong dummy_l; gint dummy_i; if (!gdk_display_get_default ()) diff --git a/shell/e-shell-migrate.c b/shell/e-shell-migrate.c index f5e1174729..89f94b0f83 100644 --- a/shell/e-shell-migrate.c +++ b/shell/e-shell-migrate.c @@ -798,7 +798,8 @@ fix_folder_permissions (const gchar *data_dir) } static void -merge_duplicate_local_sources (GConfClient *client, const gchar *gconf_key) +merge_duplicate_local_sources (GConfClient *client, + const gchar *gconf_key) { ESourceList *source_list; GSList *iter, *to_remove = NULL; @@ -933,12 +934,12 @@ e_shell_migrate_attempt (EShell *shell) fix_folder_permissions (e_get_user_data_dir ()); /* Attempt to run migration all the time and let the backend - make the choice */ + * make the choice */ if (!shell_migrate_attempt (shell, major, minor, micro)) _exit (EXIT_SUCCESS); /* The 2.32.x (except of 2.32.2) lefts duplicate On This Computer/Personal sources, - thus clean the mess up */ + * thus clean the mess up */ merge_duplicate_local_sources (client, "/apps/evolution/addressbook/sources"); merge_duplicate_local_sources (client, "/apps/evolution/calendar/sources"); merge_duplicate_local_sources (client, "/apps/evolution/tasks/sources"); diff --git a/shell/e-shell-switcher.c b/shell/e-shell-switcher.c index f70697b8bc..1bfe01ef25 100644 --- a/shell/e-shell-switcher.c +++ b/shell/e-shell-switcher.c @@ -248,8 +248,8 @@ shell_switcher_dispose (GObject *object) static void shell_switcher_get_preferred_width (GtkWidget *widget, - gint *minimum, - gint *natural) + gint *minimum, + gint *natural) { EShellSwitcherPrivate *priv; GtkWidget *child; @@ -283,8 +283,8 @@ shell_switcher_get_preferred_width (GtkWidget *widget, static void shell_switcher_get_preferred_height (GtkWidget *widget, - gint *minimum, - gint *natural) + gint *minimum, + gint *natural) { EShellSwitcherPrivate *priv; GtkWidget *child; @@ -601,9 +601,9 @@ tool_item_get_button (GtkWidget *widget) } static gboolean -tool_item_button_cb (GtkWidget *internal_widget, - GdkEventButton *event, - GtkAction *action) +tool_item_button_cb (GtkWidget *internal_widget, + GdkEventButton *event, + GtkAction *action) { g_return_val_if_fail (GTK_IS_ACTION (action), FALSE); @@ -629,8 +629,8 @@ tool_item_button_cb (GtkWidget *internal_widget, **/ void e_shell_switcher_add_action (EShellSwitcher *switcher, - GtkAction *switch_action, - GtkAction *new_window_action) + GtkAction *switch_action, + GtkAction *new_window_action) { GtkWidget *widget; GtkButton *button; diff --git a/shell/e-shell-utils.c b/shell/e-shell-utils.c index 749eb22bd5..740960f555 100644 --- a/shell/e-shell-utils.c +++ b/shell/e-shell-utils.c @@ -160,7 +160,7 @@ GFile * e_shell_run_save_dialog (EShell *shell, const gchar *title, const gchar *suggestion, - const gchar *filters, + const gchar *filters, GtkCallback customize_func, gpointer customize_data) { diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c index 10842014d4..49e05baf36 100644 --- a/shell/e-shell-view.c +++ b/shell/e-shell-view.c @@ -247,7 +247,8 @@ shell_view_save_state_done_cb (GFile *file, } static EActivity * -shell_view_save_state (EShellView *shell_view, gboolean immediately) +shell_view_save_state (EShellView *shell_view, + gboolean immediately) { EShellBackend *shell_backend; SaveStateData *data; diff --git a/shell/e-shell-window-actions.c b/shell/e-shell-window-actions.c index 2700a5152f..f389b4ea00 100644 --- a/shell/e-shell-window-actions.c +++ b/shell/e-shell-window-actions.c @@ -1255,7 +1255,7 @@ action_switcher_cb (GtkRadioAction *action, static void action_new_view_window_cb (GtkAction *action, - EShellWindow *shell_window) + EShellWindow *shell_window) { EShell *shell; const gchar *view_name; @@ -2097,20 +2097,25 @@ e_shell_window_create_new_menu (EShellWindow *shell_window) } static GtkAction * -e_shell_window_create_switcher_action (GType type, EShellViewClass *class, - const gchar *name, const gchar *tooltip, - const gchar *view_name) +e_shell_window_create_switcher_action (GType type, + EShellViewClass *class, + const gchar *name, + const gchar *tooltip, + const gchar *view_name) { GtkAction *action; - action = g_object_new (type, "name", name, - "label", class->label, - "tooltip", tooltip, - "icon-name", class->icon_name, - NULL); + action = g_object_new ( + type, + "name", name, + "label", class->label, + "tooltip", tooltip, + "icon-name", class->icon_name, + NULL); - g_object_set_data (G_OBJECT (action), "view-name", - (gpointer) view_name); + g_object_set_data ( + G_OBJECT (action), + "view-name", (gpointer) view_name); return action; } @@ -2188,17 +2193,19 @@ e_shell_window_create_switcher_actions (EShellWindow *shell_window) tooltip = g_strdup_printf (_("Switch to %s"), class->label); - s_action_name = g_strdup_printf (E_SHELL_SWITCHER_FORMAT, view_name); + s_action_name = g_strdup_printf ( + E_SHELL_SWITCHER_FORMAT, view_name); /* Note, we have to set "icon-name" separately because * gtk_radio_action_new() expects a "stock-id". Sadly, * GTK+ still distinguishes between the two. */ s_action = GTK_RADIO_ACTION ( - e_shell_window_create_switcher_action (GTK_TYPE_RADIO_ACTION, - class, s_action_name, - tooltip, view_name)); - g_object_set (G_OBJECT (s_action), "value", ii++, NULL); + e_shell_window_create_switcher_action ( + GTK_TYPE_RADIO_ACTION, + class, s_action_name, + tooltip, view_name)); + g_object_set (s_action, "value", ii++, NULL); gtk_radio_action_set_group (s_action, group); group = gtk_radio_action_get_group (s_action); @@ -2221,16 +2228,19 @@ e_shell_window_create_switcher_actions (EShellWindow *shell_window) g_free (s_action_name); /* Create in new window actions */ - n_action_name = g_strdup_printf (E_SHELL_NEW_WINDOW_FORMAT, view_name); - n_action = e_shell_window_create_switcher_action (GTK_TYPE_ACTION, - class, n_action_name, - tooltip, view_name); - g_signal_connect (G_OBJECT (n_action), "activate", - G_CALLBACK (action_new_view_window_cb), - shell_window); + n_action_name = g_strdup_printf ( + E_SHELL_NEW_WINDOW_FORMAT, view_name); + n_action = e_shell_window_create_switcher_action ( + GTK_TYPE_ACTION, + class, n_action_name, + tooltip, view_name); + g_signal_connect ( + n_action, "activate", + G_CALLBACK (action_new_view_window_cb), shell_window); gtk_action_group_add_action (n_action_group, n_action); - e_shell_switcher_add_action (switcher, GTK_ACTION (s_action), n_action); + e_shell_switcher_add_action ( + switcher, GTK_ACTION (s_action), n_action); g_free (n_action_name); g_free (tooltip); diff --git a/shell/e-shell-window.c b/shell/e-shell-window.c index 25dfe43660..8e9f39c5ce 100644 --- a/shell/e-shell-window.c +++ b/shell/e-shell-window.c @@ -190,8 +190,8 @@ shell_window_set_shell (EShellWindow *shell_window, static void shell_window_set_property (GObject *object, guint property_id, - const GValue *value, - GParamSpec *pspec) + const GValue *value, + GParamSpec *pspec) { switch (property_id) { case PROP_ACTIVE_VIEW: @@ -249,8 +249,8 @@ shell_window_set_property (GObject *object, static void shell_window_get_property (GObject *object, guint property_id, - GValue *value, - GParamSpec *pspec) + GValue *value, + GParamSpec *pspec) { switch (property_id) { case PROP_ACTIVE_VIEW: diff --git a/shell/es-event.c b/shell/es-event.c index 9d31f390e9..f6920e5d09 100644 --- a/shell/es-event.c +++ b/shell/es-event.c @@ -88,7 +88,10 @@ ESEvent *es_event_peek (void) } ESEventTargetUpgrade * -es_event_target_new_upgrade (ESEvent *eme, gint major, gint minor, gint revision) +es_event_target_new_upgrade (ESEvent *eme, + gint major, + gint minor, + gint revision) { ESEventTargetUpgrade *t; @@ -112,7 +115,7 @@ static const EEventHookTargetMap emeh_targets[] = { }; static void -emeh_finalise (GObject *o) +emeh_finalize (GObject *o) { /*EPluginHook *eph = (EPluginHook *)o;*/ @@ -131,10 +134,10 @@ emeh_class_init (EPluginHookClass *class) * A hook for events coming from the shell. **/ - ((GObjectClass *) class)->finalize = emeh_finalise; + ((GObjectClass *) class)->finalize = emeh_finalize; ((EPluginHookClass *)class)->id = "org.gnome.evolution.shell.events:1.0"; - for (i=0;emeh_targets[i].type;i++) + for (i = 0; emeh_targets[i].type; i++) e_event_hook_class_add_target_map ( (EEventHookClass *) class, &emeh_targets[i]); diff --git a/shell/killev.c b/shell/killev.c index 948523dccb..f444fad0b8 100644 --- a/shell/killev.c +++ b/shell/killev.c @@ -107,7 +107,8 @@ kill_factories (void) } gint -main (gint argc, gchar **argv) +main (gint argc, + gchar **argv) { GFile *pid_file; GFileMonitor *monitor; diff --git a/shell/main.c b/shell/main.c index 8e1d533546..fd0b0508e6 100644 --- a/shell/main.c +++ b/shell/main.c @@ -431,7 +431,8 @@ create_default_shell (void) } gint -main (gint argc, gchar **argv) +main (gint argc, + gchar **argv) { EShell *shell; GConfClient *client; |