diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2016-01-31 01:55:27 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2016-01-31 02:21:02 +0100 |
commit | ff17c72962d76986b48f3ab05e6ca9e7b3a4f78e (patch) | |
tree | 4c21cc1ad64e7ba9d0429defb4abf652ea4c822a /src/Makefile.am | |
parent | d7279189cbd51d2d1b5dee36a4fb09f3388801e0 (diff) | |
download | sciteco-ff17c72962d76986b48f3ab05e6ca9e7b3a4f78e.tar.gz |
updated to Gtk+ 3 and revamped the Gtk interface's popup widget
* depend on Gtk+ 3.10. If necessary older versions should also
be supportable. GtkOverlay was already introduced in v3.2
* A fallback for GtkFlowBox is compiled in if the Gtk installation
is too old. This applies even to Ubuntu 14.04 which still runs
Gtk v3.10.
* the threading the Gtk UI is left as it is for the time being
even though the synchronization mechanism has been deprecated.
Alternative approaches have to be tried out and benchmarked.
* Completely revamped the GtkInfoPopup widget.
It is now as powerful as the Curses UI's popup widget.
* A GtkOverlay is used instead of the top-level window hack
in the Gtk2 version.
* GtkFlowBox is used to lay out the columns of the popup.
* I had to work around restrictions of GtkScrolledWindow
by writing my own poor-mans scrolled window which handles
size requests correctly.
* The popup window no longer overflows the screen size,
instead we scroll.
* Scrolling pagewise is finally supported. Wraps at the
end of a list just like the Curses UI.
* Instead of using only two stock icons, we now use
GIO to get file and directory icons for the current theme.
This looks even better.
* The GtkFlowBox allows selections which can be used for mouse
interaction later. But this is not yet implemented.
* Theming of the popup widget and command line is still
not performed correctly.
Diffstat (limited to 'src/Makefile.am')
-rw-r--r-- | src/Makefile.am | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 384d8f3..3c60ba0 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -52,9 +52,12 @@ if INTERFACE_GTK BUILT_SOURCES += gtk-info-popup.c \ gtk-info-popup.h gtk-info-popup-private.h +nodist_libsciteco_base_a_SOURCES += gtk-info-popup.c libsciteco_base_a_SOURCES += interface-gtk.cpp interface-gtk.h -nodist_libsciteco_base_a_SOURCES += gtk-info-popup.c +if GTK_FLOW_BOX_FALLBACK +libsciteco_base_a_SOURCES += gtkflowbox.c gtkflowbox.h +endif else # else must be Curses interface @@ -88,7 +91,7 @@ CLEANFILES = $(BUILT_SOURCES) \ symbols-scintilla.cpp symbols-scilexer.cpp %.c %.h %-private.h : %.gob - @GOB2@ $< + @GOB2@ --gtk3 $< symbols-scintilla.cpp : @SCINTILLA_PATH@/include/Scintilla.h \ symbols-extract.tes |