summaryrefslogtreecommitdiffstats
path: root/gedit/gedit-history-entry.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 17:42:51 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 17:42:51 +0000
commitba429d344132c088177e853cce8ff7181570b221 (patch)
tree87ebf15269b4301737abd1735baabba71be93622 /gedit/gedit-history-entry.h
parentInitial commit. (diff)
downloadgedit-ba429d344132c088177e853cce8ff7181570b221.tar.xz
gedit-ba429d344132c088177e853cce8ff7181570b221.zip
Adding upstream version 44.2.upstream/44.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'gedit/gedit-history-entry.h')
-rw-r--r--gedit/gedit-history-entry.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/gedit/gedit-history-entry.h b/gedit/gedit-history-entry.h
new file mode 100644
index 0000000..4d76322
--- /dev/null
+++ b/gedit/gedit-history-entry.h
@@ -0,0 +1,55 @@
+/*
+ * This file is part of gedit
+ *
+ * Copyright (C) 2006 - Paolo Borelli
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef GEDIT_HISTORY_ENTRY_H
+#define GEDIT_HISTORY_ENTRY_H
+
+#include <gtk/gtk.h>
+
+G_BEGIN_DECLS
+
+#define GEDIT_TYPE_HISTORY_ENTRY (gedit_history_entry_get_type ())
+
+G_DECLARE_FINAL_TYPE (GeditHistoryEntry, gedit_history_entry,
+ GEDIT, HISTORY_ENTRY,
+ GtkComboBoxText)
+
+GtkWidget * gedit_history_entry_new (const gchar *history_id,
+ gboolean enable_completion);
+
+void gedit_history_entry_prepend_text (GeditHistoryEntry *entry,
+ const gchar *text);
+
+void gedit_history_entry_set_history_length (GeditHistoryEntry *entry,
+ guint max_saved);
+
+guint gedit_history_entry_get_history_length (GeditHistoryEntry *entry);
+
+void gedit_history_entry_set_enable_completion (GeditHistoryEntry *entry,
+ gboolean enable);
+
+gboolean gedit_history_entry_get_enable_completion (GeditHistoryEntry *entry);
+
+GtkWidget * gedit_history_entry_get_entry (GeditHistoryEntry *entry);
+
+G_END_DECLS
+
+#endif /* GEDIT_HISTORY_ENTRY_H */
+
+/* ex:set ts=8 noet: */