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-history-entry.c | |
parent | 5153fb08a2e26015d07e7b3805de15d38bd05a9d (diff) | |
download | pluma-db655f3fb2f67b695d36369e584fcb598e0e1bea.tar.bz2 pluma-db655f3fb2f67b695d36369e584fcb598e0e1bea.tar.xz |
Remove trailing whitespaces
Diffstat (limited to 'pluma/pluma-history-entry.c')
-rw-r--r-- | pluma/pluma-history-entry.c | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/pluma/pluma-history-entry.c b/pluma/pluma-history-entry.c index 717d69d4..64b52409 100644 --- a/pluma/pluma-history-entry.c +++ b/pluma/pluma-history-entry.c @@ -16,14 +16,14 @@ * * 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, + * Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ - + /* - * Modified by the pluma Team, 2006. See the AUTHORS file for a - * list of people on the pluma Team. - * See the ChangeLog files for a list of changes. + * Modified by the pluma Team, 2006. See the AUTHORS file for a + * list of people on the pluma Team. + * See the ChangeLog files for a list of changes. * * $Id$ */ @@ -58,9 +58,9 @@ struct _PlumaHistoryEntryPrivate { gchar *history_id; guint history_length; - + GtkEntryCompletion *completion; - + GSettings *settings; }; @@ -130,7 +130,7 @@ pluma_history_entry_finalize (GObject *object) PlumaHistoryEntryPrivate *priv; priv = PLUMA_HISTORY_ENTRY (object)->priv; - + g_free (priv->history_id); if (priv->settings != NULL) @@ -142,16 +142,16 @@ pluma_history_entry_finalize (GObject *object) G_OBJECT_CLASS (pluma_history_entry_parent_class)->finalize (object); } -static void +static void pluma_history_entry_class_init (PlumaHistoryEntryClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); - + object_class->set_property = pluma_history_entry_set_property; object_class->get_property = pluma_history_entry_get_property; object_class->finalize = pluma_history_entry_finalize; object_class->dispose = pluma_history_entry_dispose; - + g_object_class_install_property (object_class, PROP_HISTORY_ID, g_param_spec_string ("history-id", @@ -304,7 +304,7 @@ insert_history_item (PlumaHistoryEntry *entry, if (g_utf8_strlen (text, -1) <= MIN_ITEM_LEN) return; - + store = get_history_store (entry); /* remove the text from the store if it was already @@ -372,7 +372,7 @@ pluma_history_entry_load_history (PlumaHistoryEntry *entry) l = l->next, i++) { gtk_list_store_append (store, &iter); - gtk_list_store_set (store, + gtk_list_store_set (store, &iter, 0, l->data, @@ -445,16 +445,16 @@ pluma_history_entry_set_enable_completion (PlumaHistoryEntry *entry, gboolean enable) { g_return_if_fail (PLUMA_IS_HISTORY_ENTRY (entry)); - + if (enable) { if (entry->priv->completion != NULL) return; - + entry->priv->completion = gtk_entry_completion_new (); - gtk_entry_completion_set_model (entry->priv->completion, + gtk_entry_completion_set_model (entry->priv->completion, GTK_TREE_MODEL (get_history_store (entry))); - + /* Use model column 0 as the text column */ gtk_entry_completion_set_text_column (entry->priv->completion, 0); @@ -463,9 +463,9 @@ pluma_history_entry_set_enable_completion (PlumaHistoryEntry *entry, gtk_entry_completion_set_popup_completion (entry->priv->completion, FALSE); gtk_entry_completion_set_inline_completion (entry->priv->completion, TRUE); - + /* Assign the completion to the entry */ - gtk_entry_set_completion (GTK_ENTRY (pluma_history_entry_get_entry(entry)), + gtk_entry_set_completion (GTK_ENTRY (pluma_history_entry_get_entry(entry)), entry->priv->completion); } else @@ -473,20 +473,20 @@ pluma_history_entry_set_enable_completion (PlumaHistoryEntry *entry, if (entry->priv->completion == NULL) return; - gtk_entry_set_completion (GTK_ENTRY (pluma_history_entry_get_entry (entry)), + gtk_entry_set_completion (GTK_ENTRY (pluma_history_entry_get_entry (entry)), NULL); - + g_object_unref (entry->priv->completion); - + entry->priv->completion = NULL; } } - + gboolean pluma_history_entry_get_enable_completion (PlumaHistoryEntry *entry) { g_return_val_if_fail (PLUMA_IS_HISTORY_ENTRY (entry), FALSE); - + return entry->priv->completion != NULL; } @@ -517,12 +517,12 @@ pluma_history_entry_new (const gchar *history_id, g_object_unref (store); /* loading has to happen after the model - * has been set. However the model is not a + * has been set. However the model is not a * G_PARAM_CONSTRUCT property of GtkComboBox * so we cannot do this in the constructor. - * For now we simply do here since this widget is + * For now we simply do here since this widget is * not bound to other programming languages. - * A maybe better alternative is to override the + * A maybe better alternative is to override the * model property of combobox and mark CONTRUCT_ONLY. * This would also ensure that the model cannot be * set explicitely at a later time. @@ -531,14 +531,14 @@ pluma_history_entry_new (const gchar *history_id, pluma_history_entry_set_enable_completion (PLUMA_HISTORY_ENTRY (ret), enable_completion); - + return ret; } /* * Utility function to get the editable text entry internal widget. - * I would prefer to not expose this implementation detail and - * simply make the PlumaHistoryEntry widget implement the + * I would prefer to not expose this implementation detail and + * simply make the PlumaHistoryEntry widget implement the * GtkEditable interface. Unfortunately both GtkEditable and * GtkComboBox have a "changed" signal and I am not sure how to * handle the conflict. |