summaryrefslogtreecommitdiff
path: root/modules/input
Commit message (Collapse)AuthorAgeFilesLines
* build: Distribute README.multipressVincent Untz2010-10-111-0/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=631872
* Move GtkSizeRequest into GtkWidgetBenjamin Otte2010-09-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | It doesn't make sense to keep them separate as GtkSizeRequest requires a GtkWidget and GtkWidget implements GtkSizeRequest, so you can never have one without the other. It also makes the code a lot easier because no casts are required when calling functions. Also, the names would translate to gtk_widget_get_width() and people agreed that this would be a too generic name, so a "preferred" was added to the names. So this patch moves the functions: gtk_size_request_get_request_mode() => gtk_widget_get_request_mode() gtk_size_request_get_width() => gtk_widget_get_preferred_width() gtk_size_request_get_height() => gtk_widget_get_preferred_height() gtk_size_request_get_size() => gtk_widget_get_preferred_size() gtk_size_request_get_width_for_height() => gtk_widget_get_preferred_width_for_height() gtk_size_request_get_height_for_width() => gtk_widget_get_preferred_height_for_width() ... and moves the corresponding vfuncs to the GtkWidgetClass. The patch also renames the implementations of the vfuncs in widgets to include the word "preferrred".
* imcontextxim: Connect to draw signalBenjamin Otte2010-09-261-14/+7
|
* gtk: gdk_drawable_get_screen/visual => gdk_window_get_screen/visualBenjamin Otte2010-09-261-2/+2
|
* Use gtk_size_request_get_size() instead deprecated gtk_widget_size_request()Javier Jardón2010-09-151-2/+3
| | | | | | | Fixes https://bugzilla.gnome.org/show_bug.cgi?id=629598 Signed-off-by: Javier Jardón <jjardon@gnome.org> Signed-off-by: Tristan Van Berkom <tristanvb@openismus.com>
* Use accessor functions in Win32-only codeTor Lillqvist2010-09-091-2/+2
|
* GDK: Prefix key names with KEY_Colin Walters2010-09-0810-395/+395
| | | | | | | | | | | | | The keysyms create a lot of potential namespace conflicts for C, and are especially problematic for introspection, where we take constants into the namespace, so GDK_Display conflicts with GdkDisplay. For C application compatiblity, add gdkkeysyms-compat.h which uses the old names. Just one user in GTK+ continues to use gdkkeysyms-compat.h, which is the gtkimcontextsimple.c, since porting that requires porting more custom Perl code.
* modules/input/gtkimcontextxim.c: Use accessors to GtkWidgetJavier Jardón2010-08-221-9/+18
|
* imcontextxim: Draw with CairoBenjamin Otte2010-07-261-10/+15
|
* Use GtkBin accessorsJavier Jardón2010-07-131-1/+1
|
* Revert "Use wide character API in the Windows IME module"Tor Lillqvist2010-06-271-3/+3
| | | | | | | | | Ha, pango_win32_font_logfontw hasn't been exported from libpangowin32 after all due to a typo. This will have to wait. And actually libpangowin32 is supposed to be deprecated surely, so that functionality should be moved to libpangocairo or something. This reverts commit 804effba9938b3e5ffcad1e731fdf83daf3e0aac.
* Use wide character API in the Windows IME moduleTor Lillqvist2010-06-271-3/+3
|
* Make GTK+ use an external gdk-pixbufMatthias Clasen2010-06-261-3/+1
|
* Some cleanups after the module cache file changeMatthias Clasen2010-05-181-10/+10
| | | | | | | | Bring the various 'run uninstalled' hacks in line with the new way of doing things, and fix make install for module cache files. Patch by Tadej Borovsak.
* Make 3.0 parallel-installable to 2.xMatthias Clasen2010-05-081-11/+11
| | | | | | | | | | | | | | | In particular, rename - libraries to lib*-3.0.so - pc files to *-3.0.pc - include paths to /usr/include/gtk-3.0/* - module paths to /usr/lib/gtk-3.0/* - rc files names to gtk-3.0/gtkrc - commandline utilities to *-3.0 - adjust documentation Also change the install location for unix-print headers to /usr/include/gtk-3.0/unix-print/gtk.
* Deprecate flag macros for toplevel, state, no window and composite childChristian Dywan2010-01-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Deprecate widget flag macros GTK_WIDGET_STATE, GTK_WIDGET_SAVED_STATE, GTK_WIDGET_FLAGS, GTK_WIDGET_TOPLEVEL, GTK_WIDGET_NO_WINDOW and GTK_WIDGET_COMPOSITE_CHILD. Also deprecate the type macros GTK_WIDGET_TYPE, GTK_OBJECT_TYPE_NAME and GTK_OBJECT_TYPE which have become redundant. Instances of GTK_WIDGET_TOPLEVEL are replaced with gtk_widget_is_toplevel, GTK_WIDGET_TYPE is replaced with G_OBJECT_TYPE, GTK_WIDGET_COMPOSITE_CHILD is replaced with use of the "composite-child" property and uses of GTK_WIDGET_NO_WINDOW are adjusted to use gtk_widget_get_has_window. Uses of GTK_WIDGET_SAVED_STATE and GTK_WIDGET_FLAGS inside GtkWidget are changed to direct flag usage. Documentation is updated to refer to gtk_widget_set_has_window and gtk_widget_get_has_window. Gail and tests are updated as well. Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=69872
* Do not use static GTypeInfo and GInterfaceInfoNicola Fontana2009-11-0612-12/+12
| | | | | | | | | Either g_type_register_static_simple (used by G_DEFINE_TYPE_EXTENDED) and G_IMPLEMENT_INTERFACE use automatic variables for GTypeInfo and GInterfaceInfo structs, while tutorials and source code often use static variables. This commit consistently adopts the former method. https://bugzilla.gnome.org/show_bug.cgi?id=600158
* Add git.mk to generate .gitignore filesBehdad Esfahbod2009-05-041-0/+2
| | | | Add four new doc templates that were not in repository.
* Bug 457086 - numpad does not work when the Thai-Lao input method is usedTheppitak Karoonboonyanan2009-03-021-1/+1
| | | | | | | | | | | | | | 2009-03-02 Theppitak Karoonboonyanan <thep@linux.thai.net> Bug 457086 - numpad does not work when the Thai-Lao input method is used * modules/input/gtkimcontextthai.c (is_context_lost_key): Do not count character-generating keypads as context-lost keys. (patch recommitted after approval) svn path=/trunk/; revision=22437
* Revert the unapproved patch for bug 457086.Theppitak Karoonboonyanan2009-02-191-1/+1
| | | | | | | | | | 2009-02-19 Theppitak Karoonboonyanan <thep@linux.thai.net> * modules/input/gtkimcontextthai.c (is_context_lost_key): Revert the unapproved patch for bug 457086. svn path=/trunk/; revision=22371
* Bug 457086 - numpad does not work when the Thai-Lao input method is usedTheppitak Karoonboonyanan2009-02-181-1/+1
| | | | | | | | | | | | | 2009-02-18 Theppitak Karoonboonyanan <thep@linux.thai.net> Bug 457086 - numpad does not work when the Thai-Lao input method is used * modules/input/gtkimcontextthai.c (is_context_lost_key): Do not count character-generating keypads as context-lost keys. svn path=/trunk/; revision=22354
* Remove the namespace prefix from functions defined locally only. Clean upDaniel Elstner2009-01-163-412/+263
| | | | | | | | | | | | | | | | | | | | | | * modules/input/gtkimcontextmultipress.[ch]: Remove the namespace prefix from functions defined locally only. Clean up the code and change indentation to match the GTK+ coding style. (_GtkImContextMultipress::key_sequences): Replace array of pointers by GHashTable. Adapt the implementation accordingly. (passthrough_enabled_for_window): Remove. The passthrough hack is no longer necessary thanks to the recently introduced "im-module" property of GtkEntry and GtkTextView. (load_config): Rework to implement an improved configuration file format. Just fetch all keys of the group instead of expecting the keys to be named a certain way. This also allows interpreting the config key itself as the GDK key name to bind the character sequence to, thereby making it independent of the sequence itself. * modules/input/im-multipress.conf: New example configuration using the new syntax. The example sequences are now bound to the numeric keypad and imitate the behavior of a standard mobile phone. svn path=/trunk/; revision=22125
* Maintenance of Multipress input method by Openismus GmbH:Daniel Elstner2008-12-104-155/+145
| | | | | | | | | | | | | | * modules/input/gtkimcontextmultipress.[ch]: Clean up the code a bit to follow the GTK+ coding style more closely. Fix the code to emit "preedit-start" and "preedit-end", too, rather than only "preedit-changed". (GTK_IM_CONTEXT_MULTIPRESS*): Rename incorrectly spelled macros gtk_im_context_multipress*. Shouldn't break API or ABI as it's only used internally. * modules/input/immultipress.c: More cleanup, * modules/input/README.multipress: ditto. svn path=/trunk/; revision=21864
* Bug 339367 – Incorrect spotlocationMatthias Clasen2008-09-281-1/+1
| | | | | | | | | | | 2008-09-27 Matthias Clasen <mclasen@redhat.com> Bug 339367 – Incorrect spotlocation * modules/input/gtkimcontextxim.c: Correct the spot location for on-the-spot style. svn path=/trunk/; revision=21537
* define -DGDK_PIXBUF_DISABLE_DEPRECATED in the global CFLAGS.Michael Natterer2008-08-121-9/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-08-12 Michael Natterer <mitch@imendio.com> * configure.in: define -DGDK_PIXBUF_DISABLE_DEPRECATED in the global CFLAGS. * gdk-pixbuf/Makefile.am: make the contents gdk-pixbuf-marshal.h visible for GDK_PIXBUF_COMPILATION. * contrib/gdk-pixbuf-xlib/Makefile.am * demos/Makefile.am * demos/gtk-demo/Makefile.am * gdk-pixbuf/pixops/Makefile.am * gdk/Makefile.am * gdk/x11/Makefile.am * gtk/Makefile.am * gtk/tests/Makefile.am * gtk/theme-bits/Makefile.am * modules/engines/ms-windows/Makefile.am * modules/engines/pixbuf/Makefile.am * modules/input/Makefile.am * perf/Makefile.am * tests/Makefile.am: remove -DDGDK_PIXBUF_DISABLE_DEPRECATED here. svn path=/trunk/; revision=21096
* modules/input/gtkimcontextime.c modules/input/gtkimcontextmultipress.c useSven Neumann2008-08-113-17/+17
| | | | | | | | | | | 2008-08-11 Sven Neumann <sven@gimp.org> * modules/input/gtkimcontextime.c * modules/input/gtkimcontextmultipress.c * modules/input/gtkimcontextxim.c: use canonical signal names. svn path=/trunk/; revision=21070
* Use a second-granularity timer.Matthias Clasen2008-07-311-2/+1
| | | | svn path=/trunk/; revision=20922
* Revert name changeCody Russell2008-07-0114-14/+14
| | | | svn path=/trunk/; revision=20724
* Practically everything changed.Cody Russell2008-06-3014-14/+14
| | | | | | | | | | | | | 2008-06-30 Cody Russell <bratsche@gnome.org> * Practically everything changed. Change all references of GIMP Toolkit (and variations of it) to GTK+ Toolkit, showing no mercy at all to our beloved ancestry. (#540529) svn path=/trunk/; revision=20709
* Include "config.h" instead of <config.h> Command used: find -nameJohan Dahlin2008-06-2213-13/+13
| | | | | | | | | | | | 2008-06-21 Johan Dahlin <jdahlin@async.com.br> * *.[ch]: Include "config.h" instead of <config.h> Command used: find -name \*.[ch]|xargs perl -p -i -e 's/^#include <config.h>/#include "config.h"/g' Rubberstamped by Mitch and Tim svn path=/trunk/; revision=20669
* Don't use the deprecated GTK_* GtkType macros.Tor Lillqvist2008-06-171-5/+5
| | | | | | | | | | 2008-06-17 Tor Lillqvist <tml@novell.com> * modules/input/gtkimcontextime.h: Don't use the deprecated GTK_* GtkType macros. svn path=/trunk/; revision=20434
* modules/input/gtkimcontextmultipress.h modules/input/gtkimcontextthai.hMichael Natterer2008-06-173-24/+22
| | | | | | | | | | | | 2008-06-17 Michael Natterer <mitch@imendio.com> * modules/input/gtkimcontextmultipress.h * modules/input/gtkimcontextthai.h * modules/input/gtkimcontextxim.h: use G_TYPE instead of GTK_CHECK type checking macros. svn path=/trunk/; revision=20430
* modules/input/gtkimcontextime.h modules/input/gtkimcontextmultipress.hMichael Natterer2008-05-2715-42/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | 2008-05-28 Michael Natterer <mitch@imendio.com> * modules/input/gtkimcontextime.h * modules/input/gtkimcontextmultipress.h * modules/input/gtkimcontextthai.h * modules/input/gtkimcontextxim.h: include <gtk/gtk.h> instead of individual files. * modules/input/gtkimcontextime.c * modules/input/gtkimcontextmultipress.c * modules/input/gtkimcontextxim.c * modules/input/imam-et.c * modules/input/imcedilla.c * modules/input/imcyrillic-translit.c * modules/input/iminuktitut.c * modules/input/imipa.c * modules/input/imti-er.c * modules/input/imti-et.c * modules/input/imviqr.c: ditto. Some minor cleanups like moving "gtk/gtkintl.h" to the end of includes. svn path=/trunk/; revision=20200
* examples/gtkdial/gtkdial.h use G_BEGIN/END_DECLS.Michael Natterer2008-05-261-7/+2
| | | | | | | | | | 2008-05-26 Michael Natterer <mitch@imendio.com> * examples/gtkdial/gtkdial.h * modules/input/gtkimcontextthai.h: use G_BEGIN/END_DECLS. svn path=/trunk/; revision=20179
* use GETTEXT_PACKAGE instead of "gtk20".Michael Natterer2008-05-021-2/+2
| | | | | | | | | 2008-05-02 Michael Natterer <mitch@imendio.com> * modules/input/imthai.c: use GETTEXT_PACKAGE instead of "gtk20". svn path=/trunk/; revision=20066
* Register the right translation domain.Matthias Clasen2008-05-011-1/+1
| | | | | | | * modules/imput/imthai.c: Register the right translation domain. svn path=/trunk/; revision=20060
* include <pango/pango.h> instead of <pango/pango-layout.h>.Michael Natterer2008-04-251-1/+1
| | | | | | | | | | | | | | | | | | | | 2008-04-25 Michael Natterer <mitch@imendio.com> * gtk/gtkprintcontext.h: include <pango/pango.h> instead of <pango/pango-layout.h>. * gtk/gtkiconfactory.c * gtk/gtkimmodule.c * gtk/gtkmain.c * gtk/gtkmodules.c * gtk/queryimmodules.c: remove inclusion of single files from pango, none of them was actually needed. * modules/input/gtkimcontextime.c: include <pango/pango.h> instead of <pango/pango-utils.h>. svn path=/trunk/; revision=20042
* gtk/gtkicontheme.h include <gdk/gdk.h> instead of <gdk/gdkscreen.h>.Michael Natterer2008-04-181-1/+0
| | | | | | | | | | | | | | | | | | | 2008-04-18 Michael Natterer <mitch@imendio.com> * gtk/gtkicontheme.h * gtk/gtkrecentmanager.h: include <gdk/gdk.h> instead of <gdk/gdkscreen.h>. * gtk/gtkbuilderparser.c * gtk/gtklinkbutton.c * gtk/gtkpreview.c * gtk/gtkrecentchooserdefault.c * gtk/gtkrecentchoosermenu.c * modules/input/gtkimcontextthai.c: remove inclusion of single files from gdk, none of the includes was actually needed. svn path=/trunk/; revision=20023
* Bug 523225 - modules/input/im*.c: MODULE_ENTRY macros make illegal codeTor Lillqvist2008-03-1812-131/+83
| | | | | | | | | | | | 2008-03-18 Tor Lillqvist <tml@novell.com> Bug 523225 - modules/input/im*.c: MODULE_ENTRY macros make illegal code * modules/input/im*.c: Modify the MODULE_ENTRY macro so the G_MODULE_ENTRY decoration can be put in a more correct place. svn path=/trunk/; revision=19902
* Bug 99192 - Add --with-include-input-modulesTor Lillqvist2008-03-1713-76/+240
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-03-18 Tor Lillqvist <tml@novell.com> Bug 99192 - Add --with-include-input-modules * configure.in: Add --with-included-immodules switch. Handled in a similar way as the --with-included-loaders switch. For each input method module foo: Collect the list of input modules to be built into libgtk into INCLUDED_IMMODULE_OBJ. Collect a list of -DINCLUDE_IM_foo definitions into INCLUDED_IMMODULE_DEFINE. Define Automake conditionals INCLUDE_IM_FOO. * modules/input/Makefile.am: For modules to be included in libgtk, build a static library. * modules/input/im*.c: Use MODULE_ENTRY macros much like in gdk-pixbuf to get unique names for the functions called by libgtk in the included case. Use G_MODULE_EXPORT in the non-included case so that we don't unnecessarily export unneeded random global symbols on Windows. * gtk/Makefile.am: Build the included modules and link them into libgtk. * gtk/gtkimmodule.c: Handle the built-in modules. Remove copy/paste leftover mentions of "themes" in comments. svn path=/trunk/; revision=19896
* Remove all .cvsignore files.Michael Natterer2007-12-131-7/+0
| | | | svn path=/trunk/; revision=19169
* call g_test_init() from gtk_test_init().15:39:40 Tim Janik2007-11-221-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-11-22 15:39:40 Tim Janik <timj@imendio.com> * gtk/gtktestutils.c: call g_test_init() from gtk_test_init(). * gtk/tests/testing.c: use g_test_add_func() to register tests and use g_test_run() to run the tests to integrate with the testing framework. * gtk/tests/Makefile.am: removed exemplary testing rules. * Makefile.am, gtk/tests/Makefile.am, gtk/Makefile.am: * gtk/xdgmime/Makefile.am, gtk/theme-bits/Makefile.am: * tests/Makefile.am, docs/reference/gdk-pixbuf/Makefile.am: * docs/reference/gdk/Makefile.am, docs/reference/gtk/Makefile.am: * docs/reference/Makefile.am, docs/tools/Makefile.am: * docs/tutorial/Makefile.am, docs/faq/Makefile.am, docs/Makefile.am: * gdk-pixbuf/pixops/Makefile.am, gdk-pixbuf/Makefile.am: * demos/gtk-demo/Makefile.am, demos/Makefile.am: * modules/input/Makefile.am, modules/printbackends/file/Makefile.am: * modules/printbackends/test/Makefile.am, modules/printbackends/Makefile.am: * modules/printbackends/cups/Makefile.am, modules/printbackends/lpr/Makefile.am: * modules/engines/ms-windows/Theme/gtk-2.0/Makefile.am: * modules/engines/ms-windows/Theme/Makefile.am: * modules/engines/ms-windows/Makefile.am: * modules/engines/Makefile.am, modules/engines/pixbuf/Makefile.am: * modules/Makefile.am, m4macros/Makefile.am, perf/Makefile.am: * contrib/Makefile.am, contrib/gdk-pixbuf-xlib/Makefile.am: * gdk/directfb/Makefile.am, gdk/linux-fb/Makefile.am: * gdk/quartz/Makefile.am, gdk/win32/rc/Makefile.am: * gdk/win32/Makefile.am, gdk/x11/Makefile.am, gdk/Makefile.am: include $(top_srcdir)/Makefile.decl, adapted EXTRA_DIST assignments. svn path=/trunk/; revision=19033
* Fix some live cycle issuesMatthias Clasen2007-10-071-9/+32
| | | | svn path=/trunk/; revision=18888
* Change input method behavior to act on key presses instead of keyDaniel Elstner2007-06-171-48/+20
| | | | | | | | | | * modules/input/gtkimcontextmultipress.c (vfunc_filter_keypress): Change input method behavior to act on key presses instead of key releases, matching normal text input behavior. This change alleviates the need to take special action for control keys not handled by the input module itself. svn path=/trunk/; revision=18169
* Fix broken DESTDIR supportMatthias Clasen2007-05-241-2/+2
| | | | svn path=/trunk/; revision=17907
* Fix check for modifier keys. (#438261, Theppitak Karoonboonyanan)Behdad Esfahbod2007-05-141-1/+2
| | | | | | | | | | | 2007-05-14 Behdad Esfahbod <behdad@gnome.org> * modules/input/gtkimcontextthai.c (gtk_im_context_thai_filter_keypress): Fix check for modifier keys. (#438261, Theppitak Karoonboonyanan) svn path=/trunk/; revision=17842
* Use LDADDS for im-multipress.la, too:Tor Lillqvist2007-03-271-0/+1
| | | | | | | | | 2007-03-27 Tor Lillqvist <tml@novell.com> * modules/input/Makefile.am: Use LDADDS for im-multipress.la, too: svn path=/trunk/; revision=17565
* Add the multipress input method. (#417446, Johannes Schmid, MurrayMatthias Clasen2007-03-186-0/+860
| | | | | | | | | | | | | | | | 2007-03-18 Matthias Clasen <mclasen@redhat.com> * modules/input/gtkimcontextmultipress.[hc]: * modules/input/im-multipress.conf: * modules/input/immultipress.c: * modules/input/README.multipress: Add the multipress input method. (#417446, Johannes Schmid, Murray Cumming) * modules/input/Makefile.am: Glue svn path=/trunk/; revision=17541
* Don't commit modifier-adorned characters. (#331369, #335796, Lin Ma andMatthias Clasen2007-03-091-0/+4
| | | | | | | | | | | | | 2007-03-09 Matthias Clasen <mclasen@redhat.com> * modules/input/gtkimcontextxim.c (gtk_im_context_xim_filter_keypress): Don't commit modifier-adorned characters. (#331369, #335796, Lin Ma and others) svn path=/trunk/; revision=17446
* Remove unnecessary NULL checks before g_free(). (#369666, Morten Welinder,Matthias Clasen2007-03-091-2/+1
| | | | | | | | | | | | | 2007-03-09 Matthias Clasen <mclasen@redhat.com> * Everywhere: Remove unnecessary NULL checks before g_free(). (#369666, Morten Welinder, Djihed Afifi) * configure.in: Check for ftw.h svn path=/trunk/; revision=17444