Commit Graph

10649 Commits

Author SHA1 Message Date
Christian Dywan
bb396a07b2 Remove erroneously added g_return_if_fail (bug #541811).
2008-07-07  Christian Dywan  <christian@imendio.com>

	* gtk/gtkcontainer.c (gtk_container_add_with_properties): Remove
	erroneously added g_return_if_fail (bug #541811).

svn path=/trunk/; revision=20792
2008-07-06 22:24:24 +00:00
Matthias Clasen
75c668dbf2 Fix up highlighting
svn path=/trunk/; revision=20791
2008-07-06 07:24:02 +00:00
Matthias Clasen
a2802754f1 Bug 327582 – Incomplete docs for GtkSettings::gtk-icon-sizes
2008-07-06  Matthias Clasen  <mclasen@redhat.com>

        Bug 327582 – Incomplete docs for GtkSettings::gtk-icon-sizes

        * gtk/gtksettings.c: Improve the documentation of the
        gtk-icon-sizes setting. Proposed by Tommi Komulainen.



svn path=/trunk/; revision=20790
2008-07-06 06:28:47 +00:00
Matthias Clasen
e36dd2f4e3 Bug 539248 – gtk_calender_query_tooltip calls ->detail_func with invalid
2008-07-06  Matthias Clasen  <mclasen@redhat.com>

        Bug 539248 – gtk_calender_query_tooltip calls ->detail_func with
        invalid dates

        * gtk/gtkcalendar.c (gtk_calendar_query_tooltip):
        Check that the cursor is over a valid date before retrieving
        its details.  Patch by Chris Wilson


svn path=/trunk/; revision=20789
2008-07-06 06:08:48 +00:00
Matthias Clasen
486d65659f Bug 493008 – gdk_screen_get_window_stack is not 64-bit-compatible
2008-07-06  Matthias Clasen  <mclasen@redhat.com>

        Bug 493008 – gdk_screen_get_window_stack is not 64-bit-compatible

        * gdk/x11/gdkscreen-x11.c (gdk_screen_get_window_stack): Fix
        64-bit brokenness. Reported by Christian Hammond.


svn path=/trunk/; revision=20788
2008-07-06 06:05:02 +00:00
Matthias Clasen
128585147f Bug 541645 – gtkfilechooserdefault segfaults when bookmark does not
2008-07-06  Matthias Clasen  <mclasen@redhat.com>

        Bug 541645 – gtkfilechooserdefault segfaults when bookmark does not
        contain ://

        * gtk/gtkfilechooserdefault.c (_gtk_file_chooser_label_for_file):
        Be more robust. Reported by  Jelte van der Hoek


svn path=/trunk/; revision=20787
2008-07-06 05:34:03 +00:00
Matthias Clasen
36f5e8d776 Deprecate gtk_box_pack_{start,end}_defaults
svn path=/trunk/; revision=20786
2008-07-06 04:46:36 +00:00
Matthias Clasen
1fbe931f0c 2.13.5
svn path=/trunk/; revision=20785
2008-07-05 20:34:08 +00:00
Matthias Clasen
40a31e283c 2.13.4
svn path=/trunk/; revision=20783
2008-07-05 20:30:16 +00:00
Michael Natterer
777066b3c7 move gtk_draw_insertion_cursor() out of the deprecated section because it
2008-07-05  Michael Natterer  <mitch@imendio.com>

	* gtk/gtk.symbols: move gtk_draw_insertion_cursor() out of the
	deprecated section because it isn't deprecated.


svn path=/trunk/; revision=20780
2008-07-05 16:36:59 +00:00
Michael Natterer
c09eb4fdcb remove #if HAVE_CONFIG_H and clean up other include weirdness in this
2008-07-05  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkprogressbar.c: remove #if HAVE_CONFIG_H and clean up
	other include weirdness in this file.


svn path=/trunk/; revision=20779
2008-07-05 16:03:49 +00:00
Matthias Clasen
3a054c925e Updates
svn path=/trunk/; revision=20773
2008-07-05 04:51:16 +00:00
Matthias Clasen
908aba628a Doc updates
svn path=/trunk/; revision=20772
2008-07-04 22:03:37 +00:00
Matthias Clasen
faef4e8ce2 Small doc fixes
svn path=/trunk/; revision=20771
2008-07-04 21:55:21 +00:00
Matthias Clasen
a1b44ad8cf Some GDK doc additions
svn path=/trunk/; revision=20770
2008-07-04 21:52:54 +00:00
Matthias Clasen
c6e63c6d49 More property deborkage
svn path=/trunk/; revision=20769
2008-07-04 21:20:25 +00:00
Matthias Clasen
7f874a4d19 Fix the getter for text-length
svn path=/trunk/; revision=20768
2008-07-04 21:04:10 +00:00
Matthias Clasen
a46f8f3726 Fix default value
svn path=/trunk/; revision=20767
2008-07-04 20:46:45 +00:00
Matthias Clasen
81376a6e58 Debork
svn path=/trunk/; revision=20765
2008-07-04 20:01:50 +00:00
Michael Natterer
e90941635f Forgot gtktipsquery.c
svn path=/trunk/; revision=20764
2008-07-04 19:23:47 +00:00
Michael Natterer
05a6983f62 Fix make check:
2008-07-04  Michael Natterer  <mitch@imendio.com>

	Fix make check:

	* gtk/Makefile.am: remove GTK_DISABLE_DEPRECATED from INCLUDES
	again :-(

	* gtk/gtkclist.c
	* gtk/gtkcombo.c
	* gtk/gtkctree.c
	* gtk/gtklist.c
	* gtk/gtklistitem.c
	* gtk/gtknotebook.c
	* gtk/gtkobject.c
	* gtk/gtkoldeditable.c
	* gtk/gtkpixmap.c
	* gtk/gtktext.c
	* gtk/gtktree.c
	* gtk/gtktreeitem.c: don't #define it again before including
	gtkalias.h after it has been #undef'ed before.


svn path=/trunk/; revision=20763
2008-07-04 18:38:36 +00:00
Michael Natterer
a63ba82b64 set need_im_reset to FALSE instead of 0.
2008-07-04  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkentry.c (_gtk_entry_reset_im_context): set need_im_reset
	to FALSE instead of 0.


svn path=/trunk/; revision=20762
2008-07-04 16:41:13 +00:00
Michael Natterer
da4da16baf Allocate with GSlice:
2008-07-04  Michael Natterer  <mitch@imendio.com>

	Allocate with GSlice:

	* gtk/gtkassistant.c: GtkAssistantPage
	* gtk/gtkcellview.c: GtkCellViewCellInfo
	* gtk/gtkentry.c: GtkEntryPasswordHint, PopupInfo
	* gtk/gtkfilefilter.c: FilterRule
	* gtk/gtknotebook.c: GtkNotebookPage


svn path=/trunk/; revision=20761
2008-07-04 14:27:40 +00:00
Michael Natterer
d905a906a4 allocate ComboCellInfo with GSlice.
2008-07-04  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkcombobox.c: allocate ComboCellInfo with GSlice.


svn path=/trunk/; revision=20760
2008-07-04 10:52:52 +00:00
Michael Natterer
d934deaaf3 change "error_dialog" variable to GtkWidget fo fix two warnings.
2008-07-04  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkprintoperation.c (print_pages): change "error_dialog"
	variable to GtkWidget fo fix two warnings.


svn path=/trunk/; revision=20759
2008-07-04 10:46:19 +00:00
Michael Natterer
89da90a6cd Bug 539944 – Add GtkScaleButton API so struct fields can be marked as
2008-07-04  Michael Natterer  <mitch@imendio.com>

	Bug 539944 – Add GtkScaleButton API so struct fields can be marked
	as private

	* gtk/gtk.symbols
	* gtk/gtkscalebutton.[ch]: add gtk_scale_button_get_plus_button()
	and _get_minus_button(). Patch by Christian Dywan.


svn path=/trunk/; revision=20757
2008-07-04 09:02:20 +00:00
Matthias Clasen
4f56813d00 Fix make check
svn path=/trunk/; revision=20756
2008-07-04 05:05:45 +00:00
Matthias Clasen
d423a9224a Fix make check
svn path=/trunk/; revision=20755
2008-07-04 04:02:35 +00:00
Matthias Clasen
65f9d54685 Fall back to the default positioning when the menuitem is not realized.
* gtk/gtkmenuitem.c: Fall back to the default positioning when
        the menuitem is not realized. Patch by Björn Lindqvist.



svn path=/trunk/; revision=20754
2008-07-03 23:33:08 +00:00
Matthias Clasen
8f6aa13b05 Fix a memory leak. Patch by Christian Persch.
* gtk/gtkfilesystem.c (get_volumes_list): Fix a memory leak.
        Patch by Christian Persch.


svn path=/trunk/; revision=20752
2008-07-03 22:46:00 +00:00
Matthias Clasen
2f1ef69fb7 Don't select the first row if the folder is empty. Patch by Olle
* gtk/gtkfilechooserdefault.c (browse_files_select_first_row): Don't
        select the first row if the folder is empty.
        Patch by Olle Bergkvist.


svn path=/trunk/; revision=20751
2008-07-03 22:40:33 +00:00
Tor Lillqvist
688cc55cdd Bug 540861 - invalid UTF-8 in input device name
2008-07-04  Tor Lillqvist  <tml@novell.com>

	Bug 540861 - invalid UTF-8 in input device name

	* gdk/win32/gdkinput-win32.c: Fetch the device and cursor names in
	Unicode, and convert to UTF-8 for the GdkDevice's name field.


svn path=/trunk/; revision=20750
2008-07-03 22:11:38 +00:00
Matthias Clasen
7d9cf87a04 Set properties in the order in which they are specified in the xml file.
* gtk/gtkbuilderparser.c (parse_custom): Set properties in the order
        in which they are specified in the xml file.


svn path=/trunk/; revision=20749
2008-07-03 18:09:04 +00:00
Matthias Clasen
efd2dbf026 Add gtk_scale_button_get_popup
svn path=/trunk/; revision=20748
2008-07-03 18:03:13 +00:00
Matthias Clasen
5d0421f6c3 One more
svn path=/trunk/; revision=20747
2008-07-03 17:37:07 +00:00
Matthias Clasen
c20433d644 Use monospace as font name, not mono. Patch by Yevgen Muntyan.
* demos/gtk-demo/printing.c: Use monospace as font name,
        not mono. Patch by Yevgen Muntyan.


svn path=/trunk/; revision=20746
2008-07-03 17:35:50 +00:00
Matthias Clasen
075d84b88a No more mushroom
svn path=/trunk/; revision=20745
2008-07-03 17:29:39 +00:00
Michael Natterer
528f7b7336 remove "_from_bindings" suffix from the names of binding signal
2008-07-03  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkscalebutton.c: remove "_from_bindings" suffix from the
	names of binding signal implementations.


svn path=/trunk/; revision=20744
2008-07-03 13:13:23 +00:00
Li Yuan
6f2850bd2d Bug #536430. Add libgailutil.la into gail-uninstalled.pc.in.
2008-07-03  Li Yuan  <li.yuan@sun.com>

        * gail-uninstalled.pc.in:
        Bug #536430. Add libgailutil.la into gail-uninstalled.pc.in.

svn path=/trunk/; revision=20742
2008-07-03 08:48:24 +00:00
Cody Russell
7a500d97b2 Bug 540529 – Remove all GIMP references
2008-07-03  Cody Russell  <bratsche@gnome.org>

        Bug 540529 – Remove all GIMP references

        * gtk+-2.0.pc.in:
        * gdk-2.0.pc.in:
        * gtk+-unix-print-2.0.pc.in:
        * gtk+-2.0-uninstalled.pc.in:
        * gdk-2.0-uninstalled.pc.in: Changed GIMP Toolkit to say
        GTK+ Graphical UI Library in the pkg-config files.


svn path=/trunk/; revision=20739
2008-07-03 05:47:22 +00:00
Matthias Clasen
d2343ff20b Fix attribution
svn path=/trunk/; revision=20738
2008-07-03 04:45:50 +00:00
Cody Russell
e7b024c6b7 Bug 541305 – [Win32] Scrolling was broken after GdkWindow refactoring
2008-07-02  Cody Russell  <bratsche@gnome.org>

        Bug 541305 – [Win32] Scrolling was broken after GdkWindow refactoring

        * gdk/win32/gdkwindow-win32.c:	Reverted	some logic so that scrolling
	works again.

        * gdk/win32/gdkgeometry-win32.c: Removed some more unnecessary	checks.
        * gdk/win32/gdkkeys-win32.c: Removed unused variable to fix compile-time
        warnings.


svn path=/trunk/; revision=20737
2008-07-02 20:22:30 +00:00
Cody Russell
2bb97a7a90 Bug 541249 – [Win32] Fix some internal static methods
2008-07-02  Cody Russell  <bratsche@gnome.org>

        Bug 541249 – [Win32] Fix some internal static methods

        * gdk/gdkwindow-win32.c: Make the interface implementation methods
        static.


svn path=/trunk/; revision=20734
2008-07-02 13:58:28 +00:00
Michael Natterer
a82c180023 Bug 537591 – Don't hardcode minimum width of menuitems
2008-07-02  Michael Natterer  <mitch@imendio.com>

	Bug 537591 – Don't hardcode minimum width of menuitems

	* gtk/gtkmenuitem.c: applied patch from Christian Dywan which
	introduces a "width-chars" style property which replaces the
	hardcoded minimum width of menuitems with submenu. Patch
	extracted from Maemo-GTK+.


svn path=/trunk/; revision=20733
2008-07-02 12:05:42 +00:00
Michael Natterer
1b291602bd remove some of the million includes.
2008-07-02  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkfilechooserdefault.c: remove some of the million includes.


svn path=/trunk/; revision=20732
2008-07-02 10:14:45 +00:00
Kristian Rietveld
74984a5c24 Since s/2.16/2.14/ for the new gicon property.
2008-07-02  Kristian Rietveld  <kris@imendio.com>

	* gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init):
	Since s/2.16/2.14/ for the new gicon property.


svn path=/trunk/; revision=20731
2008-07-02 09:34:24 +00:00
Kristian Rietveld
4cceb2f1dc Bug 455268 - Add gtk-enable-tooltips GtkSetting
2008-07-02  Kristian Rietveld  <kris@imendio.com>

	Bug 455268 - Add gtk-enable-tooltips GtkSetting

	* gtk/gtk.symbols:
	* gtk/gtktoolbar.[ch] (gtk_toolbar_[gs]et_tooltips): deprecated.

	* gtk/gtksettings.c: introduce gtk-enable-tooltips XSetting.

	* gtk/gtktooltip.c (_gtk_tooltip_handle_event): take the newly
	introduced XSetting into account.

	* demos/gtk-demo/appwindow.c: don't use the now deprecated
	gtk_toolbar_set_tooltips().


svn path=/trunk/; revision=20730
2008-07-02 09:32:14 +00:00
Cody Russell
e625b41a1d Bug 541162 – [Win32] Update for the new GdkWindowImpl stuff
2008-07-02  Cody Russell  <bratsche@gnome.org>

        Bug 541162 – [Win32] Update for the new GdkWindowImpl stuff

        * gdk/win32/gdkprivate-win32.h:
        * gdk/win32/gdkgeometry-win32.c:
        * gdk/win32/gdkevents-win32.c:
        * gdk/win32/gdkwindow-win32.c: Update Win32 backend according to
        the newly refactored GdkWindow code.


svn path=/trunk/; revision=20729
2008-07-02 06:06:29 +00:00
Cody Russell
0d0f9a7fc1 Bug 539164 – Windows' System Menu blocks main loop
2008-07-01  Cody Russell  <bratsche@gnome.org>

        Bug 539164 – Windows' System Menu blocks main loop

        * gdk/win32/gdkevents-win32.c:	Use a modal timer proc in between
	receiving WM_ENTERMENULOOP and	WM_EXITMENULOOP	and pump	the
	GLib mainloop from there.


svn path=/trunk/; revision=20726
2008-07-01 23:13:26 +00:00
Cody Russell
688470400b Remove old ChangeLog entry
svn path=/trunk/; revision=20725
2008-07-01 23:04:35 +00:00
Richard Hult
119f3cf183 Some aftermath from the window impl cleanups:
2008-07-01  Richard Hult  <richard@imendio.com>

	Some aftermath from the window impl cleanups:

	* gdk/quartz/gdkwindow-quartz.c:
	(gdk_window_merge_child_input_shapes): Rename and export again.
	(gdk_window_quartz_get_offsets): Make static.

svn path=/trunk/; revision=20723
2008-07-01 18:27:43 +00:00
Michael Natterer
6281cec0ab forgot to commit the header, fixed now.
2008-07-01  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkscalebutton.h: forgot to commit the header, fixed now.


svn path=/trunk/; revision=20719
2008-07-01 07:45:40 +00:00
Matthias Clasen
44e2afaadb Add event sound settings. Patch by Lennart Pöttering.
* gdk/x11/gdksettings.c:
        * gtk/gtksettings.c: Add event sound settings.
        Patch by Lennart Pöttering.


svn path=/trunk/; revision=20717
2008-07-01 06:22:04 +00:00
Matthias Clasen
a7abdcf8fc Handle failure to create temp file by returning NULL.
* gtk/gtkprintoperation-unix.c
        (_gtk_print_operation_platform_backend_create_preview_surface):
        Handle failure to create temp file by returning NULL.

        * gtk/gtkprintoperation.c (gtk_print_operation_preview_handler):
        Return FALSE if surface creation fails.

        (print_pages): If the preiew signal is not handled, show an
        error dialog.


svn path=/trunk/; revision=20715
2008-07-01 05:38:49 +00:00
Michael Natterer
cbd06646dd Bug 442042 – GtkScaleButton is too limited
2008-07-01  Michael Natterer  <mitch@imendio.com>

	Bug 442042 – GtkScaleButton is too limited

	* gtk/gtkscalebutton.[ch]: turn "orientation" into a normal
	property that can be changed at any time after widget
	creation. Add public API for it.

	* gtk/gtk.symbols: add gtk_scale_button_get/set_orientation.


svn path=/trunk/; revision=20710
2008-06-30 23:41:10 +00:00
Cody Russell
fce9c8b7d4 Practically everything changed.
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
2008-06-30 23:01:56 +00:00
Michael Natterer
971023d922 Some unrelated cleanups found while reviewing the offscreen window patch:
2008-06-30  Michael Natterer  <mitch@imendio.com>

	Some unrelated cleanups found while reviewing
	the offscreen window patch:

	* gdk/gdkwindow.c: add missing Since: 2.14 to the redirection
	functions, fix some function header indentation, update
	documentation of redirect_to_drawable().

	* gdk/x11/gdkwindow-x11.c
	* gdk/x11/gdkpixmap-x11.c: fix function header
	formatting/indentation.

	* gtk/gtkwidget.c: use I_() on "damage_event".


svn path=/trunk/; revision=20708
2008-06-30 12:15:29 +00:00
Michael Natterer
2e3c1149ae remove duplicate declaration of _gdk_window_new().
2008-06-30  Michael Natterer  <mitch@imendio.com>

	* gdk/gdkinternals.h: remove duplicate declaration of
	_gdk_window_new().


svn path=/trunk/; revision=20707
2008-06-30 11:04:42 +00:00
Michael Natterer
b4201d4de9 reorder source lists alphabetically.
2008-06-30  Michael Natterer  <mitch@imendio.com>

	* gdk/Makefile.am: reorder source lists alphabetically.


svn path=/trunk/; revision=20706
2008-06-30 10:44:47 +00:00
Matthias Clasen
ab019f3ade Avoid unnecessary redraws when resizing. Patch by Owen Taylor
* gtk/gtkwindow.c: Avoid unnecessary redraws when resizing.
        Patch by Owen Taylor


svn path=/trunk/; revision=20705
2008-06-30 05:17:02 +00:00
Behdad Esfahbod
e670565932 Bug 530255 – GtkAboutDialog cuts off comments label Followup patch from
2008-06-29  Behdad Esfahbod  <behdad@gnome.org>

        Bug 530255 – GtkAboutDialog cuts off comments label
        Followup patch from  Jan Arne Petersen

        * gtk/gtklabel.c (gtk_label_get_layout_offsets): Ensure layout.


svn path=/trunk/; revision=20703
2008-06-29 17:17:09 +00:00
Michael Natterer
5390e1e24c properly indent the newly added GtkSelectionData accessors. Some newlines
2008-06-28  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkselection.h: properly indent the newly added
	GtkSelectionData accessors. Some newlines can't hurt either.


svn path=/trunk/; revision=20702
2008-06-28 17:02:20 +00:00
Mikael Hallendal
ff7f25c9af Removed accidental empty row in gtk_box_pack.
2008-06-27  Mikael Hallendal  <micke@imendio.com>

	* gtk/gtkbox.c (gtk_box_pack): Removed accidental empty row.

svn path=/trunk/; revision=20701
2008-06-28 16:21:28 +00:00
Mikael Hallendal
257ca7ef7d Factor out gtk_box_pack from gtk_box_pack_start and gtk_box_pack_end to reduce code duplication.
2008-06-27  Mikael Hallendal  <micke@imendio.com>

        * gtk/gtkbox.c (gtk_box_pack, gtk_box_pack_start, gtk_box_pack_end):
        Factored out gtk_box_pack from gtk_box_pack_start and use it from both
        pack_start and pack_end in order to reduce the code duplication.

svn path=/trunk/; revision=20700
2008-06-28 16:16:26 +00:00
Michael Natterer
b8cee08351 Bug 442042 – GtkScaleButton is too limited
2008-06-27  Michael Natterer  <mitch@imendio.com>

	Bug 442042 – GtkScaleButton is too limited

	* gtk/gtkscalebutton.c (gtk_scale_button_init): set the name
	"gtk-scalebutton-popup-window" on the popup window so it is
	properly themeable.


svn path=/trunk/; revision=20698
2008-06-27 20:13:25 +00:00
Kristian Rietveld
cf3542155f adapt to use GdkWindowImpl interface.
2008-06-27  Kristian Rietveld  <kris@imendio.com>

	* gdk/quartz/gdkgeometry-quartz.c:
	* gdk/quartz/gdkwindow-quartz.c:
	* gdk/quartz/gdkprivate-quartz.h: adapt to use GdkWindowImpl
	interface.


svn path=/trunk/; revision=20697
2008-06-27 17:06:06 +00:00
Carlos Garnacho
b3bb8c47b5 Fix two potential critical warnings. Bug #539470.
2008-06-27  Carlos Garnacho  <carlos@imendio.com>

        * gtk/gtkrecentmanager.c (get_icon_for_mime_type): Fix two potential
        critical warnings. Bug #539470.

svn path=/trunk/; revision=20696
2008-06-27 15:33:42 +00:00
Emmanuele Bassi
e27632cd6d Abstract some GdkWindow API into an interface that the backends must
2008-06-27  Emmanuele Bassi  <ebassi@gnome.org>

	Abstract some GdkWindow API into an interface that the backends
	must implement. (based on a patch by Alex Larsson)

	* gdk/Makefile.am: Add gdkwindowimpl.[ch]

	* gdk/gdk.symbols: Move symbols around.

	* gdk/gdkinternals.h:
	* gdk/gdkwindowimpl.[ch]: Move some of the GdkWindow API we require
	from the backends to a GInterface that the backends should implement
	instead.

	* gdk/gdkwindow.c: Provide some of the GdkWindow public API as a
	wrapper call around the GdkWindowImpl interface vtable.

	* gdk/x11/gdkevents-x11.c:
	* gdk/x11/gdkgeometry-x11.c:
	* gdk/x11/gdkprivate-x11.h:
	* gdk/x11/gdkwindow-x11.c:
	* gdk/x11/gdkwindow-x11.h: Update the X11 backend to implement
	the GdkWindowImpl interface.

svn path=/trunk/; revision=20695
2008-06-27 14:27:44 +00:00
Martyn James Russell
cf1df130dc Fixed the FAQ location in the warning produced here.
* gtk/gtkcontainer.c: (gtk_container_add): Fixed the FAQ location
	in the warning produced here.

svn path=/trunk/; revision=20693
2008-06-27 11:51:40 +00:00
Michael Natterer
53d96e46f4 Bug 442042 – GtkScaleButton is too limited
2008-06-27  Michael Natterer  <mitch@imendio.com>

	Bug 442042 – GtkScaleButton is too limited

	* gtk/gtkscalebutton.c: add "orientation" property. Make sure the
	stuff that is part of the public API continues to be created in
	init() to stay compatible. Move creating of the popup scale to
	constructor(). Add an internal HScale class. Changed popup
	positioning for horizontal scales accordingly.


svn path=/trunk/; revision=20692
2008-06-27 09:33:32 +00:00
Michael Natterer
d79185cf1f gtk/gtkscalebutton.c remove redundant init() and class_init() prototypes,
2008-06-26  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkscalebutton.c
	* gtk/gtkvolumebutton.c: remove redundant init() and class_init()
	prototypes, remove redundant includes, remove a little trailing
	whitespace.


svn path=/trunk/; revision=20691
2008-06-26 17:14:27 +00:00
Richard Hult
2f29e8d9f5 Patch from Christian Dywan to clean up selection data setting.
2008-06-26  Richard Hult  <richard@imendio.com>

	* gtk/gtkclipboard-quartz.c: (gtk_clipboard_wait_for_contents):
	* gtk/gtkquartz.c:
	(_gtk_quartz_get_selection_data_from_pasteboard),
	(_gtk_quartz_set_selection_data_for_pasteboard): Patch from
	Christian Dywan to clean up selection data setting.

svn path=/trunk/; revision=20690
2008-06-26 13:01:40 +00:00
Richard Hult
2e6f82b987 Don't use deprecated function gtk_widget_ref, replace with g_object_ref.
2008-06-26  Richard Hult  <richard@imendio.com>

	* gtk/gtkdnd-quartz.c (gtk_drag_begin_internal): Don't use
	deprecated function gtk_widget_ref, replace with g_object_ref.

svn path=/trunk/; revision=20689
2008-06-26 12:44:10 +00:00
Michael Natterer
1a6b0cb1ca #include "config.h"
2008-06-26  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkfilesystem.c: #include "config.h"


svn path=/trunk/; revision=20688
2008-06-26 10:19:23 +00:00
Carlos Garnacho
1732652e71 current_folder can be NULL here, do not try to reference it (Bug #540235)
2008-06-26  Carlos Garnacho  <carlos@imendio.com>

        * gtk/gtkfilechooserdefault.c
        (gtk_file_chooser_default_get_current_folder): current_folder can be
        NULL here, do not try to reference it (Bug #540235)
        (gtk_file_chooser_default_get_files): Deal better with
        gtk_file_chooser_default_get_current_folder() being able to return
        NULL.

svn path=/trunk/; revision=20687
2008-06-26 09:41:13 +00:00
Michael Natterer
260e94547f allocate the GtkTextUtilCallbackInfo structs with GSlice.
2008-06-26  Michael Natterer  <mitch@imendio.com>

	* gtk/gtktextutil.c (_gtk_text_util_append_special_char_menuitems):
	allocate the GtkTextUtilCallbackInfo structs with GSlice.


svn path=/trunk/; revision=20686
2008-06-26 09:06:48 +00:00
Michael Natterer
3d322ce16a there is no reason to include <gtk/gtktypebuiltins.h> in the middle of the
2008-06-25  Michael Natterer  <mitch@imendio.com>

	* gtk/gtktypeutils.h: there is no reason to include
	<gtk/gtktypebuiltins.h> in the middle of the file, move it to top,
	replacing the <glib-object.h> include. Also move the remaining few
	non-deprecated things to the top and move some deprecated things
	around to clean up the mess with too many deprecated sections even
	more.


svn path=/trunk/; revision=20685
2008-06-25 09:32:38 +00:00
Michael Natterer
0c1f022ba7 deprecate gtk_type_init() unconditionally (also for GTK_COMPILATION). Move
2008-06-24  Michael Natterer  <mitch@imendio.com>

	* gtk/gtktypeutils.h: deprecate gtk_type_init() unconditionally
	(also for GTK_COMPILATION). Move some deprecated typedefs around
	to reduce the mess with zillions of deprecated sections.

	* gtk/gtkmain.c (do_post_parse_initialization): replace the call
	to gtk_type_init() by g_type_init() and gtk_object_get_type() even
	though the latter is probably completely pointless.


svn path=/trunk/; revision=20684
2008-06-24 19:11:30 +00:00
Johan Dahlin
c472d99c0b Revert GtkScaleButton accesses for plus/minus buttons, as per #539944
svn path=/trunk/; revision=20682
2008-06-24 13:41:13 +00:00
Michael Natterer
24c0eb5d39 also revert change in how the dialog's vbox was added (bug #539732).
2008-06-24  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkdialog.c (gtk_dialog_init): also revert change in how
	the dialog's vbox was added (bug #539732).


svn path=/trunk/; revision=20681
2008-06-24 10:49:12 +00:00
Carlos Garnacho
60e1b3ea89 Remove container implementation, which isn't thought for handling
2008-06-24  Carlos Garnacho  <carlos@imendio.com>

        * gtk/gtkdialog.[ch]: Remove container implementation, which isn't
        thought for handling non-direct children. Fixes #539732.
        (gtk_dialog_pack_start) (gtk_dialog_pack_end): Removed as well, it
        doesn't provide enough control to API users (removing, reordering...),
        this is better handled through:
        (gtk_dialog_get_content_area): New function which just returns
        dialog->vbox.
        * gtk/gtk.symbols: Modify accordingly.
        * docs/reference/gtk/tmpl/gtkdialog.sgml: Update docs to recommend
        using gtk_dialog_get_[action|content]_area() instead of accessing
        dialog struct members directly.

svn path=/trunk/; revision=20680
2008-06-24 10:22:40 +00:00
Michael Natterer
a13f698b3a gtk/gtkassistant.h gtk/gtkcellrenderer.h gtk/gtkfilechooserentry.h
2008-06-24  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkassistant.h
	* gtk/gtkcellrenderer.h
	* gtk/gtkfilechooserentry.h
	* gtk/gtkprivate.h
	* gtk/gtktooltip.h
	* gtk/gtktreeview.h
	* gtk/gtkwindow.h: no need to include gtkwidget.h or gtkobject.h
	if there is any other widget included, they all have to include
	their respective parent classes (the is-a relation works for
	includes too).


svn path=/trunk/; revision=20679
2008-06-24 10:16:01 +00:00
Michael Natterer
7146dd12e5 remove includes from this internal header.
2008-06-24  Michael Natterer  <mitch@imendio.com>

	* gtk/gtktextutil.h: remove includes from this internal header.

	* gtk/gtktextutil.c: include gtktextbuffer.h before gtktextutil.h.


svn path=/trunk/; revision=20678
2008-06-24 09:55:08 +00:00
Michael Natterer
257cfa289b formatting.
2008-06-23  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkinvisible.h: formatting.


svn path=/trunk/; revision=20676
2008-06-23 14:28:13 +00:00
Michael Natterer
77e99003a8 gtk/gtkaction.h gtk/gtkbuildable.h gtk/gtkbuilderprivate.h
2008-06-23  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkaction.h
	* gtk/gtkbuildable.h
	* gtk/gtkbuilderprivate.h
	* gtk/gtkcelllayout.h
	* gtk/gtkentrycompletion.h
	* gtk/gtkfilechoosersettings.h
	* gtk/gtkfilesystem.h
	* gtk/gtkfilesystemmodel.h
	* gtk/gtkicontheme.h
	* gtk/gtklinkbutton.h
	* gtk/gtkpagesetup.h
	* gtk/gtkpapersize.h
	* gtk/gtkprintcontext.h
	* gtk/gtkprintoperation.h
	* gtk/gtkprintoperationpreview.h
	* gtk/gtkprintsettings.h
	* gtk/gtkrecentchooserprivate.h
	* gtk/gtkrecentmanager.h
	* gtk/gtksearchengine.h
	* gtk/gtktexttag.h
	* gtk/gtktreeselection.h
	* gtk/gtktreeviewcolumn.h
	* gtk/gtkuimanager.h: remove redundant inclusion of <glib.h> and
	<glib-object.h>. There is no point in relying on them being pulled
	in by other headers in some places and placing them explicitly in
	other places, so choose the "as little includes as possible"
	approach and get rid of them.


svn path=/trunk/; revision=20675
2008-06-23 14:07:19 +00:00
Kristian Rietveld
ed7d0ed47e do not hard code the prefix of the enum, use @ENUMPREFIX@ instead (you
2008-06-23  Kristian Rietveld  <kris@imendio.com>

	* gdk/gdkenumtypes.h.template:
	* gdk-pixbuf/gdk-pixbuf-enum-types.h.template:
	* gtk/gtktypebuiltins.h.template:
	* perf/typebuiltins.h.template: do not hard code the prefix of the
	enum, use @ENUMPREFIX@ instead (you need an up to date glib for this).


svn path=/trunk/; revision=20674
2008-06-23 12:09:15 +00:00
Michael Natterer
7dfaf81ee2 gtk/gtkmountoperation.h gtk/gtktestutils.h remove as many includes as
2008-06-23  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkmountoperation.h
	* gtk/gtktestutils.h
	* gtk/gtkshow.[ch]: remove as many includes as possible from these
	new files. They can't be included individually, so nothing can break.


svn path=/trunk/; revision=20673
2008-06-23 10:47:22 +00:00
Michael Natterer
91f84cd1d8 use g_param_spec_flags(), not enum() when registering the "modifier-mask"
2008-06-22  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkaccelgroup.c: use g_param_spec_flags(), not enum() when
	registering the "modifier-mask" property.


svn path=/trunk/; revision=20670
2008-06-22 16:42:22 +00:00
Johan Dahlin
d97cdbdf53 Include "config.h" instead of <config.h> Command used: find -name
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
2008-06-22 14:28:52 +00:00
Carlos Garnacho
56bbbbf553 Bug 539466 – GtkMenuShell API/ABI break in trunk.
2008-06-21  Carlos Garnacho  <carlos@imendio.com>

        Bug 539466 – GtkMenuShell API/ABI break in trunk.

        * gtk/gtkmenushell.h: Fix API/ABI break, two guint fields had
        different name and packing width.

svn path=/trunk/; revision=20666
2008-06-21 14:56:07 +00:00
Johan Dahlin
a1362779ee Cast to guint8* to avoid a compiler warning.
2008-06-21  Johan Dahlin  <jdahlin@async.com.br>

    * gtk/gtkiconcachevalidator.c (check_pixel_data): Cast to guint8* to avoid
    a compiler warning.


svn path=/trunk/; revision=20665
2008-06-21 13:09:57 +00:00
Johan Dahlin
33d64796d0 Document a style property
2008-06-20  Johan Dahlin  <jdahlin@async.com.br>

    * gtk/gtkbutton.c: Document a style property


svn path=/trunk/; revision=20664
2008-06-21 12:34:12 +00:00
Michael Natterer
aefbaedc61 remove redundant include, fix indentation, replace header by a GDK
2008-06-21  Michael Natterer  <mitch@imendio.com>

	* gdk/gdkapplaunchcontext.h: remove redundant include, fix
	indentation, replace header by a GDK copyright header (don't say
	"The Gnome Library"), remove trailing whitespace.


svn path=/trunk/; revision=20663
2008-06-21 10:44:26 +00:00
Hans Breuer
d3ce448c20 fix 'function' : incompatible types - from 'struct _cairo *' to 'struct
2008-06-21  Hans Breuer  <hans@breuer.org>

	* gtk/gtkprintoperation-win32.c(1713) : fix 'function' : incompatible 
	types - from 'struct _cairo *' to 'struct _cairo_surface *' by
	passing the surface to cairo_surface_show_page(), not the context
	* gtk/gtkprintoperation-win32.c(866) : get rid of warning C4018: 
	'<' : signed/unsigned mismatch by using guint for the loop

	* gtk/gtkmenu.c(gtk_menu_get_property) : property 'menu::active' is 
	an uint, gtk_menu_get_active() returns the widget pointer. Convert
	the latter to the former by calculating the index in menu::children
	Also fix some occurences of g_return_if_fail() where 
	g_return_val_if_fail() was meant


svn path=/trunk/; revision=20662
2008-06-21 09:49:00 +00:00
Björn Lindqvist
743eebc1a5 Bug 539363 – Segfault when creating GtkPlugs
2008-06-21  Björn Lindqvist  <bjourne@gmail.com>

	Bug 539363 – Segfault when creating GtkPlugs

	* gtk/gtkplug.c (gtk_plug_class_init): Spaces not allowed in
	property names. "socket window" => "socket-window"

svn path=/trunk/; revision=20661
2008-06-21 01:03:25 +00:00
Jody Goldberg
87caf0d3ae Fix life cycle to avoid crash. [#536966]
2008-06-20  Jody Goldberg <jody@gnome.org>

	* gtk/gtkprintoperation-win32.c (gtk_print_run_page_setup_dialog) : 
	  Fix life cycle to avoid crash. [#536966]

svn path=/trunk/; revision=20660
2008-06-21 00:53:17 +00:00
Hans Breuer
8e2ef4982b must return a value of the appropriate type with g_return_val_if_fail
2008-06-20  Hans Breuer  <hans@breuer.org>

	* gtk/gtkmenuitem.c gtk/gtkmessagedialog.c gtk/gtkplug.c : must return
	a value of the appropriate type with g_return_val_if_fail
	
	* gdk/gdkconfig.h.win32 : add the GSEAL definition here as well

	* gtk/gtkfilesystem.c : don't add the "File System" on win32

	* tests/makefile.msc : remove broken autotestfile(system|chooser) 
	from build


svn path=/trunk/; revision=20657
2008-06-20 20:39:22 +00:00
Johan Dahlin
2e75eb1330 Document and use - instead of _ in signal names.
2008-06-20  Johan Dahlin  <jdahlin@async.com.br>

    * gtk/gtkeditable.c: Document and use - instead of _ in signal names.


svn path=/trunk/; revision=20656
2008-06-20 20:11:46 +00:00
Johan Dahlin
ef5e0e9601 Fix up deprecated markup syntax. Add version numbers and a message on the
2008-06-20  Johan Dahlin  <jdahlin@async.com.br>

    * gtk/gtkbutton.c:
    * gtk/gtkcolorsel.c:
    * gtk/gtkentry.c:
    * gtk/gtkitemfactory.c:
    * gtk/gtknotebook.c:
    Fix up deprecated markup syntax. Add version numbers and
    a message on the remaning ones.


svn path=/trunk/; revision=20655
2008-06-20 19:42:53 +00:00
Mikael Hallendal
df11b00dae Replaced use of gtk_signal_connect with the g_signal_connect equivalents.
2008-06-20  Mikael Hallendal  <micke@imendio.com>

	* tests/testthreads.c: Use g_signal_connect instead of
	gtk_signal_connect.

	* demos/testgtk/main.c: switched to use GSignal instead of GtkSignal.
	While the code is not built, people may still look at it.

svn path=/trunk/; revision=20654
2008-06-20 19:26:50 +00:00
Kjartan Maraas
0eba9bf8fe reviewed by: <Carlos Garnacho <garnacho@gnome.org>
2008-06-20  Kjartan Maraas  <kmaraas@gnome.org>

	reviewed by: <Carlos Garnacho <garnacho@gnome.org>

	* gtk/gtkbuilder.h:
	* gtk/gtkliststore.h:
	* gtk/gtkobject.h:
	* gtk/gtktextchild.h:
	* gtk/gtktreemodelfilter.h:
	* gtk/gtktreemodelsort.h:
	* gtk/gtktreestore.h:
	#include <gdkconfig.h> not <gdk/gdkconfig.h>

svn path=/trunk/; revision=20653
2008-06-20 18:52:52 +00:00
Martyn James Russell
c8322b8c0e Fix warnings from calling g_object_notify() on a GtkAccelGroup without
* gtk/gtkaccelgroup.c: Fix warnings from calling
	g_object_notify() on a GtkAccelGroup without casting to a
	GObject.

svn path=/trunk/; revision=20652
2008-06-20 15:10:00 +00:00
Johan Dahlin
755a662ff2 Modernize and order things as most other objects. Defines at the top,
2008-06-20  Johan Dahlin  <jdahlin@async.com.br>

    * gtk/gtkcolorsel.c: Modernize and order things as most
    other objects. Defines at the top, class init before init
    before gobject methods before object method before widget
    methods. No changes to the logic done.


svn path=/trunk/; revision=20651
2008-06-20 15:01:31 +00:00
Martyn James Russell
7e374415b6 Don't call g_object_notify() with properties that don't exist. Also, make
* gtk/gtkaccelgroup.c: Don't call g_object_notify() with
	properties that don't exist. Also, make sure we notify for
	the "is-locked" property.

svn path=/trunk/; revision=20650
2008-06-20 14:45:54 +00:00
Johan Dahlin
90bc8940c8 Remove left-over unused property enum.
2008-06-20  Johan Dahlin  <jdahlin@async.com.br>

    * gtk/gtklayout.c (enum): Remove left-over unused property enum.


svn path=/trunk/; revision=20649
2008-06-20 14:34:50 +00:00
Johan Dahlin
9e400139b7 Add missing accessor for sealed fields GtkScaleButton->plus_button and
2008-06-20  Johan Dahlin  <jdahlin@async.com.br>

    * gtk/gtk.symbols:
    * gtk/gtkscalebutton.c (gtk_scale_button_get_plus_button),
    (gtk_scale_button_get_minus_button):
    * gtk/gtkscalebutton.h:
    Add missing accessor for sealed fields GtkScaleButton->plus_button and
    minus_button.


svn path=/trunk/; revision=20648
2008-06-20 14:30:28 +00:00
Johan Dahlin
02fbfecda2 Initialize the allocation to avoid compiler warnings
2008-06-20  Johan Dahlin  <jdahlin@async.com.br>

    * gtk/gtkwidget.c (gtk_widget_get_allocation): Initialize the
    allocation to avoid compiler warnings


svn path=/trunk/; revision=20647
2008-06-20 14:28:09 +00:00
Johan Dahlin
493914fa7a Fix gtk-doc syntax, add missing trailing colon.
2008-06-20  Johan Dahlin  <jdahlin@async.com.br>

    * gtk/gtkscalebutton.c: Fix gtk-doc syntax, add missing trailing colon.


svn path=/trunk/; revision=20646
2008-06-20 14:22:26 +00:00
Johan Dahlin
80e221ef6f Add all newly added accessors so abicheck.sh passes
2008-06-20  Johan Dahlin  <jdahlin@async.com.br>

    * gtk/gtk.symbols: Add all newly added accessors so abicheck.sh passes


svn path=/trunk/; revision=20645
2008-06-20 14:19:58 +00:00
Johan Dahlin
c4aa58f9bc Remove unused variable and check if the widget is a GtkWidget subclass,
2008-06-20  Johan Dahlin  <jdahlin@async.com.br>

    * gtk/gtkwidget.c (gtk_widget_get_allocation): Remove unused variable
    and check if the widget is a GtkWidget subclass, not the uninitialized
    allocation.


svn path=/trunk/; revision=20644
2008-06-20 14:19:22 +00:00
Michael Natterer
f87182ac43 gtk/gtkaccellabel.h gtk/gtkactiongroup.h gtk/gtkalignment.h gtk/gtkarrow.h
2008-06-20  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkaccellabel.h
	* gtk/gtkactiongroup.h
	* gtk/gtkalignment.h
	* gtk/gtkarrow.h
	* gtk/gtkaspectframe.h
	* gtk/gtkbin.h
	* gtk/gtkhandlebox.h
	* gtk/gtkprogressbar.h
	* gtk/gtkrange.h
	* gtk/gtkscale.h
	* gtk/gtkscalebutton.h
	* gtk/gtkselection.h: fix some formatting and spacing uglyness
	that got merged from the GSEAL branch.


svn path=/trunk/; revision=20643
2008-06-20 14:17:00 +00:00
Johan Dahlin
812eaa436f Add missing accessor for sealed field GtkMessageDialog->image.
2008-06-20  Johan Dahlin  <jdahlin@async.com.br>

    * gtk/gtk.symbols:
    * gtk/gtkmessagedialog.c (gtk_message_dialog_get_image):
    * gtk/gtkmessagedialog.h:
    Add missing accessor for sealed field GtkMessageDialog->image.


svn path=/trunk/; revision=20642
2008-06-20 14:08:18 +00:00
Michael Natterer
58808c169e fix ChangeLog
svn path=/trunk/; revision=20641
2008-06-20 13:55:59 +00:00
Michael Natterer
9ae864e46e the GSEAL branch added two includes for no reason.
2008-06-20  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkprinter.h: the GSEAL branch added two includes for no
	reason.


svn path=/trunk/; revision=20640
2008-06-20 13:55:21 +00:00
Johan Dahlin
e46eeab2a9 Add missing Since: gtk-doc markup for newly added GSEAL API. Change all
2008-06-20  Johan Dahlin  <jdahlin@async.com.br>

    * gtk/gtkaccelgroup.c:
    * gtk/gtkcolorseldialog.c:
    * gtk/gtkcontainer.c:
    * gtk/gtkdialog.c:
    * gtk/gtkentry.c (gtk_entry_class_init):
    * gtk/gtkfontsel.c:
    * gtk/gtkhandlebox.c:
    * gtk/gtklayout.c:
    * gtk/gtkmenu.c (gtk_menu_class_init):
    * gtk/gtkmenuitem.c (gtk_menu_item_class_init):
    * gtk/gtkplug.c (gtk_plug_class_init):
    * gtk/gtkselection.c:
    * gtk/gtksocket.c:
    * gtk/gtktreeselection.c:
    * gtk/gtkwidget.c (gtk_widget_class_init):
    * gtk/gtkwindow.c:
    Add missing Since: gtk-doc markup for newly added GSEAL API.
    Change all Since: GSEAL-branch to Since: 2.14.


svn path=/trunk/; revision=20639
2008-06-20 13:54:31 +00:00
Michael Natterer
38684d0a35 fix some formatting and whitespace in the code merged from the GSEAL
2008-06-20  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkaccelgroup.[ch]: fix some formatting and whitespace in
	the code merged from the GSEAL branch.


svn path=/trunk/; revision=20638
2008-06-20 13:34:17 +00:00
Michael Natterer
7cd4eb5650 change return value from GtkHButtonBox to GtkWidget.
2008-06-20  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkdialog.c (gtk_dialog_get_action_area): change return
	value from GtkHButtonBox to GtkWidget.


svn path=/trunk/; revision=20637
2008-06-20 13:23:22 +00:00
Michael Natterer
1c453c8849 deuglify formatting of sealed fields.
2008-06-20  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkhandlebox.h (struct _GtkHandleBox): deuglify formatting
	of sealed fields.


svn path=/trunk/; revision=20636
2008-06-20 12:24:44 +00:00
Michael Natterer
a44c258282 gtk/gtkwindow.[ch] rename gtk_window_group_get_windows() to
2008-06-20  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkwindow.[ch]
	* gtk/gtk.symbols: rename gtk_window_group_get_windows() to
	gtk_window_group_list_windows().


svn path=/trunk/; revision=20635
2008-06-20 11:51:44 +00:00
Tim Janik
632c90d3d1 ChangeLog: update with GSEAL branch changes.
svn path=/trunk/; revision=20634
2008-06-20 11:33:34 +00:00
Michael Natterer
2ba736d775 Bug 538395 – gtk_combo_box_append_text() on non-compliant model
2008-06-20  Michael Natterer  <mitch@imendio.com>

	Bug 538395 – gtk_combo_box_append_text() on non-compliant model
	segfaults

	* gtk/gtkcombobox.c (gtk_combo_box_append_text)
	(gtk_combo_box_insert_text)
	(gtk_combo_box_prepend_text)
	(gtk_combo_box_remove_text)
	(gtk_combo_box_real_get_active_text): apply patch from Christian
	Dywan which adds the needed g_return_if_fail() to prevent the
	crashes.


svn path=/trunk/; revision=20477
2008-06-20 10:00:40 +00:00
Cody Russell
778be3e8e9 Rename gdk_window_new -> _gdk_window_new and gdk_window_reparent ->
2008-06-20  Cody Russell  <cody@jhu.edu>

        * gdk/directfb/gdkwindow-directfb.c:

        Rename gdk_window_new -> _gdk_window_new and
        gdk_window_reparent -> _gdk_window_reparent to fix
        the build.  (#539095, Sebastien Bacher)


svn path=/trunk/; revision=20476
2008-06-20 05:12:24 +00:00
Johan Dahlin
234dc3726f remove an unused variable and cast accel_path to gchar, just like in
2008-06-19  Johan Dahlin  <jdahlin@async.com.br>

    * gtk/gtkmenuitem.c: remove an unused variable and cast
    accel_path to gchar, just like in gtkmenu.c


svn path=/trunk/; revision=20473
2008-06-19 19:09:50 +00:00
Matthias Clasen
e1c47e2ee0 Use GIO for this.
* gtk/gtkrecentmanager.c (get_icon_for_mime_type): Use GIO
        for this.

svn path=/trunk/; revision=20472
2008-06-19 19:04:22 +00:00
Johan Dahlin
2a5a00646d Fix a typo in a comment
2008-06-19  Johan Dahlin  <jdahlin@async.com.br>

    * gtk/gtkprintbackend.c: Fix a typo in a comment


svn path=/trunk/; revision=20471
2008-06-19 17:42:14 +00:00
Johan Dahlin
8aa6c973d8 Cast buf to unsigned char to avoid two compiler warnings.
2008-06-19  Johan Dahlin  <jdahlin@async.com.br>

    * gtk/gtkhsv.c (paint_ring, paint_triangle):
    Cast buf to unsigned char to avoid two compiler
    warnings.


svn path=/trunk/; revision=20470
2008-06-19 14:19:34 +00:00
Johan Dahlin
ce811f7cec Do not ignore the return value of g_slist_remove. gtkstyle.c changes
2008-06-19  Johan Dahlin  <jdahlin@async.com.br>

    * gtk/gtkclist.c:
    * gtk/gtkstyle.c (gtk_style_finalize):
    Do not ignore the return value of g_slist_remove.
    gtkstyle.c changes rubberstamped by Owen.


svn path=/trunk/; revision=20469
2008-06-19 14:08:59 +00:00
Johan Dahlin
9678ce2eb9 gdk_gc_set_dashes expects a list of gint8, not guint8.
2008-06-19  Johan Dahlin  <jdahlin@async.com.br>

    * gtk/gtktreeview.c (gtk_tree_view_set_grid_lines),
    (gtk_tree_view_set_enable_tree_lines):
    gdk_gc_set_dashes expects a list of gint8, not guint8.


svn path=/trunk/; revision=20468
2008-06-19 14:07:28 +00:00
Johan Dahlin
6ef2f57450 Remove an unused variable and cast to gchar to avoid a compiler warning.
2008-06-19  Johan Dahlin  <jdahlin@async.com.br>

    * gtk/gtkmenu.c (gtk_menu_set_accel_path):
    Remove an unused variable and cast to gchar to avoid a compiler
    warning.


svn path=/trunk/; revision=20467
2008-06-19 13:43:51 +00:00
Christian Persch
c9e85e48f8 Add clipboard convenience helpers for URIs. Bug #537639.
svn path=/trunk/; revision=20465
2008-06-19 12:55:57 +00:00
Christian Persch
a58a173b48 Use gtk_drag_[dest|source]_add_[text|uri]_targets(), and simplify code. Bug #516092.
svn path=/trunk/; revision=20464
2008-06-19 12:52:40 +00:00
Christian Persch
446f41757b Use g_set_error_literal where appropriate. Bug #538640.
svn path=/trunk/; revision=20463
2008-06-19 12:47:48 +00:00
Johan Dahlin
1a30e12586 Use g_object_new instead of gtk_widget_new
2008-06-19  Johan Dahlin  <jdahlin@async.com.br>

    * demos/testpixbuf.c (new_testrgb_window):
    * gtk/gtkctree.c (gtk_ctree_new_with_titles):
    * gtk/gtkitemfactory.c (gtk_item_factory_construct),
    (gtk_item_factory_create_item):
    * gtk/gtkmenu.c (gtk_menu_set_tearoff_state):
    * gtk/gtkprogressbar.c (gtk_progress_bar_new),
    (gtk_progress_bar_new_with_adjustment):
    * gtk/gtkscrolledwindow.c (gtk_scrolled_window_new):
    * gtk/gtktext.c (gtk_text_new):
    * gtk/gtkviewport.c (gtk_viewport_new):
    * tests/simple.c (main):
    * tests/testgtk.c (create_statusbar), (create_get_image),
    (create_saved_position), (create_tooltips), (create_cursors),
    (create_display_screen), (create_progress_bar), (create_idle_test):
    * tests/testmultidisplay.c (make_selection_dialog), (main):
    * tests/testmultiscreen.c (main):
    * tests/testrgb.c (new_testrgb_window):
    Use g_object_new instead of gtk_widget_new


svn path=/trunk/; revision=20462
2008-06-19 12:25:19 +00:00
Johan Dahlin
a14ce91e91 Remove an unused prototype.
2008-06-19  Johan Dahlin  <jdahlin@async.com.br>

    * gtk/gtkcellrendererpixbuf.c: Remove an unused prototype.


svn path=/trunk/; revision=20461
2008-06-19 12:16:44 +00:00
Johan Dahlin
cafd4ffab2 Remove an unused variable.
2008-06-19  Johan Dahlin  <jdahlin@async.com.br>

    * gtk/gtklabel.c (gtk_label_set_text_with_mnemonic): Remove
    an unused variable.


svn path=/trunk/; revision=20460
2008-06-19 12:15:55 +00:00
Johan Dahlin
94e207777d Use GdkModifierType instedd of guint, to avoid a gcc warning.
2008-06-19  Johan Dahlin  <jdahlin@async.com.br>

    * gtk/gtkactiongroup.c: Use GdkModifierType instedd of guint,
    to avoid a gcc warning.


svn path=/trunk/; revision=20459
2008-06-19 12:15:07 +00:00
Olle Bergkvist
ad54e22fc7 bgo538784 - Don't change the filename entry in CREATE_FOLDER mode
2008-06-18  Olle Bergkvist <olle.bergkvist@yahoo.se>

	http://bugzilla.gnome.org/show_bug.cgi?id=538784 - Don't change
	the filename in the name entry in CREATE_FOLDER mode when changing
	folders, so that you can enter a new subfolder name, double-click on a
	folder to change to it, and close the dialog.

	* gtk/gtkfilechooserdefault.c (update_chooser_entry): Don't change
	the filename in the entry in CREATE_FOLDER mode, either.

Signed-off-by: Federico Mena Quintero <federico@novell.com>

svn path=/trunk/; revision=20457
2008-06-18 22:35:32 +00:00
Olle Bergkvist
666b544ddd bgo419737 - Don't clear filename entry in SAVE/CREATE_FOLDER modes
2008-06-18  Olle Bergkvist <olle.bergkvist@yahoo.se>

	http://bugzilla.gnome.org/show_bug.cgi?id=419737#c59 - The file
	chooser clears the filename entry in SAVE/CREATE_FOLDER modes when
	it shouldn't.

	* gtk/gtkfilechooserdefault.c (shortcuts_activate_iter): Don't
	clear the entry for CREATE_FOLDER either; this needs the same
	behavior as SAVE mode.
	(update_chooser_entry): Only clear the entry in OPEN/SELECT_FOLDER
	modes.

Signed-off-by: Federico Mena Quintero <federico@novell.com>

svn path=/trunk/; revision=20455
2008-06-18 22:23:39 +00:00
Matthias Clasen
d217ec4f90 Use standard icon names.
2008-06-18  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkfilesystem.c (_gtk_file_system_volume_render_icon):
        * gtk/gtkfilechooserbutton.c (change_icon_theme):
        (model_add_bookmarks):
        (model_update_current_folder):
        * gtk/gtkfilechooserdefault.c (shortcuts_insert_file):
        (shortcuts_reload_icons): Use standard icon names.


svn path=/trunk/; revision=20454
2008-06-18 16:22:42 +00:00
Matthias Clasen
ad7fccfd96 Add some more standard icon names
svn path=/trunk/; revision=20453
2008-06-18 16:14:59 +00:00
Michael Natterer
09e8017c91 set the maximum of the "year" property to G_MAXINT >> 8 instead of
2008-06-18  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkcalendar.c: set the maximum of the "year" property to
	G_MAXINT >> 8 instead of G_MAXINT to fix overflows in internal
	calculations which in turn caused writing beyond the boundaries of
	the calendar->day_month[] and day[] arrays which in turn caused a
	SEGV. This limits the lifetime of GTK+ to the year 8,388,608 ;)


svn path=/trunk/; revision=20452
2008-06-18 15:42:27 +00:00
Michael Natterer
d5565f5b63 tests/Makefile.am tests/autotestfilechooser.c tests/buildertest.c
2008-06-18  Michael Natterer  <mitch@imendio.com>

	* tests/Makefile.am
	* tests/autotestfilechooser.c
	* tests/buildertest.c
	* tests/defaultvaluetest.c
	* tests/floatingtest.c
	* tests/objecttests.c
	* tests/pixbuf-init.c
	* tests/textbuffertest.c: remove unit tests here...

	* gtk/tests/Makefile.am
	* gtk/tests/builder.c
	* gtk/tests/defaultvalue.c
	* gtk/tests/filechooser.c
	* gtk/tests/floating.c
	* gtk/tests/object.c
	* gtk/tests/pixbuf-init.c
	* gtk/tests/textbuffer.c: ...and add them here.


svn path=/trunk/; revision=20450
2008-06-18 13:29:02 +00:00
Michael Natterer
67c6c28fe0 deprecate GdkDestroyNotify.
2008-06-18  Michael Natterer  <mitch@imendio.com>

	* gdk/gdk.h: deprecate GdkDestroyNotify.

	* gdk/gdkevents.c
	* gdk/gdktypes.h
	* gdk/x11/gdkevents-x11.c
	* gtk/gtkmain.c: s/GdkDestroyNotify/GDestroyNotify/g.


svn path=/trunk/; revision=20449
2008-06-18 09:39:24 +00:00
Michael Natterer
fe8a946e87 deprecate GtkDestroyNotify.
2008-06-18  Michael Natterer  <mitch@imendio.com>

	* gtk/gtktypeutils.h: deprecate GtkDestroyNotify.

	* gtk/gtkactiongroup.[ch]
	* gtk/gtkcombobox.[ch]
	* gtk/gtkcontainer.[ch]
	* gtk/gtkliststore.[ch]
	* gtk/gtkmain.[ch]
	* gtk/gtkmenu.c
	* gtk/gtkstock.[ch]
	* gtk/gtktreedatalist.[ch]
	* gtk/gtktreemodelfilter.[ch]
	* gtk/gtktreemodelsort.[ch]
	* gtk/gtktreeprivate.h
	* gtk/gtktreeselection.[ch]
	* gtk/gtktreesortable.[ch]
	* gtk/gtktreestore.[ch]
	* gtk/gtktreeview.[ch]
	* gtk/gtktreeviewcolumn.[ch]: s/GtkDestroyNotify/GDestroyNotify/g.


svn path=/trunk/; revision=20448
2008-06-18 09:12:32 +00:00
Michael Natterer
060948a43b some more undeprecation.
2008-06-18  Michael Natterer  <mitch@imendio.com>

	* tests/testgtk.c: some more undeprecation.


svn path=/trunk/; revision=20447
2008-06-18 08:51:55 +00:00
Michael Natterer
9d21042702 deprecate GtkType, GtkSignalFunc and GTK_SIGNAL_FUNC().
2008-06-18  Michael Natterer  <mitch@imendio.com>

	* gtk/gtktypeutils.h: deprecate GtkType, GtkSignalFunc and
	GTK_SIGNAL_FUNC().

	(struct GtkArg): s/GtkType/GType/ and s/GtkSignalFunc/GCallback/


svn path=/trunk/; revision=20446
2008-06-18 08:26:53 +00:00
Michael Natterer
73800758fd deprecate gtk_type_class().
2008-06-18  Michael Natterer  <mitch@imendio.com>

	* gtk/gtktypeutils.[ch]: deprecate gtk_type_class().

	* gtk/gtk.symbols: changed accordingly.

	* gtk/gtksettings.c (gtk_settings_install_property)
	(gtk_settings_install_property_parser): get rid of using
	gtk_type_class() by keeping a static reference to GtkSettingsClass
	around in both functions and passing that pointer on to
	settings_install_property_parser().

	* tests/testgtk.c: use g_type_class_ref()/unref() instead of
	gtk_type_class().

	* gtk/gtkobject.c: #undef GTK_DISABLE_DEPRECATED around including
	gtktypeutils.h.


svn path=/trunk/; revision=20444
2008-06-18 07:00:46 +00:00
Johan Dahlin
78c88e77d6 Add deprecated version and change the deprecation markup used by ref/unref
2008-06-17  Johan Dahlin  <jdahlin@async.com.br>

    * gtk/gtkstyle.c: Add deprecated version
    and change the deprecation markup used by ref/unref 


svn path=/trunk/; revision=20443
2008-06-18 01:42:13 +00:00
Johan Dahlin
7c45f6f5fc Add deprecated versions and fixup markup.
2008-06-17  Johan Dahlin  <jdahlin@async.com.br>

    * gtk/gtkwidget.c: 
    Add deprecated versions and fixup markup.


svn path=/trunk/; revision=20442
2008-06-18 01:31:22 +00:00
Johan Dahlin
12934f6841 Don't markup deprecated in italics.
2008-06-17  Johan Dahlin  <jdahlin@async.com.br>

    * gtk/gtkaboutdialog.c:
    * gtk/gtkbutton.c (gtk_button_class_init):
    Don't markup deprecated in italics.


svn path=/trunk/; revision=20441
2008-06-18 01:19:53 +00:00
Carlos Garnacho
6bb24bf6c8 Remove GtkFileSystemError, use GtkFileChooserError instead. (#538378,
2008-06-18  Carlos Garnacho  <carlos@imendio.com>

        * gtk/gtkfilesystem.[ch]: Remove GtkFileSystemError, use
        GtkFileChooserError instead. (#538378, patch by Matthias Clasen)

svn path=/trunk/; revision=20440
2008-06-17 23:33:48 +00:00
Michael Natterer
5bca232e78 undeprecate.
2008-06-17  Michael Natterer  <mitch@imendio.com>

	* examples/gtkdial/gtkdial.[ch]: undeprecate.


svn path=/trunk/; revision=20439
2008-06-17 21:38:16 +00:00
Michael Natterer
07bf0bdb94 remove bogus extern declaration of non-existing function
2008-06-17  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkobject.c: remove bogus extern declaration of non-existing
	function gtk_object_init_type().


svn path=/trunk/; revision=20438
2008-06-17 21:34:15 +00:00
Michael Natterer
554e1eec70 s/GtkType/GType/
2008-06-17  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkbindings.c (gtk_binding_entry_add_signal):
	* gtk/gtktoolbutton.c (gtk_tool_button_get_type): 
	* examples/gtkdial/gtkdial.h (gtk_dial_get_type): 
	s/GtkType/GType/


svn path=/trunk/; revision=20436
2008-06-17 20:43:07 +00:00
Tor Lillqvist
293ed565ee Need to do the GTK_DISABLE_DEPRECATED #undef/#define dance here, too,
2008-06-17  Tor Lillqvist  <tml@novell.com>

	* gtk/gtknotebook.c: Need to do the GTK_DISABLE_DEPRECATED
	#undef/#define dance here, too, because
	gtk_notebook_set_group_id() is deprecated but used here before it
	is defined, and gcc complains about conflicting type from the
	implicit int declaration when it sees the actual void definition.


svn path=/trunk/; revision=20435
2008-06-17 19:29:22 +00:00
Tor Lillqvist
7ff875bb1a Don't use the deprecated GTK_* GtkType macros.
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
2008-06-17 19:11:54 +00:00
Michael Natterer
bd69ea0a7c build with GTK_DISABLE_DEPRECATED.
2008-06-17  Michael Natterer  <mitch@imendio.com>

	* gtk/Makefile.am: build with GTK_DISABLE_DEPRECATED.

	* gtk/gtkclist.c
	* gtk/gtkcombo.c
	* gtk/gtkctree.c
	* gtk/gtklist.c
	* gtk/gtklistitem.c
	* gtk/gtkoldeditable.c
	* gtk/gtkpixmap.c
	* gtk/gtktext.c
	* gtk/gtktipsquery.c
	* gtk/gtktree.c
	* gtk/gtktreeitem.c: whenever we #undef GTK_DISABLE_DEPRECATED and
	actually use deprecated symbols (not just types or macros),
	#define it again before #include "gtkalias.h" so the symbols match
	and the beast links.


svn path=/trunk/; revision=20433
2008-06-17 16:03:46 +00:00
Paolo Borelli
96d61db436 more tests for GtkRecentManager.
2008-06-17  Paolo Borelli  <pborelli@katamail.com>

	* gtk/tests/recentmanager.c: more tests for GtkRecentManager.

svn path=/trunk/; revision=20431
2008-06-17 15:46:40 +00:00
Michael Natterer
0b9ee4a431 modules/input/gtkimcontextmultipress.h modules/input/gtkimcontextthai.h
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
2008-06-17 14:58:10 +00:00
Michael Natterer
e96a880621 really move the GtkType typedef to an undeprecated section.
2008-06-17  Michael Natterer  <mitch@imendio.com>

	* gtk/gtktypeutils.h: really move the GtkType typedef to an
	undeprecated section.


svn path=/trunk/; revision=20429
2008-06-17 14:34:59 +00:00
Michael Natterer
8676c45d5c deprecate GTK_CHECK_CAST, GTK_CHECK_CLASS_CAST, GTK_CHECK_GET_CLASS,
2008-06-17  Michael Natterer  <mitch@imendio.com>

	* gtk/gtktypeutils.h: deprecate GTK_CHECK_CAST,	GTK_CHECK_CLASS_CAST,
	GTK_CHECK_GET_CLASS, GTK_CHECK_TYPE and GTK_CHECK_CLASS_TYPE.
	Move the GtkType typedef to an undeprecated section.


svn path=/trunk/; revision=20428
2008-06-17 14:17:29 +00:00
Michael Natterer
ea80bf6097 use G_TYPE macros for type checking instead of GTK_CHECK ones because it's
2008-06-17  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkprogress.h: use G_TYPE macros for type checking instead
	of GTK_CHECK ones because it's the parent class of an undeprecated
	class and the GTK_CHECK stuff will soon be deprecated.


svn path=/trunk/; revision=20427
2008-06-17 14:14:06 +00:00
Michael Natterer
d6ebf18108 gtk/gtkfilesel.c gtk/gtkinputdialog.c gtk/gtkmenutoolbutton.c
2008-06-17  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkfilesel.c
	* gtk/gtkinputdialog.c
	* gtk/gtkmenutoolbutton.c
	* gtk/gtkoptionmenu.c
	* gtk/gtktoolitem.c
	* gtk/gtktooltips.c: add or move around
	#undef GTK_DISABLE_DEPRECATED so it's possible to build without
	deprecated stuff again (with the minor glitch that it doesn't
	link ;) but at least it's a tool to keep the code clean).


svn path=/trunk/; revision=20426
2008-06-17 14:11:26 +00:00
Emmanuele Bassi
21284ce95f Fix dumb typo in the previous commit.
2008-06-17  Emmanuele Bassi  <ebassi@gnome.org>

	* gtk/gtkrecentmanager.c:
	(gtk_recent_manager_remove_item): Fix dumb typo in the previous
	commit.

svn path=/trunk/; revision=20425
2008-06-17 13:46:48 +00:00
Emmanuele Bassi
8bab0d7d03 Increase the consistency of the errors returned by GtkRecentManager.
2008-06-17  Emmanuele Bassi  <ebassi@gnome.org>

	* gtk/gtkrecentmanager.c:
	(gtk_recent_manager_remove_item),
	(gtk_recent_manager_move_item): Increase the consistency of the
	errors returned by GtkRecentManager. (Paolo Borelli)

svn path=/trunk/; revision=20424
2008-06-17 13:42:53 +00:00
Paolo Borelli
72a9cc895a add some unit tests for GtkRecentManager.
2008-06-17  Paolo Borelli  <pborelli@katamail.com>

	* gtk/tests/recentmanager.c: add some unit tests for GtkRecentManager.


svn path=/trunk/; revision=20423
2008-06-17 13:37:59 +00:00
Emmanuele Bassi
88c469420d Consistently use the same error when removing a URI from an empty
2008-06-17  Emmanuele Bassi  <ebassi@gnome.org>

	* gtk/gtkrecentmanager.c:
	(gtk_recent_manager_remove_item): Consistently use the same
	error when removing a URI from an empty GtkRecentManager.

svn path=/trunk/; revision=20422
2008-06-17 13:15:45 +00:00
Michael Natterer
40b6173aa3 remove static integer variables which hold the number of members in
2008-06-17  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkfilechooserdefault.c: remove static integer variables
	which hold the number of members in GtkTargetEntry arrays and use
	G_N_ELEMENTS() directly instead.


svn path=/trunk/; revision=20421
2008-06-17 12:54:16 +00:00
Michael Natterer
e8b84723ca move some deprecated symbols into #ifndef GTK_DISABLE_DEPRECATED.
2008-06-17  Michael Natterer  <mitch@imendio.com>

	* gtk/gtk.symbols: move some deprecated symbols into
	#ifndef GTK_DISABLE_DEPRECATED.


svn path=/trunk/; revision=20420
2008-06-17 12:47:57 +00:00
Emmanuele Bassi
ea51ac13f8 Remove the GtkRecentManager screen dance, as it has been deprecated since
2008-06-17  Emmanuele Bassi  <ebassi@gnome.org>

	* gtk/gtkfilechooserdefault.c:
	(gtk_file_chooser_default_init),
	(gtk_file_chooser_default_constructor),
	(gtk_file_chooser_default_screen_changed),
	(recent_start_loading): Remove the GtkRecentManager screen
	dance, as it has been deprecated since 2.12. Now we get the
	GtkRecentManager singleton whewn we create the FileChooserDefault
	instance. (Michael Natterer)

svn path=/trunk/; revision=20419
2008-06-17 12:46:12 +00:00
Michael Natterer
4d4e558efd cast menu's toplevel to GtkWindow when passing to
2008-06-17  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkoptionmenu.c (gtk_option_menu_position): cast menu's
	toplevel to GtkWindow when passing to gtk_window_set_type_hint().


svn path=/trunk/; revision=20417
2008-06-17 11:27:37 +00:00
Michael Natterer
86f27564bd #undef GTK_DISABLE_DEPRECATED, clean up includes a bit.
2008-06-17  Michael Natterer  <mitch@imendio.com>

	* gtk/gtktestutils.c: #undef GTK_DISABLE_DEPRECATED, clean up
	includes a bit.

	* gtk/gtkuimanager.c: #include "gtkwindow.h", it was only pulled
	in via deprecated headers.


svn path=/trunk/; revision=20416
2008-06-17 09:58:09 +00:00
Tor Lillqvist
6f368a5427 Justify my last entry.
svn path=/trunk/; revision=20415
2008-06-17 08:51:27 +00:00
Matthias Clasen
080253c257 Protect against XKB being stupid. Reported by Pedro Villavicencio.
* gdk/x11/gdkkeys-x11.c (_gdk_keymap_key_is_modifier): Protect
        against XKB being stupid. Reported by Pedro Villavicencio.



svn path=/trunk/; revision=20413
2008-06-17 02:11:47 +00:00
Michael Natterer
9dd2aa7edc use g_object_ref() and unref() instead of the deprecated gtk_widget_ref()
2008-06-17  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkplug.c (_gtk_plug_send_delete_event): use g_object_ref()
	and unref() instead of the deprecated gtk_widget_ref() and unref().


svn path=/trunk/; revision=20411
2008-06-16 22:47:50 +00:00
Michael Natterer
a09bebd5b9 removed function drag_begin_cb(), which was in svn since 2.8 but was never
2008-06-16  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkentry.c: removed function drag_begin_cb(), which was in
	svn since 2.8 but was never used.


svn path=/trunk/; revision=20409
2008-06-16 20:10:17 +00:00
Michael Natterer
f5f865d43c use gtk_binding_entry_clear() instead of gtk_binding_entry_add() (the
2008-06-16  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkbindings.c (_gtk_binding_entry_add_signall): use
	gtk_binding_entry_clear() instead of gtk_binding_entry_add()
	(the former is deprecated and #defined to gtk_binding_entry_clear)


svn path=/trunk/; revision=20408
2008-06-16 20:02:33 +00:00
Michael Natterer
422a4dd1d2 don't include the deprecated (and unused) "gtkmarshal.h".
2008-06-16  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkprintoperation-unix.c: don't include the deprecated (and
	unused) "gtkmarshal.h".


svn path=/trunk/; revision=20407
2008-06-16 19:19:31 +00:00
Behdad Esfahbod
2a0358f6ce Bug 538182 – pango_cairo_context_update_layout is not noop after
2008-06-16  Behdad Esfahbod  <behdad@gnome.org>

        Bug 538182 – pango_cairo_context_update_layout is not noop after
        gtk_widget_create_pango_layout

        * gtk/gtksettings.c (settings_update_font_options): Make sure all
        font option fields are set to non-DEFAULT values.


svn path=/trunk/; revision=20406
2008-06-16 18:53:17 +00:00
Michael Natterer
ff5ba96c26 gtk/gtkfontsel.c gtk/gtkrc.c gtk/gtkstyle.c use g_object_unref() instead
2008-06-16  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkfontsel.c
	* gtk/gtkrc.c
	* gtk/gtkstyle.c
	* gtk/gtkwidget.c: use g_object_unref() instead of the deprecated
	gtk_rc_style_unref().


svn path=/trunk/; revision=20405
2008-06-16 16:53:39 +00:00
Michael Natterer
37c28957fe use _gtk_marshal_BOOLEAN__VOID instead of the deprecated
2008-06-16  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkcombobox.c (gtk_combo_box_class_init): use
	_gtk_marshal_BOOLEAN__VOID instead of the deprecated
	gtk_marshal_BOOLEAN__VOID.


svn path=/trunk/; revision=20404
2008-06-16 16:44:19 +00:00
Michael Natterer
0329e41742 gtk/gtkcellrendereraccel.h gtk/gtkiconview.h use G_TYPE macros instead of
2008-06-16  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkcellrendereraccel.h
	* gtk/gtkiconview.h
	* gtk/gtkobject.h: use G_TYPE macros instead of the old GTK_CHECK
	macros for type checking.

	(gtk_object_get_type): change prototype to return GType instead of
	GtkType.


svn path=/trunk/; revision=20403
2008-06-16 16:26:49 +00:00
Tor Lillqvist
afe9dcfca1 Increase verbiage.
svn path=/trunk/; revision=20402
2008-06-16 13:46:20 +00:00
Tor Lillqvist
5b14804b88 Typo.
svn path=/trunk/; revision=20401
2008-06-16 13:44:23 +00:00
Matthias Clasen
eea4913dd7 Add some symlinks to the builtin icon theme
svn path=/trunk/; revision=20399
2008-06-16 13:38:58 +00:00
Tor Lillqvist
effd6886f6 Bug 538362 - Get Win32 icons back in the file chooser
2008-06-16  Tor Lillqvist  <tml@novell.com>

	Bug 538362 - Get Win32 icons back in the file chooser

	* gtk/gtkicontheme.c (choose_icon): Check if the icon name is a
	reference to an icon resource in a DLL or .EXE as in the
	Registry. In that case, extract the icon and convert to a
	GdkPixbuf. Patch by Hans Breuer.


svn path=/trunk/; revision=20398
2008-06-16 13:27:46 +00:00
Matthias Clasen
4d4722ca2f Add icons that are used by GtkVolumeButton
svn path=/trunk/; revision=20397
2008-06-16 12:31:20 +00:00
Michael Natterer
5337cdbb10 remove GtkTooltips member from the GtkFileChooserDefault struct.
2008-06-16  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkfilechooserprivate.h: remove GtkTooltips member from the
	GtkFileChooserDefault struct.

	* gtk/gtkfilechooserdefault.c: don't allocate and free the
	GtkTooltips.


svn path=/trunk/; revision=20396
2008-06-16 11:49:23 +00:00
Carlos Garnacho
6afb455e5a Bug 538519 – GtkCellRendererPixbuf doesn't allow unsetting the icon
2008-06-16  Carlos Garnacho  <carlos@imendio.com>

        Bug 538519 – GtkCellRendererPixbuf doesn't allow unsetting the icon
        anymore

        * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_set_property):
        Allow again setting any of the properties to render an image back to
        NULL.

svn path=/trunk/; revision=20395
2008-06-16 10:03:16 +00:00
Matthias Clasen
0fc1f3aeed When pixel-size is specified, use GTK_ICON_LOOKUP_FORCE_SIZE when loading
2008-06-15  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkimage.c: When pixel-size is specified, use
        GTK_ICON_LOOKUP_FORCE_SIZE when loading themed icons.


svn path=/trunk/; revision=20394
2008-06-16 02:05:16 +00:00
Carlos Garnacho
bfe00f9b9b Return full path here as expected, not just the basename.
2008-06-15  Carlos Garnacho  <carlos@imendio.com>

        * gtk/gtkfilechooser.c (gtk_file_chooser_get_filename): Return full
        path here as expected, not just the basename.

        * gtk/gtkfilechooserdefault.c
        (gtk_file_chooser_default_update_current_folder): Ensure that we keep
        a reference to file, since it can be destroyed when switching back to
        browse mode.

        * gtk/gtkfilesystem.c (get_icon_for_special_directory): Removed, home
        and desktop directories are dealt by the filechooser as normal files,
        not volumes, so the icon for these is handled directly by GIO.
        (_gtk_file_system_volume_render_icon): Update caller.

svn path=/trunk/; revision=20393
2008-06-15 23:32:11 +00:00
Matthias Clasen
81d87d7b13 Add a gicon property
svn path=/trunk/; revision=20391
2008-06-15 04:54:20 +00:00
Cody Russell
472ea19b4b Initialize hwnd to NULL. This fixes OpenClipboard() failure and, according
2008-06-14  Cody Russell  <bratsche@gnome.org>

        * gdk/win32/gdkselection-win32.c (gdk_win32_selection_add_targets):

        Initialize hwnd to NULL.  This fixes OpenClipboard() failure and,
        according to MSDN docs, associates the open clipboard with the
        current task.  (#378158, reported by Andreas Köhler)


svn path=/trunk/; revision=20388
2008-06-15 00:00:49 +00:00
Matthias Clasen
d4ce1fa262 Bump version
svn path=/trunk/; revision=20387
2008-06-14 01:24:08 +00:00
Matthias Clasen
975b1c6ff6 2.13.3
svn path=/trunk/; revision=20385
2008-06-14 01:21:31 +00:00
Matthias Clasen
b8edde55e2 Add some docs
svn path=/trunk/; revision=20381
2008-06-13 17:40:17 +00:00
Matthias Clasen
d0b1330d92 Fix doc typos
svn path=/trunk/; revision=20380
2008-06-13 17:20:55 +00:00
Matthias Clasen
a434b6bf94 Avoid PLT entries
svn path=/trunk/; revision=20379
2008-06-13 17:02:26 +00:00
Matthias Clasen
f9c7a4bbd0 Really make GtkFileSystem private by _-prefixing all functions.
* gtk/gtkfilechooserbutton.c:
        * gtk/gtkfilechooserdefault.c:
        * gtk/gtkfilechooserentry.c:
        * gtk/gtkfilesystem.c:
        * gtk/gtkfilesystem.h:
        * gtk/gtkfilesystemmodel.c:
        * gtk/gtkpathbar.c: Really make GtkFileSystem private
        by _-prefixing all functions.


svn path=/trunk/; revision=20378
2008-06-13 16:47:41 +00:00
Matthias Clasen
8845b9f01b Updates
svn path=/trunk/; revision=20377
2008-06-13 15:00:36 +00:00
Matthias Clasen
8f8400d1cd Updates`
svn path=/trunk/; revision=20376
2008-06-13 14:54:46 +00:00
Michael Natterer
d0c713bfee gtk/gtkcellrendereraccel.h gtk/gtkfilechooser.h gtk/gtkfilechooserdialog.h
2008-06-13  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkcellrendereraccel.h
	* gtk/gtkfilechooser.h
	* gtk/gtkfilechooserdialog.h
	* gtk/gtkfilechooserwidget.h
	* gtk/gtkmenutoolbutton.h
	* gtk/gtkpagesetup.h
	* gtk/gtkpapersize.h
	* gtk/gtkprintcontext.h
	* gtk/gtkprintoperation.h
	* gtk/gtkprintoperationpreview.h
	* gtk/gtkprintsettings.h
	* gtk/gtkradiotoolbutton.h
	* gtk/gtkrecentchooser.h
	* gtk/gtkrecentchooserdialog.h
	* gtk/gtkrecentchoosermenu.h
	* gtk/gtkrecentchooserwidget.h
	* gtk/gtkseparatortoolitem.h
	* gtk/gtkshow.h
	* gtk/gtktoggletoolbutton.h
	* gtk/gtktoolbar.h
	* gtk/gtktoolbutton.h
	* gtk/gtktooltip.h: #include <gtk/gtkfoo.h> instead of
	"gtk/gtkfoo.h" or even just "gtkfoo.h" in public headers.


svn path=/trunk/; revision=20375
2008-06-13 14:26:44 +00:00
Michael Natterer
5036306b1d remove double inclusion of <gtk/gtktexttag.h>.
2008-06-13  Michael Natterer  <mitch@imendio.com>

	* gtk/gtktexttagtable.h: remove double inclusion of
	<gtk/gtktexttag.h>.


svn path=/trunk/; revision=20374
2008-06-13 14:04:52 +00:00
Michael Natterer
00bdd1fcce change type of local "image" variable from GtkImage to GtkWidget to fix
2008-06-13  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkaction.c (gtk_action_set_short_label): change type of
	local "image" variable from GtkImage to GtkWidget to fix warning.


svn path=/trunk/; revision=20373
2008-06-13 13:40:29 +00:00
Michael Natterer
6aaea97378 cast menu's toplevel to GtkWindow when passing to
2008-06-13  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkcombobox.c (gtk_combo_box_menu_position): cast menu's
	toplevel to GtkWindow when passing to gtk_window_set_type_hint().


svn path=/trunk/; revision=20372
2008-06-13 13:30:38 +00:00
Michael Natterer
a40901c115 silently skip unknown attributes instead of bailing out with an error in
2008-06-13  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkuimanager.c (start_element_handler): silently skip
	unknown attributes instead of bailing out with an error in order
	to be compatible with possible future attribute names.

	This is related to the discussion in bug #516425 but actually
	needed for any kind of XML format extension.


svn path=/trunk/; revision=20371
2008-06-13 10:44:34 +00:00
Hans Breuer
8677ed959d check surface status after ceating a pdf. Avoids crashing when the target
2008-05-23  Hans Breuer  <hans@breuer.org>

	* gtk/gtkprintoperation.c : check surface status after ceating a pdf.
	Avoids crashing when the target can not be written, bug #537685

	* gdk/win32/gdkdisplay-win32.c : runtime linking of ProcessIdToSessionId

	* gtk/gtkfilesystem.c : variadic macros are not supported with c89 and
	it was not needed here anyway.


svn path=/trunk/; revision=20370
2008-06-13 08:36:26 +00:00
Matthias Clasen
6302384106 Fix frame size allocation
svn path=/trunk/; revision=20368
2008-06-13 04:56:25 +00:00
Matthias Clasen
809bc59c58 Open the default display even when gtk_parse_args() has already been
* gtk/gtkmain.c (gtk_init_with_args): Open the default display
        even when gtk_parse_args() has already been called.
        Patch by Mathias Hasselmann

svn path=/trunk/; revision=20366
2008-06-13 03:24:37 +00:00
Matthias Clasen
1dc476954f Improve appearance of "both vertical" mode toolbuttons. Patch by Peter
* gtk/gtktoolbutton.c (gtk_tool_button_construct_contents):
        Improve appearance of "both vertical" mode toolbuttons.
        Patch by Peter Johanson


svn path=/trunk/; revision=20365
2008-06-13 03:21:09 +00:00
Matthias Clasen
acb1e5323f A11y descriptions for GtkVolumeButton
svn path=/trunk/; revision=20364
2008-06-13 03:17:51 +00:00
Matthias Clasen
3fb401be61 Set the image of a button proxy to the "icon-name" property.
* gtk/gtkaction.c (connect_proxy): Set the image of a button
        proxy to the "icon-name" property.

        (gtk_action_set_short_label):  If the "image" property is set
        on the button proxy, also tries to set the "label" property on
        the GtkButton.


svn path=/trunk/; revision=20363
2008-06-13 01:26:46 +00:00
Michael Natterer
128a478b9b gtk/gtkmain.c don't #include <libintl.h>, it's pulled in via "gtkintl.h"
2008-06-12  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkmain.c
	* gtk/gtktrayicon-x11.c: don't #include <libintl.h>, it's pulled
	in via "gtkintl.h" from <glib/gi18n-lib.h>.


svn path=/trunk/; revision=20362
2008-06-12 13:53:55 +00:00
Matthias Clasen
e242d89ed3 Really fix printer URI construction
svn path=/trunk/; revision=20360
2008-06-12 13:03:35 +00:00
Michael Natterer
dcfefba203 limit the number of displayed items by the actual screen height instead of
2008-06-12  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
	limit the number of displayed items by the actual screen height
	instead of some arbitrary value (Bug #408154, Xan Lopez and
	Christian Dywan).


svn path=/trunk/; revision=20359
2008-06-12 11:17:16 +00:00
Behdad Esfahbod
d76e3d552e Bug 503071 – Application direction changes to right to left even if
2008-06-11  Behdad Esfahbod  <behdad@gnome.org>

        Bug 503071 – Application direction changes to right to left even if
        theres no translation

        * configure.in: Bump glib requirement.

        * gtk/gtkaccellabel.c
        (_gtk_accel_label_class_get_accelerator_label):
        * gtk/gtkactiongroup.c (dgettext_swapped):
        * gtk/gtkbuilder.c (gtk_builder_class_init):
        * gtk/gtkbuilderparser.c (_dpgettext),
        (_gtk_builder_parser_translate):
        * gtk/gtkfilechooserdefault.c (list_size_data_func):
        * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
        * gtk/gtkintl.h:
        * gtk/gtkmain.c (setlocale_initialization),
        (do_pre_parse_initialization), (gettext_initialization):
        * gtk/gtkstock.c (gtk_stock_lookup), (sgettext_swapped):
        Use g_dgettext() and g_dngettext().


svn path=/trunk/; revision=20358
2008-06-11 23:40:35 +00:00
Matthias Clasen
58a6b6c234 Updates
svn path=/trunk/; revision=20354
2008-06-11 18:45:07 +00:00
Tor Lillqvist
b981e4ff37 As we don't support Win9x anyway, we can use ProcessIdToSessionId()
2008-06-11  Tor Lillqvist  <tml@novell.com>

	* gdk/win32/gdkdisplay-win32.c (gdk_display_get_name): As we don't
	support Win9x anyway, we can use ProcessIdToSessionId()
	unconditionally.


svn path=/trunk/; revision=20353
2008-06-11 16:05:28 +00:00
Michael Natterer
6f25f771c5 fix local prototype of _gtk_file_chooser_label_for_file() (takes a GFile,
2008-06-11  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkfilechooserbutton.c: fix local prototype of
	_gtk_file_chooser_label_for_file() (takes a GFile, not const gchar*).


svn path=/trunk/; revision=20352
2008-06-11 15:14:26 +00:00
Matthias Clasen
5f8af6d910 Bug 536765 – GtkComboBox should set COMBO type hint for its menu
* gtk/gtkoptionmenu.c:
        * gtk/gtkcombobox.c: Set the window type hint on popups.
        Patch by Danny Baumann


svn path=/trunk/; revision=20351
2008-06-11 03:36:32 +00:00
Matthias Clasen
3dbfc1935f Add standard icon names, and also fall back to builtin gtk stock icons.
* gtk/gtkfilesystem.c (get_icon_for_special_directory):
        (gtk_file_system_volume_render_icon): Add standard icon names,
        and also fall back to builtin gtk stock icons.


svn path=/trunk/; revision=20350
2008-06-11 03:17:55 +00:00
Christian Persch
7bc5628bbf Make gtk_tree_view_enable_model_drag_[source|dest] compatible with
* gtk/gtktreeview.c: (destroy_info), (set_destination_row),
	(gtk_tree_view_maybe_begin_dragging_row),
	(gtk_tree_view_set_reorderable),
	(gtk_tree_view_enable_model_drag_source),
	(gtk_tree_view_enable_model_drag_dest),
	(gtk_tree_view_unset_rows_drag_source),
	(gtk_tree_view_unset_rows_drag_dest): Make
	gtk_tree_view_enable_model_drag_[source|dest] compatible with
	gtk_drag_[source|dest]_add_*_targets. Bug #506853.

svn path=/trunk/; revision=20349
2008-06-10 12:33:22 +00:00
Christian Persch
65c22a11ed Use GSlice. Patch from bug #506853.
* gtk/gtktreeview.c: (gtk_tree_view_button_release_drag_column),
	(dest_row_free), (set_dest_row), (ensure_info),
	(gtk_tree_view_remove), (gtk_tree_view_put),
	(gtk_tree_view_set_column_drag_info): Use GSlice. Patch from
	bug #506853.

svn path=/trunk/; revision=20348
2008-06-10 12:28:57 +00:00
Paolo Borelli
b4791bb2ff gtk/gtkfilechooser.c (gtk_file_chooser_set_current_folder_uri) use
2008-06-10  Paolo Borelli  <pborelli@katamail.com>

	* gtk/gtkfilechooser.c (gtk_file_chooser_set_current_folder_uri)
	use g_file_new_for_uri.


svn path=/trunk/; revision=20347
2008-06-10 12:21:58 +00:00
Paolo Borelli
9d73677b5a do not leak the GIcon.
2008-06-10  Paolo Borelli  <pborelli@katamail.com>

	* gtk/gtkfilesystem.c (gtk_file_system_volume_render_icon): do not
	leak the GIcon.


svn path=/trunk/; revision=20346
2008-06-10 11:50:43 +00:00
Carlos Garnacho
afb46bc382 removed local xdgmime copy as Matthias suggested in bug #520874, comment
2008-06-10  Carlos Garnacho  <carlos@imendio.com>

        * configure.in:
        * gtk/Makefile.am:
        * gtk/xdgmime: removed local xdgmime copy as Matthias suggested in bug
        #520874, comment #8. It's no longer used directly by GTK+.

svn path=/trunk/; revision=20343
2008-06-10 00:39:45 +00:00
Carlos Garnacho
640d68778a Bug 520874 - Should use gio directly.
2008-06-10  Carlos Garnacho  <carlos@imendio.com>

        Bug 520874 - Should use gio directly.

        * gtk/gtkfilesystem.[ch]: Turn into a private object, which mostly
        provides helper functions for asynchronous calls, folder abstraction
        and uniform handling of volumes/drives/mounts.

        * gtk/gtkfilesystemwin32.[ch]:
        * gtk/gtkfilesystemunix.[ch]: Removed, these are no longer required.

        * gtk/gtkfilechooser.c:
        * gtk/gtkfilechooserbutton.c:
        * gtk/gtkfilechooserdefault.c:
        * gtk/gtkfilechooserentry.[ch]:
        * gtk/gtkfilechooserprivate.h:
        * gtk/gtkfilechooserutils.c:
        * gtk/gtkfilesystemmodel.[ch]:
        * gtk/gtkpathbar.[ch]: Use GIO internally. Adapt to GtkFileSystem API.
        Do not load filesystem implementation modules.

        * gtk/Makefile.am:
        * gtk/gtk.symbols: the gtkfilesystem.h private header isn't installed
        anymore, nor the unix/win32 implementations.

        * README.in: Add blurb about these changes.

svn path=/trunk/; revision=20342
2008-06-10 00:39:35 +00:00
Christian Persch
d717e77c1d Add bug ref
svn path=/trunk/; revision=20341
2008-06-09 14:37:27 +00:00
Kristian Rietveld
0e3d5fb732 Bug 526987 - GtkCellRendererCombo should allow model to be NULL
2008-06-09  Kristian Rietveld  <kris@gtk.org>

	Bug 526987 - GtkCellRendererCombo should allow model to be NULL

	* gtk/gtkcellrenderercombo.c (gtk_cell_renderer_combo_class_init),
	(gtk_cell_renderer_combo_set_property),
	(gtk_cell_renderer_combo_editing_done),
	(gtk_cell_renderer_combo_start_editing): introduce private class
	struct, allow model to be set to NULL.


svn path=/trunk/; revision=20340
2008-06-08 22:25:57 +00:00
Björn Lindqvist
6dfbe3b4f8 Bug 131920 – gtkNotebook sends incorrect switch_page value
2008-06-08  Björn Lindqvist  <bjourne@gmail.com>

	Bug 131920 – gtkNotebook sends incorrect switch_page value

	* gtk/gtknotebook.c (gtk_notebook_real_remove): Make switch-page
	signal send correct page index when page index 0 is active and
	removed. (#131920, Samuel Fogh)

svn path=/trunk/; revision=20339
2008-06-08 21:41:16 +00:00
Kristian Rietveld
cd4a1fc680 Bug 536730 - memory corruption in gtktreeview
2008-06-08  Kristian Rietveld  <kris@gtk.org>

	Bug 536730 - memory corruption in gtktreeview

	* gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): first
	remove the expand/collapse timeout and node, then free the rbtree.


svn path=/trunk/; revision=20334
2008-06-08 12:53:19 +00:00
Kristian Rietveld
898fe0c82f Bug 488119 - critical warnings from gtk_tree_view_get_visible_range
2008-06-08  Kristian Rietveld  <kris@gtk.org>

	Bug 488119 - critical warnings from gtk_tree_view_get_visible_range

	* gtk/gtktreeview.c (gtk_tree_view_get_visible_range): only try to
	find path if we found valid nodes, return FALSE otherwise.  (Patch
	from Matthias Clasen).


svn path=/trunk/; revision=20333
2008-06-08 12:47:15 +00:00
Matthias Clasen
e0ca75c120 Replace uses of xdgmime with g_content_type.
2008-06-08  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkrecentmanager.c:
        * gtk/gtkrecentfilter.c:
        * gtk/gtkfilefilter.c: Replace uses of xdgmime with
        g_content_type.


svn path=/trunk/; revision=20332
2008-06-08 05:50:46 +00:00
Christian Persch
dcc9428036 Bug 535608 – do not string-copy accel paths in the menu code
Don't store the accel path as a string in gtkmenu/gtkmenuitem.
The accel path will be interned anyway, so keeping a string copy around
is just a waste of memory.
Improve the documentation to mention this.

svn path=/trunk/; revision=20331
2008-06-07 20:40:20 +00:00
Tor Lillqvist
3610acff8a Bug 536990 - updateiconcache.c: 'close ()' is redundant
2008-06-07  Tor Lillqvist  <tml@novell.com>

	Bug 536990 - updateiconcache.c: 'close ()' is redundant

	* gtk/updateiconcache.c (build_cache): Drop redundant close()
	calls. fclose() on a fdopen()ed strema closes the underlying file
	descriptor.


svn path=/trunk/; revision=20327
2008-06-07 04:19:54 +00:00
Matthias Clasen
d06e3a6a62 Return the right coordinates
svn path=/trunk/; revision=20325
2008-06-06 20:57:50 +00:00
Behdad Esfahbod
74b8297ee3 Bug 536185 – monitor font configuration
2008-06-06  Behdad Esfahbod  <behdad@gnome.org>

        Bug 536185 – monitor font configuration

        * configure.in:
        * gdk/x11/gdksettings.c:
        * gtk/gtksettings.c (gtk_settings_class_init),
        (gtk_settings_notify), (settings_update_fontconfig):
        Monitor xsettings key Fontconfig/Timestamp and upon change,
        reread fontconfig configuration, clear Pango's caches, and
        redraw all widgets.


svn path=/trunk/; revision=20324
2008-06-06 16:39:37 +00:00
Ross Burton
be7eacbf3f Fix trivial typo in documentation.
2008-06-06  Ross Burton  <ross@burtonini.com>

	* gtk/gtkwindow.c:
	Fix trivial typo in documentation.

svn path=/trunk/; revision=20323
2008-06-06 09:55:06 +00:00
Tor Lillqvist
92c24e41b9 Slight update to match what configure produces.
2008-06-06  Tor Lillqvist  <tml@novell.com>

	* config.h.win32.in: Slight update to match what configure
	produces.


svn path=/trunk/; revision=20321
2008-06-05 22:39:06 +00:00
Johan Dahlin
f0bdc49bb8 Add the new version mismatch error constant to the end of the list, to
2008-06-05  Johan Dahlin  <jdahlin@async.com.br>

    * gtk/gtkbuilder.h (enum): Add the new version mismatch error
    constant to the end of the list, to avoid breaking the stable ABI


svn path=/trunk/; revision=20319
2008-06-05 13:16:43 +00:00
Michael Natterer
d5078b182d add -DATK_DISABLE_SINGLE_INCLUDES to CPPFLAGS.
2008-06-05  Michael Natterer  <mitch@imendio.com>

	* configure.in: add -DATK_DISABLE_SINGLE_INCLUDES to CPPFLAGS.


svn path=/trunk/; revision=20317
2008-06-05 09:34:16 +00:00
Li Yuan
04c47084a0 Bug #536430. Patch from Damien Carbery <damien.carbery@sun.com>. Correct
2008-06-05  Li Yuan  <li.yuan@sun.com>

        * gail-uninstalled.pc.in:
        Bug #536430. Patch from Damien Carbery <damien.carbery@sun.com>.
        Correct paths to gail headers and libraries in 
gail-uninstalled.pc.in.

svn path=/trunk/; revision=20316
2008-06-05 07:52:25 +00:00
Matthias Clasen
1e5192fd1c Updates
svn path=/trunk/; revision=20312
2008-06-04 03:28:55 +00:00
Matthias Clasen
7b46a3a2ec 2.13.2
svn path=/trunk/; revision=20311
2008-06-03 23:47:01 +00:00
Matthias Clasen
f393e85f59 2.13.2
svn path=/trunk/; revision=20309
2008-06-03 23:44:33 +00:00
Federico Mena Quintero
cf62c83b0e bnc355225 - File chooser crash in Tab completion
2008-06-03  Federico Mena Quintero  <federico@novell.com>

	* gtk/gtkfilechooserentry.c (install_completion_feedback_timer):
	If the user presses Tab while the completion feedback window is
	active, then we'll assert.  Remove the assertion and just re-set
	the timer.  Fixes https://bugzilla.novell.com/show_bug.cgi?id=355225

Signed-off-by: Federico Mena Quintero <federico@novell.com>

svn path=/trunk/; revision=20305
2008-06-03 18:08:48 +00:00
Colin Walters
8ade45013c Bug 535303 – add _get_implementation to GtkStatusIcon
2008-06-03  Colin Walters  <walters@redhat.com>
	
	Bug 535303 – add _get_implementation to GtkStatusIcon

	* gtk/gtkstatusicon.c (gtk_status_icon_get_x11_window_id): New
	function to retrieve internal X11 window ID, useful for libnotify.
	* gtk/gtkstatusicon.h: Prototype it.
	* docs/reference/gtk/gtk-sections.txt: Add to docs.
	* gtk/gtk.symbols: Export it.


svn path=/trunk/; revision=20304
2008-06-03 17:39:20 +00:00
Tor Lillqvist
727a9145f6 Use g_open().
2008-06-03  Tor Lillqvist  <tml@novell.com>

	* gtk/updateiconcache.c (build_cache): Use g_open().


svn path=/trunk/; revision=20303
2008-06-03 11:04:33 +00:00
Michael Natterer
54d9b40015 gtk/gtkclist.h revert includes to how they have been before the
2008-06-03  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkclist.h
	* gtk/gtkctree.h: revert includes to how they have been before the
	GTK_DISABLE_SINGLE_INCLUDES changes. Apparently I missed the fact
	that you can't include <gtk/gtk.h> from two headers where one is a
	parent class of the other and expect them both to be includable
	individually.


svn path=/trunk/; revision=20302
2008-06-03 08:38:59 +00:00
Michael Natterer
af55cea3ef remove newline at beginning of file.
2008-06-03  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkprinteroptionset.h: remove newline at beginning of file.


svn path=/trunk/; revision=20301
2008-06-03 08:17:06 +00:00