Commit Graph

62 Commits (8e59246a8b333cb70182e15b0faab35a7644ba2c)

Author SHA1 Message Date
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 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 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
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
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
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 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
Anton Gorenko 640b05d457 ui.backend.gtk: split off input methods support for ui.editors into .input-methods.editors (no more ui.editors with its dependencies in a deployed
image for hello-ui);
2011-01-26 21:37:26 +06:00
Anton Gorenko e9515c1a9c ui.backend.gtk: split off unix io support into ui.backend.gtk.io.unix; 2011-01-26 21:00:35 +06:00
Anton Gorenko 005f48986e ui.backend.gtk: update for alien.data changes ('<int>' -> 'int <ref>', etc.); 2011-01-16 14:50:18 +06:00
Anton Gorenko 8baa7d3578 ui.backend.gtk: fix bugs; 2010-11-15 21:48:58 +06:00
Anton Gorenko 913362a3a2 gobject-introspection: rewrite gir files loading and code generation totally
generate girs from fresh sources
ui.backend.gtk, ui.text.pango: update a little bit
(this commit is unstable, because new GObject-introspection release (> 0.9) is much different from 0.6 and it needs more detailed annotations
(e.g. to parse out/inout parameters), which are mostly missing now)
2010-09-29 15:08:31 +06:00
Anton Gorenko 534402469c ui.backend.gtk: clean up and rearrange the code 2010-09-12 17:28:24 +06:00
Anton Gorenko 8812052ba9 ui.backend.gtk: set 'wmclass' hint to 'Factor' for new windows 2010-09-12 13:43:20 +06:00
Anton Gorenko 6ef16684e5 ui.backend.gtk: remove "Input method" menu, because it's for testing only 2010-09-04 23:15:00 +06:00
Philipp Brüschweiler 8c61b874b7 ui.backend.gtk: load icon data directly into factor.image when deploying, no io is needed 2010-07-26 21:11:53 +02:00
Philipp Brüschweiler ab29ed3892 Merge branch 'gtk' into gtk-image-loader 2010-07-26 19:29:17 +02:00
Philipp Brüschweiler fde0321f44 ui.backend.gtk: don't initialize io event source when deploying with io level 1 and 2 2010-07-26 19:27:27 +02:00
Philipp Brüschweiler 926d1540c5 Merge branch 'gtk' into gtk-image-loader
Conflicts:
	basis/glib/ffi/ffi.factor
	basis/ui/backend/gtk/gtk.factor
2010-07-22 23:51:17 +02:00
Philipp Brüschweiler 832b55fe89 ui.backend.gtk: only set up event sources when we are deploying with io level 3 2010-07-22 23:45:08 +02:00
Philipp Brüschweiler 39d475e996 ui.backend.gtk: use png instead of ico to represent icons 2010-07-22 22:48:18 +02:00
Philipp Brüschweiler 035ba3bc93 ui.backend.gtk, tools.deploy.unix: support for icons 2010-07-22 12:39:16 +02:00
Anton Gorenko 32952a6071 ui.backend.gtk: update to new with-out-parameters combinator 2010-07-17 14:25:59 +06:00
Anton Gorenko f39f1b22a0 gir.ffi, ui.backend.gtk, gir.samples: change enum and bitfield generation from ENUM: to TYPEDEF: + CONSTANT:s 2010-06-18 23:33:06 +06:00
Anton Gorenko 0073f184fa ui.backend.gtk: working on input methods... 2010-06-16 19:25:32 +06:00
Anton Gorenko 375ebd40ef ui.backend.gtk: change authors list 2010-06-13 16:53:24 +06:00
Anton Gorenko c8143dca73 Merge branch 'gtk' of git://github.com/Blei/factor 2010-06-13 16:20:32 +06:00
Anton Gorenko a11d2b06c6 ui.backend.gtk: add destructor in clipboard-contents 2010-06-13 16:18:51 +06:00
Philipp Brüschweiler 5b8543b352 Merge remote branch 'ex-rzr/master' into gtk
Conflicts:
	basis/ui/backend/gtk/gtk.factor
2010-06-12 16:02:22 +02:00
Philipp Brüschweiler 4ce4b2c257 ui.backend.gtk: add surrounding signal handler for input methods
untested, as i don't think my IM is using this feature
2010-06-11 19:33:28 +02:00
Anton Gorenko b9a5b0c16e ui.backend.gtk: add simple input method support (GtkIMContextSimple) 2010-06-11 19:43:11 +06:00