Commit Graph

87 Commits (66ce47e30a70feb628696a7410c92b957d757fde)

Author SHA1 Message Date
Björn Lindqvist 09d3f243ef ui.backend.gtk: set the source priority to idle, fixes #1879 2018-01-18 23:25:30 +01:00
Björn Lindqvist 9f1935c7f1 ui.*: lets rename ui-running to with-ui-running
Because it is really annoying with global variables having the same name
as words.
2018-01-18 16:48:35 +01:00
Björn Lindqvist fe41e99437 ui: better handling of cascading errors
The second update-ui is wrapped in a recover so that if it fails
again, the UI system is stopped. That should fix the cascade problem
in #1827.
2017-06-27 23:47:35 +02:00
Björn Lindqvist 4756c30d3f ui.pixel-formats,ui.backend.*: new word pixel-format-attributes>int-array
This word replaces usages of the PIXEL-FORMAT-ATTRIBUTE-TABLE: syntax
2017-01-30 05:43:19 +01:00
Björn Lindqvist 1b1842f62d ui.pixel-formats,ui.backend.*: removing the (pixel-format-attribute) generic
It appears to be unused code.
2017-01-30 05:07:28 +01:00
Jon Harper 14f51e2dd5 ui.backend.gtk, use a separate widget for drawing opengl. Fixes #1487
Apparently you can't use opengl calls in a configure event signaled from
the window. If you do, on ubuntu 14.04 with unity, each and every frame
will be drawn. Since they are drawn slower than the event are emitted,
it continues to redraw after the resize is done, 'replaying' the resize
motion.
opengl calls from a configure event on the single child of the
window are ok.
Also, now that the window is not used to draw opengl, it doesn't produce
expose events, instead the drawable child must be used.

This also makes moving the window much smoother.
2017-01-23 10:04:43 -08:00
Björn Lindqvist b31c0b8857 Docs: bunch of random doc updates 2016-10-31 11:46:39 +01:00
Björn Lindqvist acdcc1f2c2 ui.backend.x11.keys: Support for the Windows/Meta key on X11 2016-08-17 03:41:45 +02:00
Björn Lindqvist 4b919b19ce ui.backend.*: new vocab for keysym handling which is the same on x11 and gtk 2016-06-20 13:13:20 +02:00
Björn Lindqvist f0836dd69d ui.backend.gtk.io: refactoring which removes ui.backend.gtk.io.unix
ui.backend.gtk is unix-specific so there is no need to have different
implementations for different os:es.
2016-06-19 01:33:59 +02:00
Björn Lindqvist fbfc5fdae3 ui.backend.gtk: add handling of insert key (#1656) 2016-06-18 20:39:57 +02:00
Björn Lindqvist ee80cb0752 ui.backend.gtk: use a global variable to store the icon data
It's easier than the previous code that replaced the get-icon-data word
during deployment. Also GTK support for icon.ico icons.
2016-06-17 16:39:11 +02:00
Björn Lindqvist 2c8b2d9bf5 ui.backend.gtk: hi-res icon awesomeness 2016-06-17 14:29:45 +02:00
John Benediktsson 1f063155a9 ui.backend.gtk: simplify calls to gtk_init. 2016-04-04 15:00:04 -07:00
John Benediktsson 2ea3e304cf ui.backend.gtk: simplify <window-handle>. 2016-04-04 10:33:03 -07:00
John Benediktsson 37fc051506 Revert "ui.backend.gtk: try yield in idle callback."
This reverts commit 2929cc21f5.
2016-03-31 16:53:52 -07:00
John Benediktsson 281ccddda8 Revert "ui.backend.gtk: only use the timer when not io.backend.unix."
This reverts commit 7d5df2c8a2.
2016-03-31 16:53:47 -07:00
John Benediktsson 1b71efb748 ui: change active? back to a boolean. 2016-03-30 07:31:13 -07:00
John Benediktsson 7d5df2c8a2 ui.backend.gtk: only use the timer when not io.backend.unix. 2016-03-29 22:36:02 -07:00
John Benediktsson 2929cc21f5 ui.backend.gtk: try yield in idle callback. 2016-03-29 22:15:57 -07:00
John Benediktsson d3990d1eeb ui.backend.gtk: simplify. 2016-03-29 20:52:49 -07:00
Björn Lindqvist d6a9122967 ui.backend.gtk: only run the tests on linux 2015-12-08 09:46:30 +01:00
Björn Lindqvist 5deea76d55 ui.backend.gtk: set the active? to 100 in on-map, should fix #1506
what now happens is that configure events are skipped until the first
on-map signal is fired. seem to work fine in a variety of wm:s. if this
works well we can return active? to be plain boolean.
2015-12-04 00:57:19 +01:00
Björn Lindqvist 43f2592d1b ui.gestures: fix gesture docs, #1509 2015-12-01 11:01:34 +01:00
Björn Lindqvist 7bc1009973 ui.*: make active? an integer 0-100
A UI backend can delay setting active? to 100 until the windows actually
is visible. That way, some redundant redraws that happen when the window
isn't visible is supressed. It makes the Windows and GTK UI startup a
little faster.
2015-10-27 19:00:28 +01:00
Björn Lindqvist 0795d21e46 ui.backend.gtk: on-key-press and on-key-release can be merged into one
on-key-press/release handler
2015-10-22 18:02:35 +02:00
Björn Lindqvist f9e5d4f22c ui.backend.gtk: tune the order of the setup tasks in (open-window)
The fix for #1307 made bug #776 come back. Apparently gtk is kind of
britle so the widget setup must be done in a very specific order.
2015-10-14 00:22:26 +02:00
John Benediktsson 2dea9bab74 ui.backend.gtk: small typo fix. 2015-09-28 14:48:20 -07:00
Björn Lindqvist 94f863f33e ui.backend.gtk: make it so configure-im is called after realize (#1307)
gtk_im_context_set_client_window must be called with a realized window
otherwise IM won't work,
http://lists.maemo.org/pipermail//maemo-developers/2006-January/002337.html
2015-09-28 15:33:36 +02:00
Doug Coleman 352e5de16a core, basis, extra: Remove DOS line endings from files.
Remove whitespace from end of lines.
Add a newline to the end of each file.
2015-06-29 17:25:40 -07:00
John Benediktsson e5ac9c9c0f ui.backend.gtk: fix yield delay on gtk backend. 2014-08-05 11:24:23 -07:00
Doug Coleman 68446b047b ui: Rename floating-window to dialog-window as per @bjourne's suggestion. Related to #1026. 2014-08-05 10:03:17 -07:00
Doug Coleman 57cdc841c3 ui: Add a floating-window window-contol for opening floating windows in a tiling window manager on gtk. Use this style on the help browser, inspector, and deploy windows. Please report any other windows that need this flag since I don't regularly use a tiling window manager. Tested on Ubuntu 14.04 64bit with i3 window manager. Fixes #1026. 2014-07-16 02:26:52 -07:00
Björn Lindqvist 3bbdd067be ui.backend.gtk: connect ui signals before realizing the widget
gtk_widget_add_events() needs to be called before gtk_widget_realize()
otherwise oxygen-gtk will steal all lmb clicks
2014-03-02 19:11:55 -08:00
Jon Harper b023ebf7a5 Add resize-window and relayout-window 2012-11-26 14:39:54 -08:00
Doug Coleman 1a5f2ad961 ui.backend.gtk: Save the clipboard to the global clipboard so that it doesn't get deleted when Factor exits. Fixes #548. Add paste-selection, but commented out for now. 2012-10-29 10:56:34 -07:00
Jon Harper b3ff75cec2 ui.backend.gtk: better gesture for shift tab
gdk emits ISO_Left_Tab for shift + tab. Not sure if factor should silently
transform that in tab..
With this patch, shift tabs emits the following gesture:
T{ key-down { mods { S+ } } { sym "TAB" } }
2012-09-29 15:54:15 +02:00
John Benediktsson a056a81307 ui.backend.gtk.io.unix: switch to "mx get-global". 2012-08-01 16:22:23 -07:00
Philipp Brüschweiler b667e4ff7e ui.backend.gtk: don't die if the icon doesn't exist, partially fixes #369 2011-12-06 09:05:05 +01:00
Joe Groff 9bd84e73f4 ui.backend: refactor the UI `main-vocab-hook` to use a backend-specific `ui-backend-available?` word, so that loading other backends doesn't change the `main-vocab-hook` out of sync with the backend; fixes #131 2011-09-15 13:14:01 -07:00
Slava Pestov b3a051d385 ui.backend.gtk: don't enable gtk UI backend by default on Mac OS X. Fixes #40 2011-09-11 23:41:43 -07:00
Slava Pestov 7c14b6d839 ui.backend.gtk: remove unused vocabs from USING: list 2011-09-01 22:31:45 -07:00
Slava Pestov 101adf453f ui.backend.gtk: remove unneeded vocabs from USING:, add platforms.txt 2011-09-01 20:15:23 -07:00
Slava Pestov 1f4da36b4b Fixes #32 - double clicks were not handled properly in ui.backend.gtk 2011-08-27 17:06:53 -07:00
Joe Groff 9040ee37e0 Merge remote-tracking branch 'Blei/gtk-image-loader'
Conflicts:
	basis/alien/enums/enums-tests.factor
	basis/alien/enums/enums.factor
	basis/alien/parser/parser.factor
	basis/gdk/pixbuf/ffi/ffi.factor
	basis/glib/ffi/ffi.factor
	basis/tools/deploy/shaker/shaker.factor
	basis/ui/backend/gtk/gtk.factor
	basis/windows/nt/nt.factor
2011-08-27 14:07:18 -07:00
Erik Charlebois b9e18184c6 Convert side mouse buttons to backward/forward 2011-05-23 23:36:14 -04:00
Slava Pestov 7e1b7f70a5 ui.backend.gtk.io.unix: add platforms.txt so that we don't load it on Windows 2011-04-06 17:54:22 -04:00
Slava Pestov 2cbd31d34d Merge commit 'otoburb/master' into merge-otoburb
Conflicts:

	basis/ui/backend/gtk/gtk.factor
2011-04-06 17:54:00 -04:00
otoburb 5744764f07 gtk.factor: Changed init behaviour so if $DISPLAY is not set, runs tty listener, otherwise UI listener. 2011-04-06 00:02:15 +00:00
Anton Gorenko 090254d671 ui.backend.gtk: fix a bug with endless error messages in a console after closing of UI;
io.thread: start-io-thread always starts io-thread even if it was stopped, fix line endings;
2011-04-01 22:06:07 +06:00