[patch] gtk-timj-970913-0.patch
- From: Tim Janik <Tim Janik Hamburg Netsurf DE>
- To: gtk-list redhat com
- cc: ftp-admin gimp org, Tim Janik <timj psynet net>
- Subject: [patch] gtk-timj-970913-0.patch
- Date: Sat, 13 Sep 1997 07:06:04 +0200 (CEST)
gtk-timj-970913-0.patch (against gtk+970828.tar.gz)
hi all,
this patch includes three new functions that i *very* much need to be included
into gtk+ to get GUBI and GtkTerm to work.
gtk/gtkaccelerator.[hc]:
- void gtk_accelerator_table_set_mod_mask (...)
this function sets a default or a per table mask for the modifiers
that are checked on a key.
by setting this to e.g. ~GDK_MOD2_MASK, acceleraters will work
without taking Num-Lock into consideration.
without any invokation of this function, the normal gtk+
behaviour on accelerators will be preserved.
FYI: i'm using
gtk_accelerator_table_set_mod_mask (NULL,
GDK_SHIFT_MASK |
GDK_CONTROL_MASK |
GDK_MOD1_MASK);
right after my gtk_init() call in main.c wich let's my application
check for only shift, control and alt (no worries about num-lock,
shift-lock or what-the-hell-mod-key any more ;).
gdk/gdk.h, gdk/gdkwindow.c:
- void gdk_window_clear_area_e()
this function does exactly the same as gdk_window_clear_area(), but
will generate an expose event on the cleared area.
- void gdk_window_copy_area() is just a wrapper around XCopyArea().
this lets on copy all planes within a window or even between
windows.
since the changes applied by this patch are very straight forward, bugs are
quite unlikely. but try it out and show me otherwise ;)
i uploaded this patch to
ftp://ftp.gimp.org/incoming/.
and it should move to
ftp://ftp.gimp.org/pub/gtk/patches/gtk-timj-970913-0.patch.gz
quite soon.
Tim Janik <timj@psynet.net>
---
ciaoTJ
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]