aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/interface-gtk/gtk-label.h
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2025-02-15 01:32:05 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2025-02-23 04:52:39 +0300
commit428dafa568923d5632101c716fb20a3de35d27be (patch)
tree475b270fc384d5040e4711e155e47d580c52b1a3 /src/interface-gtk/gtk-label.h
parent980dcdaa138a42830af4e2533b7e970d7f5fa3cf (diff)
downloadsciteco-428dafa568923d5632101c716fb20a3de35d27be.tar.gz
support mouse interaction with popup windows
* Curses allows scrolling with the scroll wheel at least if mouse support is enabled via ED flags. Gtk always supported that. * Allow clicking on popup entries to fully autocomplete them. Since this behavior - just like auto completions - is parser state-dependant, I introduced a new state method (insert_completion_cb). All the implementations are currently in cmdline.c since there is some overlap with the process_edit_cmd_cb implementations. * Fixed pressing undefined function keys while showing the popup. The popup area is no longer redrawn/replaced with the Scintilla view. Instead, continue to show the popup.
Diffstat (limited to 'src/interface-gtk/gtk-label.h')
-rw-r--r--src/interface-gtk/gtk-label.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/interface-gtk/gtk-label.h b/src/interface-gtk/gtk-label.h
index e852104..c52d073 100644
--- a/src/interface-gtk/gtk-label.h
+++ b/src/interface-gtk/gtk-label.h
@@ -27,6 +27,7 @@ G_DECLARE_FINAL_TYPE(TecoGtkLabel, teco_gtk_label, TECO, GTK_LABEL, GtkLabel)
GtkWidget *teco_gtk_label_new(const gchar *str, gssize len);
void teco_gtk_label_set_text(TecoGtkLabel *self, const gchar *str, gssize len);
+const teco_string_t *teco_gtk_label_get_text(TecoGtkLabel *self);
void teco_gtk_label_parse_string(const gchar *str, gssize len,
PangoColor *fg, guint16 fg_alpha,