aboutsummaryrefslogtreecommitdiffhomepage
path: root/main.cpp
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2012-11-10 20:08:51 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2012-11-10 20:08:51 +0100
commitf120e3e367f01f006bd5ddfd9f1ac018273e75e3 (patch)
tree65e51cfbc6bc05eb25d331bcb86ed642a1af6bad /main.cpp
parent5aa548cd63edb8ba12c656300a2a5f0ff62a7b36 (diff)
downloadsciteco-f120e3e367f01f006bd5ddfd9f1ac018273e75e3.tar.gz
filename autocompletion using <CTRL/T> and <TAB>
* <TAB> autocompletion only in specified states * GtkInfoPopup widget to display possible completions, written using Gob2
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index 761fa96..0f62dc5 100644
--- a/main.cpp
+++ b/main.cpp
@@ -7,6 +7,7 @@
#include <gdk/gdkkeysyms.h>
#include <gtk/gtk.h>
+#include "gtk-info-popup.h"
#include <Scintilla.h>
#include <SciLexer.h>
@@ -21,6 +22,8 @@ static GtkWidget *editor_widget;
static GtkWidget *cmdline_widget;
static GtkWidget *info_widget, *message_widget;
+GtkInfoPopup *filename_popup;
+
void
cmdline_display(const gchar *cmdline_str)
{
@@ -134,6 +137,8 @@ main(int argc, char **argv)
gtk_container_add(GTK_CONTAINER(window), vbox);
+ filename_popup = GTK_INFO_POPUP(gtk_info_popup_new(cmdline_widget));
+
editor_msg(SCI_SETFOCUS, 1);
editor_msg(SCI_SETCARETSTYLE, 2);
editor_msg(SCI_STYLESETFONT, STYLE_DEFAULT, (sptr_t)"Courier");