Commit Graph

460 Commits

Author SHA1 Message Date
Michael Natterer
53dd05475b include <pango/pango.h> instead of <pango/pango-layout.h>.
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
2008-04-25 15:18:07 +00:00
Michael Natterer
9f1bc132a2 gtk/gtkicontheme.h include <gdk/gdk.h> instead of <gdk/gdkscreen.h>.
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
2008-04-18 14:56:23 +00:00
Michael Natterer
870bac8fd0 change return value and local variable to const gchar* to fix warning
2008-04-18  Michael Natterer  <mitch@imendio.com>

	* modules/printbackends/cups/gtkprintercups.[ch]
	(gtk_printer_cups_get_ppd_name): change return value and local
	variable to const gchar* to fix warning about discarding const
	qualifier.


svn path=/trunk/; revision=20021
2008-04-18 14:51:26 +00:00
Li Yuan
d33b599ac7 Patch from Alejandro Piñeiro Iglesias <apinheiro@igalia.com>. Bug
2008-04-02  Li Yuan  <li.yuan@.sun.com>

        * gailbutton.c: (idle_do_action):
        Patch from Alejandro Piñeiro Iglesias <apinheiro@igalia.com>.
        Bug #496167. Synthesize press and release GdkEvent in button's click
        action.

svn path=/trunk/; revision=19958
2008-04-02 08:29:31 +00:00
Li Yuan
129c717a71 Bug #433324. add/remove selectable state depand on if the button can be
2008-03-31  Li Yuan  <li.yuan@sun.com>

        * gailbutton.c: (gail_button_ref_state_set):
        Bug #433324. add/remove selectable state depand on if the button can
        be focused.

svn path=/trunk/; revision=19950
2008-03-31 07:48:16 +00:00
Li Yuan
0b266b70e0 Bug #498079. Free cell's action info before free the action_list.
2008-03-20  Li Yuan  <li.yuan@sun.com>

        * gailcell.c: (gail_cell_object_finalize):
        Bug #498079. Free cell's action info before free the action_list.

svn path=/trunk/; revision=19909
2008-03-20 08:44:27 +00:00
Tor Lillqvist
2dce0b35a5 Bug 523225 - modules/input/im*.c: MODULE_ENTRY macros make illegal code
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
2008-03-18 21:29:00 +00:00
Tor Lillqvist
6ce7b71f9c Bug 99192 - Add --with-include-input-modules
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
2008-03-17 23:53:18 +00:00
Alberto Ruiz
f8d5b8cdef more descriptive style names for the ComboBox thickness style
2008-03-16  Alberto Ruiz <aruiz@gnome.org>
	* modules/engines/ms-windows/Theme/gtk-2.0/gtkrc: more descriptive style
	names for the ComboBox thickness style


svn path=/trunk/; revision=19888
2008-03-16 03:57:38 +00:00
Alberto Ruiz
67140c9d3b draw box does more intelligent separation for the xp theming engine and
2008-03-16  Alberto Ruiz <aruiz@gnome.org>

	* modules/engines/ms-windows/Theme/gtk-2.0/gtkrc:
	* modules/engines/ms-windows/msw_style.c (draw_box) (draw_arrow)
	(combo_box_draw_arrow) (setup_msw_rc_style): draw box does more intelligent
	separation for the xp theming engine and the classic theme while drawing the
	GtkComboBox button.
	combobox_draw_arrow is not used anymore, commented.
	The style has been updated to fix border/thickness glitches in the combobox
	according to the fixes commited regarding bug #521442. (bug #461805)


svn path=/trunk/; revision=19887
2008-03-16 03:39:15 +00:00
Jens Granseuer
1b97ef3e14 Don't define variables in the middle of a block. (#522067)
2008-03-12  Jens Granseuer  <jensgr@gmx.net>

	* modules/printbackends/cups/gtkprintbackendcups.c:
	(cups_printer_prepare_for_print): Don't define variables in the
	middle of a block. (#522067)

svn path=/trunk/; revision=19789
2008-03-12 18:37:39 +00:00
Matthias Clasen
b1f8302299 Fix a crash
svn path=/trunk/; revision=19786
2008-03-12 17:52:36 +00:00
Michael Natterer
f572d21294 include <glib/gstdio.h> for g_fopen().
2008-03-12  Michael Natterer  <mitch@imendio.com>

	* modules/printbackends/cups/gtkprintbackendcups.c: include
	<glib/gstdio.h> for g_fopen().


svn path=/trunk/; revision=19775
2008-03-12 11:12:37 +00:00
Matthias Clasen
66b9c59214 Use g_ascii_formatd when formatting custom paper sizes, since cups doesn't
2008-03-11  Matthias Clasen  <mclasen@redhat.com>

        * modules/printbackends/cups/gtkprintbackendcups.c: Use
        g_ascii_formatd when formatting custom paper sizes, since
        cups doesn't handle , as decimal separator.  (#521548)



svn path=/trunk/; revision=19762
2008-03-12 01:34:34 +00:00
Alberto Ruiz
b60e426719 Do not draw frame if parent if combobox. (draw_box): Uses scrollbar width
2008-03-08  Alberto Ruiz  <aruiz@gnome.org>

	* modules/engines/ms-windows/msw_style.c (draw_shadow):
	Do not draw frame if parent if combobox.
	(draw_box):
	Uses scrollbar width system metrics for combobox button.
	Fixes #461805 for XP theme engine.


svn path=/trunk/; revision=19733
2008-03-08 07:20:33 +00:00
Matthias Clasen
9b26a1c319 Honor cups user default options from ~/.cups/lpoptions (#469210, Stijn
2008-03-04  Matthias Clasen  <mclasen@redhat.com>

        * modules/printbackends/cups/gtkprintbackendcups.c:
        Honor cups user default options from ~/.cups/lpoptions
        (#469210, Stijn Hoop)



svn path=/trunk/; revision=19710
2008-03-05 03:45:41 +00:00
Tor Lillqvist
7cd3da8300 Check that the widget is a GtkButton before casting.
2008-03-03  Tor Lillqvist  <tml@novell.com>

	* modules/engines/ms-windows/msw_style.c (draw_box): Check that
	the widget is a GtkButton before casting.


svn path=/trunk/; revision=19690
2008-03-02 19:51:00 +00:00
Matthias Clasen
ca36ffc2af Fix builddir!=srcdir builds. (#516254, Yevgen Muntyan)
2008-02-15  Matthias Clasen  <mclasen@redhat.com>

        * gtk/Makefile.am:
        * modules/other/gail/tests/Makefile.am:
        * modules/other/gail/libgail-util/Makefile.am:
        * modules/other/gail/Makefile.am: Fix builddir!=srcdir
        builds.  (#516254,  Yevgen Muntyan)



svn path=/trunk/; revision=19591
2008-02-16 02:39:20 +00:00
Cody Russell
47663fd346 modules/engines/ms-windows/xp_theme.[ch]
2008-02-01  Cody Russell  <cody@jhu.edu>

        * modules/engines/ms-windows/xp_theme.[ch]
        * modules/engines/ms-windows/xp_theme_defs.h
        * modules/engines/ms-windows/msw_rc_style.c
        * modules/engines/ms-windows/msw_theme_main.c
        * modules/engines/ms-windows/msw_style.c: Re-indented and generally
        attempted to stylize more like the rest of the gtk+ stack's code.


svn path=/trunk/; revision=19455
2008-02-01 23:25:18 +00:00
Li Yuan
7fc21d35d7 Bug #508255. Remove ATK_STATE_FOCUSED state when focus jumps out. Emit
2008-01-11  Li Yuan  <li.yuan@sun.com>

        * gailtreeview.c: (gail_tree_view_real_initialize), (focus_in),
        (focus_out):
        Bug #508255. Remove ATK_STATE_FOCUSED state when focus jumps out.
        Emit "active-descendant-changed" and add ATK_STATE_FOCUSED state when
        focus comes in again.

svn path=/trunk/; revision=19351
2008-01-11 09:58:34 +00:00
Li Yuan
fe9254565a Bug #497218. Emit "active-descendant-changed" when focus first comes into
2008-01-11  Li Yuan  <li.yuan@sun.com>

        * gailtreeview.c: (gail_tree_view_ref_child),
        (idle_cursor_changed):
        Bug #497218. Emit "active-descendant-changed" when focus first comes
        into treeview. Add/remove ATK_STATE_FOCUSED when cursor changes.

svn path=/trunk/; revision=19350
2008-01-11 09:48:23 +00:00
Li Yuan
be9d0fa25d Bug #508715. Should use gtk_tree_path_free to free a GtkTreePath.
2008-01-11  Li Yuan  <li.yuan@sun.com>

        * gailtreeview.c: (gail_tree_view_get_n_rows):
        Bug #508715. Should use gtk_tree_path_free to free a GtkTreePath.

svn path=/trunk/; revision=19349
2008-01-11 09:22:25 +00:00
Tor Lillqvist
a39f6c4611 modules/other/gail/libgail-util/Makefile.am Link with gtktargetlib and
2008-01-10  Tor Lillqvist  <tml@novell.com>

	* modules/other/gail/libgail-util/Makefile.am
	* modules/other/gail/tests/Makefile.am: Link with gtktargetlib and
	gdktargetlib.


svn path=/trunk/; revision=19348
2008-01-10 21:47:58 +00:00
Johan Dahlin
fe095eccfe Include Makefile.decl, to make sure that make test-report works properly
2008-01-05  Johan Dahlin  <johan@gnome.org>

	* modules/other/gail/tests/Makefile.am: Include Makefile.decl,
	to make sure that make test-report works properly


svn path=/trunk/; revision=19308
2008-01-05 23:21:36 +00:00
Christian Persch
9905ccfef3 Move the gail tests from standalone gail to gtk+. Bug #504568.
svn path=/trunk/; revision=19284
2007-12-28 20:23:14 +00:00
Christian Persch
7c23519a56 Fix mem leak. Bug #505556.
svn path=/trunk/; revision=19240
2007-12-25 16:57:25 +00:00
Christian Persch
dec726cbd7 Initialise |widget|. Fixes a buglet introduced by the commit from bug
#505226.

svn path=/trunk/; revision=19239
2007-12-25 12:04:03 +00:00
Christian Persch
8b9693f815 Use G_BEGIN_DECLS/G_END_DECLS. Bug #505268.
svn path=/trunk/; revision=19238
2007-12-25 10:01:14 +00:00
Christian Persch
535e29c380 Remove relocations from the atk factories. Remove unused gail_foo_new()
* modules/other/gail/*.[ch]: Remove relocations from the atk
	factories. Remove unused gail_foo_new() functions. Fix object
	instantiation to be derivation safe by moving initialisation code
	from the removed gail_foo_new() functions to the
	AtkObjectClass::initialize implementation. Bug #505226.

svn path=/trunk/; revision=19237
2007-12-25 09:29:46 +00:00
Matthias Clasen
99fa9096e0 Remove non-multihead-safe uses of clipboards and settings. (#504722,
2007-12-24  Matthias Clasen  <mclasen@redhat.com>

        * modules/other/gail/gailentry.c:
        * modules/other/gail/gailimage.c:
        * modules/other/gail/gailtextview.c: Remove non-multihead-safe
        uses of clipboards and settings.  (#504722, Christian Persch)



svn path=/trunk/; revision=19236
2007-12-25 04:52:13 +00:00
Christian Persch
11ae610d93 Fix compiler warnings. Bug #504701.
svn path=/trunk/; revision=19229
2007-12-23 12:37:13 +00:00
Christian Persch
563ee17a91 Include <config.h>. Bug #504720.
svn path=/trunk/; revision=19228
2007-12-23 12:27:33 +00:00
Christian Persch
b0702a91ad Use G_DEFINE_TYPE[_WITH_CODE] instead of hand-coding the get_type functions. Bug #504661.
svn path=/trunk/; revision=19227
2007-12-23 12:24:59 +00:00
Christian Persch
2f28d0063c Link to gdk and gtk libs. Bug #504645, patch by Li Yuan.
2007-12-22  Christian Persch  <chpe@gnome.org>

	* modules/other/gail/Makefile.am: Link to gdk and gtk libs. Bug
	#504645, patch by Li Yuan.

svn path=/trunk/; revision=19224
2007-12-22 23:19:42 +00:00
Christian Persch
f237432952 Use gdk_threads_add_idle. Bug #504571.
svn path=/trunk/; revision=19222
2007-12-22 20:18:13 +00:00
Matthias Clasen
629fad2ff1 Chain up the finalizer
svn path=/trunk/; revision=19221
2007-12-22 15:27:13 +00:00
Christian Persch
ce340d1b33 Keep the same libtool version as the standalone libgail-util had. Bug #504643.
svn path=/trunk/; revision=19210
2007-12-20 14:31:01 +00:00
Richard Hult
6241f4ef21 Add stub for quartz for fix build.
2007-12-20  Richard Hult  <richard@imendio.com>

	* modules/other/gail/gailwindow.c: (gail_window_get_mdi_zorder):
	Add stub for quartz for fix build.

svn path=/trunk/; revision=19204
2007-12-20 12:21:51 +00:00
Christian Persch
0bee9a840f R modules/other/gail/gailintl.h: Use the stock item's label as the name of
2007-12-20  Christian Persch  <chpe@gnome.org>

	* modules/other/gail/Makefile.am:
	* modules/other/gail/gailimage.c: (gail_image_class_init),
	(gail_image_init), (elide_underscores), (gail_image_get_name),
	(atk_image_interface_init), (gail_image_finalize):
	* modules/other/gail/gailimage.h:
	R modules/other/gail/gailintl.h:
	* po/POTFILES.skip: Use the stock item's label as the name of the
	accessible in gailimage.c. Bug #504246.

svn path=/trunk/; revision=19203
2007-12-20 00:22:39 +00:00
17:05:31 Tim Janik
101e0530ae include Makefile.decl to unbreak test rules.
2007-12-19 17:05:31  Tim Janik  <timj@imendio.com>

        * modules/other/Makefile.am: include Makefile.decl to unbreak test rules.



svn path=/trunk/; revision=19198
2007-12-19 16:03:34 +00:00
Christian Persch
a8e6ee33b1 Integrate gail into gtk+. Bug #169488.
* configure.in:
	* docs/reference/Makefile.am:
	* docs/reference/libgail-util/*:
	* gail-uninstalled.pc.in:
	* gail.pc.in:
	* modules/Makefile.am:
	* modules/other/Makefile.am:
	* modules/other/gail/*:
	* modules/other/gail/libgail-util/*:
	* po/POTFILES.skip: Integrate gail into gtk+. Bug #169488.

svn path=/trunk/; revision=19196
2007-12-18 13:51:12 +00:00
Michael Natterer
64c73a61b7 Remove all .cvsignore files.
svn path=/trunk/; revision=19169
2007-12-13 11:18:45 +00:00
15:39:40 Tim Janik
2dc08ada49 call g_test_init() from gtk_test_init().
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
2007-11-22 14:38:26 +00:00
Matthias Clasen
68c4796380 Fix a casting problem. (#485662, patch by Herbert Valerio Riedel)
2007-11-22  Matthias Clasen  <mclasen@redhat.com>

        * modules/printbackends/cups/gtkcupsutils.c: Fix a casting problem.
        (#485662, patch by Herbert Valerio Riedel)



svn path=/trunk/; revision=19025
2007-11-22 06:04:41 +00:00
Cody Russell
2c47ed91d7 Disable beeps when backspacing in textviews by default on Win32 systems.
2007-10-26  Cody Russell  <cody@jhu.edu>

        * modules/engines/ms-windows/Theme/gtk-2.0/gtkrc:
        Disable beeps when backspacing in textviews by default on
        Win32 systems. (#490624, Daniel Atallah)


svn path=/trunk/; revision=18950
2007-10-26 20:02:41 +00:00
Cody Russell
88aafca418 Draw focus rect for buttons with relief set to GTK_RELIEF_NONE. (#487954)
2007-10-18  Cody Russell  <cody@jhu.edu>

        * modules/engines/ms-windows/msw_style.c: Draw focus rect for
        buttons with relief set to GTK_RELIEF_NONE. (#487954)


svn path=/trunk/; revision=18931
2007-10-18 17:14:36 +00:00
Cody Russell
0fd21fa2ed Fix memory leak, and fix two instances where a GtkRequisition and a
2007-10-08  Cody Russell  <bratsche@gnome.org>
	* modules/engines/ms-windows/msw_style.c:
	(draw_tab): Fix memory leak, and fix two instances where
	a GtkRequisition and a GtkBorder were being freed with
	g_free() rather than gtk_requisition_free() and
	gtk_border_free(). (#484730, Daniel Atallah)


svn path=/trunk/; revision=18893
2007-10-08 15:02:23 +00:00
Matthias Clasen
35dc88e778 Fix some live cycle issues
svn path=/trunk/; revision=18888
2007-10-07 18:17:41 +00:00
Matthias Clasen
be64bb2d2c correct a comment
svn path=/trunk/; revision=18862
2007-09-24 17:12:33 +00:00
Cody Russell
a1045cf317 Override draw_layout method in GtkStyle in order to adjust by 2 pixels any
2007-09-20  Cody Russell  <bratsche@gnome.org>

        * modules/engines/ms-windows/msw_style.c: Override draw_layout
        method in GtkStyle in order to adjust by 2 pixels any labels
        that are in GtkNotebook tabs using XP theme, so that they appear
        correctly centered. (#478637)


svn path=/trunk/; revision=18848
2007-09-20 16:51:16 +00:00