diff options
author | Laurent Napias <[email protected]> | 2019-06-29 10:29:13 +0200 |
---|---|---|
committer | ZenWalker <[email protected]> | 2019-07-06 21:46:58 +0200 |
commit | db655f3fb2f67b695d36369e584fcb598e0e1bea (patch) | |
tree | ff7a4404cb6f0d1d8ca3a08ee50c60641641f1b4 /pluma/pluma-session.c | |
parent | 5153fb08a2e26015d07e7b3805de15d38bd05a9d (diff) | |
download | pluma-db655f3fb2f67b695d36369e584fcb598e0e1bea.tar.bz2 pluma-db655f3fb2f67b695d36369e584fcb598e0e1bea.tar.xz |
Remove trailing whitespaces
Diffstat (limited to 'pluma/pluma-session.c')
-rw-r--r-- | pluma/pluma-session.c | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/pluma/pluma-session.c b/pluma/pluma-session.c index 628f4ef5..7d793b4d 100644 --- a/pluma/pluma-session.c +++ b/pluma/pluma-session.c @@ -3,7 +3,7 @@ * This file is part of pluma * * Copyright (C) 2002 Ximian, Inc. - * Copyright (C) 2005 - Paolo Maggi + * Copyright (C) 2005 - Paolo Maggi * * Author: Federico Mena-Quintero <[email protected]> * @@ -19,13 +19,13 @@ * * 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 St, Fifth Floor, - * Boston, MA 02110-1301, USA. + * Foundation, Inc., 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301, USA. */ /* - * Modified by the pluma Team, 2002-2005. See the AUTHORS file for a - * list of people on the pluma Team. + * Modified by the pluma Team, 2002-2005. See the AUTHORS file for a + * list of people on the pluma Team. * See the ChangeLog files for a list of changes. * * $Id$ @@ -110,14 +110,14 @@ save_window_session (GKeyFile *state_file, if (uri != NULL) g_ptr_array_add (doc_array, uri); - + } - g_list_free (docs); + g_list_free (docs); if (doc_array->len) { guint i; - + g_key_file_set_string_list (state_file, group_name, "documents", (const char **)doc_array->pdata, @@ -147,7 +147,7 @@ client_save_state_cb (EggSMClient *client, group_name, PLUMA_WINDOW (windows->data)); g_free (group_name); - + windows = g_list_next (windows); n++; } @@ -376,9 +376,9 @@ client_quit_cb (EggSMClient *client, gpointer data) pluma_file_close_all (); pluma_debug_message (DEBUG_FILE, "All files closed."); - + matecomponent_mdi_destroy (MATECOMPONENT_MDI (pluma_mdi)); - + pluma_debug_message (DEBUG_FILE, "Unref pluma_mdi."); g_object_unref (G_OBJECT (pluma_mdi)); @@ -397,7 +397,7 @@ client_quit_cb (EggSMClient *client, gpointer data) /** * pluma_session_init: - * + * * Initializes session management support. This function should be called near * the beginning of the program. **/ @@ -405,7 +405,7 @@ void pluma_session_init (void) { pluma_debug (DEBUG_SESSION); - + if (master_client) return; @@ -421,14 +421,14 @@ pluma_session_init (void) g_signal_connect (master_client, "quit", G_CALLBACK (client_quit_cb), - NULL); + NULL); } /** * pluma_session_is_restored: - * + * * Returns whether this pluma is running from a restarted session. - * + * * Return value: TRUE if the session manager restarted us, FALSE otherwise. * This should be used to determine whether to pay attention to command line * arguments in case the session was not restored. @@ -459,7 +459,7 @@ parse_window (GKeyFile *state_file, const char *group_name) gboolean visible; PlumaPanel *panel; GError *error = NULL; - + role = g_key_file_get_string (state_file, group_name, "role", NULL); pluma_debug_message (DEBUG_SESSION, "Window role: %s", role); @@ -488,8 +488,8 @@ parse_window (GKeyFile *state_file, const char *group_name) height = -1; } gtk_window_set_default_size (GTK_WINDOW (window), width, height); - - + + visible = g_key_file_get_boolean (state_file, group_name, "side-panel-visible", &error); if (error) @@ -497,9 +497,9 @@ parse_window (GKeyFile *state_file, const char *group_name) g_clear_error (&error); visible = FALSE; } - + panel = pluma_window_get_side_panel (window); - + if (visible) { pluma_debug_message (DEBUG_SESSION, "Side panel visible"); @@ -510,7 +510,7 @@ parse_window (GKeyFile *state_file, const char *group_name) pluma_debug_message (DEBUG_SESSION, "Side panel _NOT_ visible"); gtk_widget_hide (GTK_WIDGET (panel)); } - + visible = g_key_file_get_boolean (state_file, group_name, "bottom-panel-visible", &error); if (error) @@ -518,7 +518,7 @@ parse_window (GKeyFile *state_file, const char *group_name) g_clear_error (&error); visible = FALSE; } - + panel = pluma_window_get_bottom_panel (window); if (visible) { @@ -539,13 +539,13 @@ parse_window (GKeyFile *state_file, const char *group_name) { int i; gboolean jump_to = FALSE; - + for (i = 0; documents[i]; i++) { if (active_document != NULL) jump_to = strcmp (active_document, documents[i]) == 0; - + pluma_debug_message (DEBUG_SESSION, "URI: %s (%s)", documents[i], @@ -559,18 +559,18 @@ parse_window (GKeyFile *state_file, const char *group_name) } g_strfreev (documents); } - + g_free (active_document); - + gtk_widget_show (GTK_WIDGET (window)); } /** * pluma_session_load: - * + * * Loads the session by fetching the necessary information from the session * manager and opening files. - * + * * Return value: TRUE if the session was loaded successfully, FALSE otherwise. **/ gboolean |