aboutsummaryrefslogtreecommitdiffhomepage
path: root/interface-gtk.cpp
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2012-11-24 19:57:07 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2012-11-24 19:57:07 +0100
commit71f84c2ca051fb3f4e0e98faaba05e9449598b81 (patch)
treecdcf22acae633132c2690c9c4035be915760a450 /interface-gtk.cpp
parent2add69b7f08f19ae2687276ebafcf6989915aa69 (diff)
downloadsciteco-71f84c2ca051fb3f4e0e98faaba05e9449598b81.tar.gz
support auto-completion of symbols in the scintilla command (ES)
* does not yet handle case-insensitive completions * does not handle omitting of the SCI_ prefix
Diffstat (limited to 'interface-gtk.cpp')
-rw-r--r--interface-gtk.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/interface-gtk.cpp b/interface-gtk.cpp
index 9145c27..a55a2c8 100644
--- a/interface-gtk.cpp
+++ b/interface-gtk.cpp
@@ -146,16 +146,17 @@ InterfaceGtk::cmdline_update(const gchar *cmdline)
}
void
-InterfaceGtk::popup_add_filename(PopupFileType type,
- const gchar *filename, bool highlight)
+InterfaceGtk::popup_add(PopupEntryType type,
+ const gchar *name, bool highlight)
{
- static const GtkInfoPopupFileType type2gtk[] = {
+ static const GtkInfoPopupEntryType type2gtk[] = {
+ /* [POPUP_PLAIN] = */ GTK_INFO_POPUP_PLAIN,
/* [POPUP_FILE] = */ GTK_INFO_POPUP_FILE,
/* [POPUP_DIRECTORY] = */ GTK_INFO_POPUP_DIRECTORY
};
- gtk_info_popup_add_filename(GTK_INFO_POPUP(popup_widget),
- type2gtk[type], filename, highlight);
+ gtk_info_popup_add(GTK_INFO_POPUP(popup_widget),
+ type2gtk[type], name, highlight);
}
void