Commit Graph

9755 Commits

Author SHA1 Message Date
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
Xan Lopez
dcbaaf2a69 pass correct argument to g_signal_emit for TEST_EXPAND_ROW (GtkTreeIter*
2007-12-23  Xan Lopez  <xan@gnome.org>

	* gtk/gtktreeview.c (gtk_tree_view_build_tree): pass correct argument
	to g_signal_emit for TEST_EXPAND_ROW (GtkTreeIter* vs. GtkTreeIter**).

	Patch by Sadrul Habib Chowdhury (#504804)

svn path=/trunk/; revision=19225
2007-12-23 01:27:06 +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
102db3cc7d Plug mem leaks. Bug #504886.
2007-12-22  Christian Persch  <chpe@gnome.org>

	* gdk/x11/gdkscreen-x11.c: (init_randr12): Plug mem leaks. Bug #504886.

svn path=/trunk/; revision=19223
2007-12-22 21:03:40 +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
Richard Hult
a28c785bcd Plug leak of destroyed subviews, fixes bug #504753.
2007-12-21  Richard Hult  <richard@imendio.com>

	* gdk/quartz/gdkwindow-quartz.c: (_gdk_windowing_window_destroy):
	Plug leak of destroyed subviews, fixes bug #504753.

svn path=/trunk/; revision=19218
2007-12-21 20:21:05 +00:00
Johan Dahlin
30c81f6343 Add a test for default property values, based on program by Christan Perch
2007-12-20  Johan Dahlin  <johan@gnome.org>

	* tests/Makefile.am (TEST_PROGS): 
	* tests/defaultvaluetest.c: Add a test for default property values,
	based on program by Christan Perch


svn path=/trunk/; revision=19215
2007-12-21 01:01:17 +00:00
Johan Dahlin
05360ff15a Refactor to avoid some duplication. Convert toplevel GtkMenu's top popups
2007-12-20  Johan Dahlin  <johan@gnome.org>

	* gtk/gtk-builder-convert (GtkBuilderConverter._remove_window): 
	Refactor to avoid some duplication.
	Convert toplevel GtkMenu's top popups and not menubars in the ui manager.
	Fixes #504749, Yuri Pimenov


svn path=/trunk/; revision=19213
2007-12-20 23:44:18 +00:00
Kristian Rietveld
41dc2c486c Remove leftovers from old XRandR check. Makes the build work again on
2007-12-20  Kristian Rietveld  <kris@imendio.com>

	* configure.in: Remove leftovers from old XRandR check.  Makes
	the build work again on systems without xrandr 1.2.


svn path=/trunk/; revision=19211
2007-12-20 14:49:54 +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
15:30:09 Tim Janik
b98f1b151c generate HTML reports for test-report perf-report full-report.
2007-12-20 15:30:09  Tim Janik  <timj@imendio.com>

        * Makefile.decl: generate HTML reports for test-report perf-report full-report.



svn path=/trunk/; revision=19209
2007-12-20 14:28:37 +00:00
Alexander Larsson
2003e0ffa0 Update for gio API changes
2007-12-20  Alexander Larsson  <alexl@redhat.com>

        * gdk/x11/gdkapplaunchcontext-x11.c:
	Update for gio API changes


svn path=/trunk/; revision=19208
2007-12-20 13:40:04 +00:00
Richard Hult
14ae647a37 Make manual resizing smoother by processing events after changing the
2007-12-20  Richard Hult  <richard@imendio.com>

	* gdk/quartz/GdkQuartzWindow.c:
	* gdk/quartz/GdkQuartzWindow.h: Make manual resizing smoother by
	processing events after changing the size.

svn path=/trunk/; revision=19206
2007-12-20 13:25:37 +00:00
Richard Hult
3e766f3334 Fix typo in ChangeLog.
svn path=/trunk/; revision=19205
2007-12-20 12:22:16 +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
Mathias Hasselmann
d17c75194c Correct date in ChangeLog entry
svn path=/trunk/; revision=19202
2007-12-20 00:02:46 +00:00
Mathias Hasselmann
2967c27e6a Avoid some compiler warnings and remove obsolete code. (#339540)
* gtk/gtkcalendar.c: Change week and year variable in
calendar_paint_week_numbers from gint to guint. Remove obsolete "#if
0" block from calendar_paint_day: The feature in question is handled
few lines above. Cast data returned by gtk_selection_data_get_text()
to (gchar*) in gtk_calendar_drag_data_received.

svn path=/trunk/; revision=19201
2007-12-19 22:57:01 +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
Johan Dahlin
6b676d7045 Add another call to gtk_builder_add_string after using delayed properties,
2007-12-19  Johan Dahlin  <johan@gnome.org>

	* tests/buildertest.c (test_object_properties): 
	Add another call to gtk_builder_add_string after using
	delayed properties, as reported in #504393 but already
	fixed in #495769.


svn path=/trunk/; revision=19197
2007-12-19 13:49:29 +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
Matthias Clasen
f8a1be3a04 Add a gtk-im-module GTK setting
2007-12-17  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtksettings.c: Add a gtk-im-module GTK setting
        * gdk/win32/gdkproperty-win32.c:
        * gdk/x11/gdksettings.c: ...and back it by a Gtk/IMModule X setting.

        * gtk/gtkimmodule.[hc]:
        * gtk/gtkimmulticontext.[hc]: When determining the default context,
        look at the gtk-im-module setting, and listen for changes to the
        setting.  (#502446, Akira Tagoh)


svn path=/trunk/; revision=19195
2007-12-18 03:24:17 +00:00
Kristian Rietveld
239fd8ace2 use a weak pointer to set last_window to NULL as soon as it's destroyed.
2007-12-17  Kristian Rietveld  <kris@imendio.com>

	* gtk/gtktooltip.c (gtk_tooltip_finalize),
	(gtk_tooltip_set_last_window): use a weak pointer to set last_window
	to NULL as soon as it's destroyed.  (#496546, patch from
	Benjamin Berg).


svn path=/trunk/; revision=19189
2007-12-17 15:33:45 +00:00
Kristian Rietveld
c3b2b3ed00 always determine what arrow to show if show_sort_indicator is true.
2007-12-17  Kristian Rietveld  <kris@imendio.com>

	* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button):
	always determine what arrow to show if show_sort_indicator is true.
	(#352738, Chris Vine).


svn path=/trunk/; revision=19188
2007-12-17 13:25:43 +00:00
Mathias Hasselmann
15c571eaf3 Prevent assertion failure in gtk_paned_find_neighbours. (#503824,
Sébastien Granjoux)

* gtk/gtkpaned.c: Call gtk_container_forall instead of
gtk_container_foreach in get_child_panes.

svn path=/trunk/; revision=19186
2007-12-16 19:15:17 +00:00
Xan Lopez
447de09918 Plug leak: When reordering the info in the list the old node is removed
2007-12-15  Xan Lopez  <xan.lopez@nokia.com>

	* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_layout_reorder):

	Plug leak: When reordering the info in the list the old node is
	removed but not freed. (#503569)

svn path=/trunk/; revision=19184
2007-12-15 11:15:19 +00:00
Sebastian Dröge
33499debed Use u32 instead of __u32 and u8 instead of __u8 as the other types are
* gdk/directfb/gdkcursor-directfb.c: (gdk_cursor_new_for_display):
Use u32 instead of __u32 and u8 instead of __u8 as the other types
are deprecated since DirectFB 1.0.0. If compiling with an older
version define the new type name to the old types. Fixes bug #503190.

svn path=/trunk/; revision=19182
2007-12-15 05:01:30 +00:00
Ray Strode
8609315d28 Suggest g_signal_connect (..., "realize", ...) instead of
2007-12-14  Ray Strode  <rstrode@redhat.com>

	* gtk/gtkwidget.c: Suggest g_signal_connect (..., "realize", ...)
	instead of g_signal_connect_after (..., "realize", ...) as an
	alternative to gtk_widget_realize () (bug 503537).

svn path=/trunk/; revision=19181
2007-12-14 17:06:08 +00:00
Michael Natterer
a84ac8e3d8 gdk/gdkinternals.h #include <gio/gio.h> instead of individual files.
2007-12-14  Michael Natterer  <mitch@imendio.com>

	* gdk/gdkinternals.h
	* gdk/gdkapplaunchcontext.h: #include <gio/gio.h> instead of
	individual files.

	* gdk/gdkapplaunchcontext.c
	* gdk/x11/gdkapplaunchcontext-x11.c: remove all gio includes, the
	header already includes everything now.


svn path=/trunk/; revision=19180
2007-12-14 11:20:10 +00:00
Mathias Hasselmann
41c300a5c7 Correct "Since:" tags for GtkPageSetup and GtkPrintSettings as
next stable release shall be 2.16, not 2.14 - even if disagree.

* gtk/gtkpagesetup.c, gtk/gtkprintsettings.c: s/2.14/2.16/

svn path=/trunk/; revision=19179
2007-12-14 11:07:23 +00:00
Mathias Hasselmann
95adf7ee26 Change GtkToolItem to retrieve its properties from GtkToolShell interface,
instead of relying on being child of a GtkToolbar. (#5034079)

* gtk/gtk.symbols, docs/reference/gtk/gtk-docs.sgml,
docs/reference/gtk/gtk-sections.txt: Add GtkToolShell symbols.
* docs/reference/gtk/tmpl/gtktoolitem.sgml: Move section docs inline.
* gtk/gtktoolbar.c: Implement GtkToolShellIface.
* gtk/gtktoolbar.h: Remove _gtk_toolbar_rebuild_menu.
* gtk/gtktoolitem.c: Use GtkToolShell, instead of GtkToolbar.
Take section docs from template file and update them for GtkToolShell.
* gtk/Makefile.am: Add gtk/gtktoolshell.c and gtk/gtktoolshell.h.
* gtk/gtktoolshell.c, gtk/gtktoolshell.h: New GtkToolShellIface.

svn path=/trunk/; revision=19177
2007-12-14 10:57:46 +00:00
Mathias Hasselmann
ea8074a407 Extract loading of GtkPageSetup and GtkPrintSettings from their *_new_*()
functions and move that code into separate *_load_*() functions (#475565).

* gtk/gtk.symbols, gtk/gtkpagesetup.c, gtk/gtkpagesetup.h:
Extract gtk_page_setup_load_file, gtk_page_setup_load_key_file,
gtk_print_settings_load_file and gtk_print_settings_load_key_file.
Change the matching *_new_*() functions to use those functions.

svn path=/trunk/; revision=19176
2007-12-14 09:02:54 +00:00
Matthias Clasen
da057b5675 Close an api gap in tooltips
svn path=/trunk/; revision=19175
2007-12-14 05:00:51 +00:00
Kristian Rietveld
22e102081a added tests for insertion functions.
2007-12-14  Kristian Rietveld  <kris@imendio.com>

	* gtk/tests/liststore.c:
	* gtk/tests/treestore.c: added tests for insertion functions.


svn path=/trunk/; revision=19174
2007-12-14 00:52:04 +00:00
Søren Sandmann
053cbe6daf Add RandR 1.2 support
Thu Dec 13 13:14:50 2007  Søren Sandmann  <sandmann@redhat.com>

        * Add RandR 1.2 support

        - New monitors_changed signal - New API to get width/height of
          monitors, and the name of the plug



svn path=/trunk/; revision=19173
2007-12-13 18:27:05 +00:00
Kristian Rietveld
935d9a6574 test the move and swap functions on a store with only one node.
2007-12-13  Kristian Rietveld  <kris@imendio.com>

	* gtk/tests/liststore.c:
	* gtk/tests/treestore.c: test the move and swap functions on a
	store with only one node.


svn path=/trunk/; revision=19172
2007-12-13 16:28:12 +00:00
Kristian Rietveld
6900ad4b41 add a call to g_test_bug_base().
2007-12-13  Kristian Rietveld  <kris@imendio.com>

	* gtk/gtktestutils.c (gtk_test_init): add a call to
	g_test_bug_base().

	* gtk/tests/treeview-scrolling.c: add g_test_bug() calls to
	appriopriate tests.


svn path=/trunk/; revision=19171
2007-12-13 14:05:04 +00:00
Kristian Rietveld
790c308fd4 start composing tests for the list and tree store.
2007-12-13  Kristian Rietveld  <kris@imendio.com>

	* gtk/tests/liststore.c:
	* gtk/tests/treestore.c: start composing tests for the list and tree
	store.

	* gtk/tests/treeview-scrolling.c: added automated tests for
	GtkTreeView's scrolling "subsystem".

	* gtk/tests/Makefile.am: updated; added new test programs.


svn path=/trunk/; revision=19170
2007-12-13 12:59:01 +00:00
Mathias Hasselmann
d22e4ed9ce Make the code compile again after the GdkAppLaunchContext changes.
* configure.in: Add gio-2.0 to GDK_PACKAGES.
* gdk/gdkinternals.h: Include <gio/gappinfo.h>.

svn path=/trunk/; revision=19168
2007-12-13 10:05:07 +00:00
Matthias Clasen
9bf93a6fc8 Add docs
svn path=/trunk/; revision=19167
2007-12-13 05:49:11 +00:00
Matthias Clasen
1397a9fd7d Implement GAppLaunchContext in gdk, providing startup notification.
2007-12-12  Matthias Clasen  <mclasen@redhat.com>

        * gdk/gdkapplaunchcontext.[hc]: Implement GAppLaunchContext
        in gdk, providing startup notification.  (#503203)

        * gdk/x11/gdkapplaunchcontext-x11.c:
        * gdk/win32/gdkapplaunchcontext-win32.c:
        * gdk/quartz/gdkapplaunchcontext-quartz.c:
        * gdk/directfb/gdkapplaunchcontext-directfb.c: Backend-specific
        parts. All but X11 are just empty stubs for now.

        * gdk/gdk.symbols:
        * gdk/gdkinternals.h:
        * gdk/Makefile.am:
        * gdk/x11/Makefile.am:
        * gdk/win32/Makefile.am:
        * gdk/quartz/Makefile.am:
        * gdk/directfb/Makefile.am: Necessary glue.



svn path=/trunk/; revision=19165
2007-12-13 05:16:33 +00:00
Mathias Hasselmann
594e3660e9 Another attempt to improve gtk_drag_dest_set docs.
* gtk/gtkdnd.c: Another attempt to improve gtk_drag_dest_set docs.

svn path=/trunk/; revision=19164
2007-12-12 09:39:36 +00:00
Attilio Fiandrotti
c907a97556 Applied a patch by Claudio Ciccani which adds testing functions to the
2007-12-11  Attilio Fiandrotti  <attilio.fiandrotti@gmail.com>

	* gdk/directfb/gdktestutils-directfb.c:
	* gdk/directfb/Makefile.am: Applied a patch by Claudio Ciccani
	which adds testing functions to the DirectFB backend.

svn path=/trunk/; revision=19163
2007-12-11 20:20:29 +00:00
Attilio Fiandrotti
15d6ae4003 Applied a patch by Claudio Ciccani which fixes the mixing of gdk and cairo
2007-12-11  Attilio Fiandrotti  <attilio.fiandrotti@gmail.com>

	* gdk/directfb/gdkdrawable-directfb.c: Applied a patch by Claudio
	Ciccani	which fixes the mixing of gdk and cairo rendering.

svn path=/trunk/; revision=19161
2007-12-11 20:09:01 +00:00
Mathias Hasselmann
dce782750f Mention impact of GtkDestDefaults on "drag-motion" handlers. Clearify
* gtk/gtkdnd.c, gtk/gtkwidget.c: Mention impact of GtkDestDefaults
on "drag-motion" handlers. Clearify documentation for
gtk_drag_dest_set.

svn path=/trunk/; revision=19159
2007-12-11 18:56:56 +00:00
15:44:01 Tim Janik
c1387f9cea made unnecessarily exported symbols static. switched g_return_if_fail()
2007-12-11 15:44:01  Tim Janik  <timj@imendio.com>

        * buildertest.c: made unnecessarily exported symbols static.
        switched g_return_if_fail() statements in tests to assertions.
        special cased currently failing Widget/accesibility test to
        run only for g_test_thorough(), so it doesn't break make check.
        some coding style fixes.

        * Makefile.am: added buildertest to TEST_PROGS.



svn path=/trunk/; revision=19157
2007-12-11 14:42:12 +00:00
Stefan Kost
85133b2c44 Use gtk_widget_get_parent_window() instead of widget->parent->window.
* docs/tutorial/gtk-tut.sgml:
	  Use gtk_widget_get_parent_window() instead of widget->parent->window.


svn path=/trunk/; revision=19152
2007-12-10 22:18:46 +00:00
Richard Hult
8082fbc437 Install backend specific header (bug #405915). Also add a getter for the
2007-12-10  Richard Hult  <richard@imendio.com>

	* gdk/quartz/Makefile.am:
	* gdk/quartz/gdkquartz.h:
	* gdk/quartz/gdkwindow-quartz.c: Install backend specific
	header (bug #405915). Also add a getter for the toplevel nswindow.

svn path=/trunk/; revision=19151
2007-12-10 20:44:23 +00:00
Richard Hult
d7f3ab0569 Replace the autorelease pools used for each drawing context and in
2007-12-10  Richard Hult  <richard@imendio.com>

	* gdk/quartz/gdkdrawable-quartz.c:
	(gdk_quartz_drawable_get_context),
	(gdk_quartz_drawable_release_context):
	* gdk/quartz/gdkeventloop-quartz.c: (gdk_event_prepare),
	(gdk_event_check), (gdk_event_dispatch), (poll_func):
	* gdk/quartz/gdkwindow-quartz.h: Replace the autorelease pools
	used for each drawing context and in prepare, dispatch and poll
	with one that exists across each main loop iteration. Fixes leaks
	on leopard and protects against future leaks introduce when the
	underlying system changes again (bug #492977).

svn path=/trunk/; revision=19149
2007-12-10 20:22:08 +00:00
Richard Hult
f4baa51f49 Fix the check for no changes to position and size.
2007-12-10  Richard Hult  <richard@imendio.com>

	* gdk/quartz/gdkwindow-quartz.c: (move_resize_window_internal):
	Fix the check for no changes to position and size.

svn path=/trunk/; revision=19147
2007-12-10 19:49:52 +00:00
Richard Hult
7639a61116 Ignore drawRect calls with zero sized areas at (0, 0), patch from Paul
2007-12-10  Richard Hult  <richard@imendio.com>

	* gdk/quartz/GdkQuartzView.c: Ignore drawRect calls with zero
	sized areas at (0, 0), patch from Paul Davis.

svn path=/trunk/; revision=19145
2007-12-10 19:38:47 +00:00
Richard Hult
fd8c2c01a9 Fix a bug where we could end up trying to handle the same event more than
2007-12-10  Richard Hult  <richard@imendio.com>

	* gdk/quartz/gdkprivate-quartz.h: 
	* gdk/quartz/gdkeventloop-quartz.c:
	(_gdk_quartz_event_loop_get_pending),
	(_gdk_quartz_event_loop_check_pending),
	(_gdk_quartz_event_loop_release_event), (gdk_event_prepare),
	(gdk_event_check), (gdk_event_dispatch):
	* gdk/quartz/gdkevents-quartz.c: (gdk_events_pending)
	(_gdk_events_queue): Fix a bug where we could end up trying to
	handle the same event more than once. Based on patch from Paul
	Davis.

svn path=/trunk/; revision=19143
2007-12-10 19:00:23 +00:00
Tor Lillqvist
9355ef9ee5 Include bin/gtk-builder-convert in the dev package. (#502850)
2007-12-10  Tor Lillqvist  <tml@novell.com>

	* gtk-zip.sh.in: Include bin/gtk-builder-convert in the dev
	package. (#502850)


svn path=/trunk/; revision=19141
2007-12-10 14:27:35 +00:00
Matthias Clasen
2a702dcd42 Another fix to avoid further fallout from the fix for bug 388321.
2007-12-10  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtknotebook.c (gtk_notebook_real_remove): Another fix
        to avoid further fallout from the fix for bug 388321.



svn path=/trunk/; revision=19139
2007-12-10 06:19:53 +00:00
Attilio Fiandrotti
2d20a49584 Committed several patches by Denis Oliver Knoppwhich are expected to improve the performance of the DirectFB backend
svn path=/trunk/; revision=19132
2007-12-09 10:03:30 +00:00
Matthias Clasen
c131da48c9 Correct the documentation of child property getter arguments. (#501992,
2007-12-07  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkcontainer.c: Correct the documentation of child
        property getter arguments.  (#501992, David Brigada)



svn path=/trunk/; revision=19130
2007-12-07 19:06:03 +00:00
Matthias Clasen
dcc86ce57c Don't leak pixbufs. (#502250, Yevgen Muntyan)
2007-12-07  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkfilechooserdefault.c (shortcuts_reload_icons): Don't
        leak pixbufs.  (#502250, Yevgen Muntyan)


svn path=/trunk/; revision=19128
2007-12-07 18:51:25 +00:00
Yevgen Muntyan
d9e1478d53 Forgot bug number.
svn path=/trunk/; revision=19127
2007-12-07 18:16:05 +00:00
Yevgen Muntyan
6003bcbd96 added alternative button order in Print and Page Setup dialogs.
2007-12-07  Yevgen Muntyan  <muntyan@tamu.edu>

	* gtk/gtkprintunixdialog.c:
	* gtk/gtkpagesetupunixdialog.c: added alternative button order in
	Print and Page Setup dialogs.


svn path=/trunk/; revision=19126
2007-12-07 18:05:42 +00:00
13:16:33 Tim Janik
0578f2dba9 skip tests if gdktarget!=x11, since GUI tests need Xvfb. only start Xvfb
2007-12-07 13:16:33  Tim Janik  <timj@imendio.com>

        * Makefile.decl: skip tests if gdktarget!=x11, since GUI tests need
        Xvfb. only start Xvfb if TEST_PROGS is not empty. moved "set -e" out
        of XVFB_START, since it's the GTESTER invokation that needs this.



svn path=/trunk/; revision=19125
2007-12-07 12:22:33 +00:00
Tommi Komulainen
62315bd5d0 Remove trailing whitespace that can trigger false positives in abicheck.sh
2007-12-06  Tommi Komulainen  <tommi.komulainen@iki.fi>

	* gdk-pixbuf/gdk-pixbuf.symbols:
	* gdk/gdk.symbols:
	* gdk/gtk.symbols: Remove trailing whitespace that can trigger false
	positives in abicheck.sh

svn path=/trunk/; revision=19124
2007-12-06 20:14:17 +00:00
Attilio Fiandrotti
01f8212ad3 Committed a patch by DOK to fix GDK events generations in the DirectFB backend
svn path=/trunk/; revision=19122
2007-12-06 17:45:05 +00:00
13:55:06 Tim Janik
fcf39799c7 replaced seq(1) invokation for X11 ids with a hardcoded set of likely
2007-12-06 13:55:06  Tim Janik  <timj@imendio.com>

        * Makefile.decl: replaced seq(1) invokation for X11 ids with a hardcoded
        set of likely unused display ids, because MacOS has no seq(1) command.



svn path=/trunk/; revision=19121
2007-12-06 12:54:08 +00:00
Richard Hult
fd069852e0 Fix warning when switching spaces in leopard.
2007-12-06  Richard Hult  <richard@imendio.com>

	* gdk/quartz/gdkevents-quartz.c:
	(synthesize_crossing_events_for_ns_event): Fix warning when
	switching spaces in leopard.

svn path=/trunk/; revision=19119
2007-12-06 12:39:01 +00:00
13:38:36 Tim Janik
0a7a3f2fa2 ported to new testing framework.
2007-12-06 13:38:36  Tim Janik  <timj@imendio.com>

        * tests/floatingtest.c: ported to new testing framework.

        * tests/Makefile.am: run floatingtest as testing framework test.



svn path=/trunk/; revision=19118
2007-12-06 12:38:00 +00:00
10:44:52 Tim Janik
01a89326e8 majorly speed up execution by reducing timeouts and converting main loop
2007-12-06 10:44:52  Tim Janik  <timj@imendio.com>

        * tests/autotestfilechooser.c: majorly speed up execution by reducing
        timeouts and converting main loop sleeps to pending/iterate loops with
        very low priority async handlers. eliminate output for non-verbose
        tests. assert successfull subtests in all test functions. use testing
        framework in main().

        * tests/Makefile.am: add autotestfilechooser to TEST_PROGS, so it's
        executed inside Xvfb upon make check.



svn path=/trunk/; revision=19117
2007-12-06 09:43:20 +00:00
08:23:38 Tim Janik
ba05f509b4 use string comparisons for string property values and get rid of
2007-12-06 08:23:38  Tim Janik  <timj@imendio.com>

        * tests/objecttests.c: use string comparisons for string property
        values and get rid of referencing symbols in array initialization.



svn path=/trunk/; revision=19116
2007-12-06 07:22:03 +00:00
18:59:59 Tim Janik
9ba5da2f36 run tests in current dir after setting up the logging directory, so their
2007-12-05 18:59:59  Tim Janik  <timj@imendio.com>

        * gtk+/Makefile.decl: run tests in current dir after setting up the
        logging directory, so their results get properly merged into the
        resulting test log.

        * gtk+/gtk/gtktestutils.[hc]: added gtk_test_list_all_types() for
        tests to loop over registered Gdk/Gtk+ types.

        * gtk+/tests/objecttests.c: new test program, implements automated
        property tests. several properties are blacklisted because they
        seem to trigger Gdk/Gtk+ bugs. ./objecttests -m thorough --verbose
        can be used to test blacklisted properties and see which proprty failed.



svn path=/trunk/; revision=19115
2007-12-05 16:58:44 +00:00
Richard Hult
4a82f84a28 Fully initialize the root window, fixes bug #501583.
2007-12-04  Richard Hult  <richard@imendio.com>

	* gdk/quartz/gdkwindow-quartz.c: (_gdk_windowing_window_init):
	Fully initialize the root window, fixes bug #501583.

svn path=/trunk/; revision=19109
2007-12-04 19:08:11 +00:00
Matthias Clasen
2b3c7b70ef Modify the tab-label-destroy fix to not crash epiphany.
2007-12-04  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtknotebook.c: Modify the tab-label-destroy fix to not
        crash epiphany.


svn path=/trunk/; revision=19107
2007-12-04 18:43:47 +00:00
Richard Hult
f411b93ca3 Don't crash when dragging from a source that doesn't support uri lists
2007-12-03  Richard Hult  <richard@imendio.com>

	* gtk/gtkquartz.c: (_gtk_quartz_set_selection_data_for_pasteboard):
	Don't crash when dragging from a source that doesn't support uri
	lists (bug #499868, Paul Davis).

svn path=/trunk/; revision=19102
2007-12-03 19:51:20 +00:00
Richard Hult
4a1478d6d7 Don't crash when a parent relative bg pixmap is set, and no parent has a
2007-12-03  Richard Hult  <richard@imendio.com>

	* gdk/quartz/gdkwindow-quartz.c:
	(gdk_window_impl_quartz_begin_paint_region): Don't crash when a
	parent relative bg pixmap is set, and no parent has a bg
	pixmap. Fixes bug #500804.

svn path=/trunk/; revision=19100
2007-12-03 19:34:30 +00:00
Matthias Clasen
f9e4618bda Two optimizations for icon cache lookups.
2007-12-03  Matthias Clasen  <mclasen@redhat.com>

        Two optimizations for icon cache lookups.

        * gtk/gtkiconcache.[hc]:
        * gtk/gtkicontheme.c: Remember the directory index for
        subdirectories, instead of running over the directory list
        again and again.

        * gtk/gtkiconcache.c (find_image_offset): Remember the last
        chain and try it first; this helps with the the usage patterns
        in gtkicontheme.c, where the same icon is queried for a lot
        of subdirectories.


svn path=/trunk/; revision=19099
2007-12-03 17:44:27 +00:00
15:18:17 Tim Janik
f83588f87e use 'grep -o' to extract _get_type functions from header files. this
2007-12-03 15:18:17  Tim Janik  <timj@imendio.com>

        * gtk/Makefile.am (gtktypefuncs.c): use 'grep -o' to extract _get_type
        functions from header files. this should be portable across linux and
        Mac OS, unlike the previpous sed expression.



svn path=/trunk/; revision=19098
2007-12-03 14:17:31 +00:00
Cody Russell
48110a5013 [Win32]: On Windows, queue a redraw of child2 whenever we set the pane
2007-12-1  Cody Russell  <bratsche@gnome.org>

        * gtk/gtkpaned.c: (gtk_paned_set_position) [Win32]:      
        On Windows, queue a redraw of child2 whenever we set
        the pane handle position.  This is unfortunately kind
        of hacky, but solves the visual artifacts that were
        occuring on at least certain types of child widgets
        (e.g., text views and tree views) that are inside
        horizontal or vertical panes. (#144269)


svn path=/trunk/; revision=19095
2007-12-01 22:08:19 +00:00
Matthias Clasen
7fbc566d32 Fix doc typos
svn path=/trunk/; revision=19094
2007-11-30 18:20:39 +00:00
Matthias Clasen
5b48e3bfb3 Remove debug spew
svn path=/trunk/; revision=19092
2007-11-30 00:36:52 +00:00
Matthias Clasen
ff9ddfeb22 Fix subdir ordering
svn path=/trunk/; revision=19091
2007-11-29 23:54:23 +00:00
Tor Lillqvist
82b031d9e9 Tack on "/share/locale" to GTK_LOCALEDIR so that the code in
2007-11-28  Tor Lillqvist  <tml@novell.com>

	* config.h.win32.in: Tack on "/share/locale" to GTK_LOCALEDIR so
	that the code in _gtk_get_localedir() will find the slashes.


svn path=/trunk/; revision=19084
2007-11-28 01:09:54 +00:00
Tor Lillqvist
10825b14b8 A proper build of GNU libintl is supposed to export the variable
2007-11-28  Tor Lillqvist  <tml@novell.com>

	A proper build of GNU libintl is supposed to export the variable
	_nl_msg_cat_cntr. configure looks for that variable in order to
	recognize GNU gettext. If it sees that it is indeed GNU gettext
	that is used, it decides to install message catalogs in
	share/locale, otherwise in lib/locale. Until now on Windows I have
	built GTK+ against a build of GNU gettext that did not export
	_nl_msg_cat_cntr. But this will change, so we can't assume message
	catalogs are always in lib/locale.

	* gtk/gtkmain.c: (_gtk_get_localedir) [Win32]: Rework to handle
	GTK_LOCALEDIR being either in "lib" or "share". Move the function
	before the inclusion of gtkprivate.h so that it sees the original
	GTK_LOCALEDIR.

	* gtk-zip.sh.in: Check whether the message catalogs are in
	share/locale or lib/locale.


svn path=/trunk/; revision=19083
2007-11-28 01:06:07 +00:00
Tor Lillqvist
2159f9c7ca Improve portability. The -o option is present only in newish GNU egreps.
2007-11-28  Tor Lillqvist  <tml@novell.com>

	* gtk/Makefile.am: Improve portability. The -o option is present
	only in newish GNU egreps. Use one more sed in the pipeline
	instead.


svn path=/trunk/; revision=19082
2007-11-27 23:28:16 +00:00
Tor Lillqvist
d0f50cde27 Fix #375893, patch by Ben Hague:
2007-11-28  Tor Lillqvist  <tml@novell.com>

	Fix #375893, patch by Ben Hague:

	* gtk/gtkfilesystemwin32.c (get_viewable_logical_drives): Wrapper
	around GetLogicalDrives() that takes also the viewable drive
	restrictions in the Registry (which are usually the result of an
	Active Directory Group Policy) into account.

	(check_volumes, gtk_file_system_win32_list_volumes) Call
	get_viewable_logical_drives() instead of GetLogicalDrives().


svn path=/trunk/; revision=19079
2007-11-27 22:29:46 +00:00
Matthias Clasen
cd2d87b471 Zero some variables to silence valgrind. (#495124, Morten Welinder)
2007-11-27  Matthias Clasen <mclasen@redhat.com>

        * gtk/gtkwindow.c (gtk_window_move_resize): Zero some
        variables to silence valgrind.  (#495124, Morten Welinder)


svn path=/trunk/; revision=19077
2007-11-27 18:15:28 +00:00
Ryan Lortie
08e15bbbae add clarification stating that the construct_child function is responsible
2006-11-26  Ryan Lortie  <desrt@desrt.ca>

        * docs/reference/gtk/tmpl/gtkbuildable.sgml: add clarification stating
        that the construct_child function is responsible for returning a
        reference.
        * gtkbuilder.c (_gtk_builder_construct): remove g_object_ref() for
        objects from constructors
        * gtkuimanager.c (gtk_ui_manager_buildable_construct_child): add
        g_object_ref() to this construction function (it's the only
        implementer in GTK)

        Fixes #496645.


svn path=/trunk/; revision=19075
2007-11-27 03:25:09 +00:00
Ryan Lortie
490af125c2 remove concept of root objects and just refcount all objects in the
2006-11-26  Ryan Lortie  <desrt@desrt.ca>

        * gtkbuilder.c: remove concept of root objects and just refcount
        all objects in the builder.  Fixes #496651.


svn path=/trunk/; revision=19074
2007-11-27 03:07:23 +00:00
Ryan Lortie
029de426da fix invalid free
2007-11-26  Ryan Lortie  <desrt@desrt.ca>

        * tests/buildertest.c (test_window): fix invalid free


svn path=/trunk/; revision=19073
2007-11-27 02:34:12 +00:00
Josselin Mouette
21a30978dc reviewed by: Federico Mena Quintero
2007-11-26  Josselin Mouette <joss@malsain.org>

        reviewed by: Federico Mena Quintero

        * gtk/gtkfilechooserdefault.c: (shortcuts_append_paths),
        (shortcuts_add_bookmarks), (shortcuts_selection_changed_cb),
        (shortcuts_list_create), (gtk_file_chooser_default_should_respond):
        Make the shortcuts activate with a single click. (#148828)
        Fix a few things affected by the change:
          - Set selection mode to GTK_SELECTION_SINGLE to allow a case 
            where no shortcut is selected.
          - Don't activate a shortcut in the response callback.
          - Filter out duplicate entries in volumes and bookmarks to 
            avoid the selection to change when reordering them with DnD.


svn path=/trunk/; revision=19072
2007-11-26 23:16:19 +00:00
Matthias Clasen
7819005e2e Fix up some doc comments to shut up gtk-doc.
2007-11-26  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkmain.c:
        * gtk/gtknotebook.c:
        * gtk/gtkplugprivate.h:
        * gtk/gtksocket.c:
        * gtk/gtksocketprivate.h:
        * gtk/gtktable.c: Fix up some doc comments to shut up gtk-doc.


svn path=/trunk/; revision=19066
2007-11-26 20:15:15 +00:00
Matthias Clasen
f5034f4080 Use $CUPS_CONFIG instead of hardcoded cups-config. (#495574, Richard Hult)
2007-11-26  Matthias Clasen  <mclasen@redhat.com>

        * configure.in: Use $CUPS_CONFIG instead of hardcoded cups-config.
        (#495574, Richard Hult)



svn path=/trunk/; revision=19062
2007-11-26 19:05:38 +00:00
Matthias Clasen
fa0328da18 Change some labels to be clearer. String change ! (#376361, Sven Neumann)
2007-11-26  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkprintunixdialog.c: Change some labels to be clearer.
        String change !   (#376361, Sven Neumann)


svn path=/trunk/; revision=19061
2007-11-26 18:27:20 +00:00
Matthias Clasen
3132888e1b Short-circuit on destroy. (gtk_notebook_destroy): Destroy tab_label
2007-11-26  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtknotebook.c (gtk_notebook_update_labels): Short-circuit on
        destroy.
        (gtk_notebook_destroy): Destroy tab_label widgets. (#388321, Morten
        Welinder)


svn path=/trunk/; revision=19059
2007-11-26 18:21:13 +00:00
Matthias Clasen
9936134d97 Improve alternative button ordering. (#476827, Yevgen Muntyan, patch by
2007-11-26  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkassistant.c: Improve alternative button
        ordering.  (#476827, Yevgen Muntyan, patch by Carlos Garnacho)


svn path=/trunk/; revision=19057
2007-11-26 18:16:46 +00:00
Matthias Clasen
225803d3ce Fix a theming problem with colors in GtkCalendar. (#499703, Michael
2007-11-26  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkcalendar.c: Fix a theming problem with colors
        in GtkCalendar.  (#499703, Michael Hofmann)


svn path=/trunk/; revision=19055
2007-11-26 17:42:35 +00:00
Matthias Clasen
8dd889e420 Bump glib requirement
svn path=/trunk/; revision=19054
2007-11-26 17:34:24 +00:00
Matthias Clasen
736f86b303 Use templates for glib-mkenums calls instead of complicated commandlines
2007-11-26  Matthias Clasen  <mclasen@redhat.com>

        Use templates for glib-mkenums calls instead of
        complicated commandlines in Makefiles.  (#429910)

        * gdk-pixbuf/Makefile.am:
        * gdk/Makefile.am:
        * gtk/Makefile.am:
        * perf/Makefile.am: Use templates for glib-mkenums

        * gdk-pixbuf/gdk-pixbuf-enum-types.[ch].template:
        * gdk/gdkenumtypes.[ch].template:
        * gtk/gtktypebuiltings.[ch].template:
        * perf/typebuiltins.[ch].template: The templates


svn path=/trunk/; revision=19053
2007-11-26 17:32:19 +00:00
Matthias Clasen
d5eb6847e5 Don't use guint8 for bitfields, since some compilers choke on that.
2007-11-26  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkfilechooserbutton.c:
        * gtk/gtktoolbar.c: Don't use guint8 for bitfields, since
        some compilers choke on that.  (#467722)


svn path=/trunk/; revision=19051
2007-11-26 17:10:00 +00:00
Matthias Clasen
259244deda Add a note about hook setup. (#425004, Emmanuele Bassi)
2007-11-26  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkaboutdialog.c (gtk_about_dialog_set_website): Add a note
        about hook setup.  (#425004, Emmanuele Bassi)



svn path=/trunk/; revision=19050
2007-11-26 16:48:21 +00:00
Tor Lillqvist
19209e3a15 Use the monitor the window currently is on, not always the primary
2007-11-26  Tor Lillqvist  <tml@novell.com>

	* gdk/win32/gdkwindow-win32.c (gdk_window_fullscreen): Use the
	monitor the window currently is on, not always the primary
	monitor. (#463865, Tim Evans)


svn path=/trunk/; revision=19047
2007-11-25 22:59:50 +00:00