ChangeLog 179 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
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

22 23
2008-06-19  Johan Dahlin  <jdahlin@async.com.br>

Johan Dahlin's avatar
Johan Dahlin committed
24 25
	* gtk/gtkcellrendererpixbuf.c: Remove an unused prototype.

Johan Dahlin's avatar
Johan Dahlin committed
26 27 28
	* gtk/gtklabel.c (gtk_label_set_text_with_mnemonic): Remove
	an unused variable.

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

32 33 34 35 36 37 38 39 40 41
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.

42 43 44 45 46 47 48 49 50 51 52 53
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.

Matthias Clasen's avatar
Matthias Clasen committed
54 55 56 57 58 59 60 61 62
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.

63 64 65 66 67 68
2008-06-18  Matthias Clasen  <mclasen@redhat.com>

	* gtk/Makefile.am: Add some more aliases for standard
	icon names to the builtin icon theme: drive-harddisk,
	folder, folder-remote, text-x-generic.

69 70 71 72 73 74 75 76
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 ;)

77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
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.

Michael Natterer's avatar
Michael Natterer committed
97 98 99 100 101 102 103 104 105
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.

Michael Natterer's avatar
Michael Natterer committed
106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126
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.

Michael Natterer's avatar
Michael Natterer committed
127 128 129 130
2008-06-18  Michael Natterer  <mitch@imendio.com>

	* tests/testgtk.c: some more undeprecation.

131 132 133 134 135 136 137
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/

Michael Natterer's avatar
Michael Natterer committed
138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155
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.

156 157 158 159 160
2008-06-17  Johan Dahlin  <jdahlin@async.com.br>

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

161 162 163 164 165
2008-06-17  Johan Dahlin  <jdahlin@async.com.br>

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

166 167 168 169 170 171
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.

172 173 174 175 176
2008-06-18  Carlos Garnacho  <carlos@imendio.com>

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

Michael Natterer's avatar
Michael Natterer committed
177 178 179 180
2008-06-17  Michael Natterer  <mitch@imendio.com>

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

181 182 183 184 185
2008-06-17  Michael Natterer  <mitch@imendio.com>

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

Michael Natterer's avatar
Michael Natterer committed
186 187 188 189 190 191 192
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/

193 194
2008-06-17  Tor Lillqvist  <tml@novell.com>

195 196 197 198 199 200
	* 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.

201 202 203
	* modules/input/gtkimcontextime.h: Don't use the deprecated GTK_*
	GtkType macros.

204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222
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.

223 224 225 226
2008-06-17  Paolo Borelli  <pborelli@katamail.com>

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

227 228 229 230 231 232 233
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.

234 235 236 237 238
2008-06-17  Michael Natterer  <mitch@imendio.com>

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

239 240 241 242 243 244
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.

245 246 247 248 249 250
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.

251 252 253 254 255 256 257 258 259 260 261 262
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).

263 264 265 266 267 268
2008-06-17  Emmanuele Bassi  <ebassi@gnome.org>

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

269 270 271 272 273 274 275
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)

276 277 278 279
2008-06-17  Paolo Borelli  <pborelli@katamail.com>

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

280 281 282 283 284 285
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.

286 287 288 289 290 291
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.

292 293 294 295 296
2008-06-17  Michael Natterer  <mitch@imendio.com>

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

297 298 299 300 301 302 303 304 305 306 307
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)

308 309 310 311 312
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().

313 314 315 316 317 318 319 320
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.

321 322 323 324 325 326 327
2008-06-16  Matthias Clasen  <mclasen@redhat.com>

	Bug 508751 – gnome-terminal crashed with SIGSEGV after keypress

	* gdk/x11/gdkkeys-x11.c (_gdk_keymap_key_is_modifier): Protect
	against XKB being stupid. Reported by Pedro Villavicencio.

328 329 330 331 332
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().

333 334 335 336 337
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.

338 339 340 341 342 343
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)

344 345 346 347 348
2008-06-16  Michael Natterer  <mitch@imendio.com>

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

349 350 351 352 353 354 355 356
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.

357 358 359 360 361 362 363 364
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().

365 366 367 368 369 370
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.

371 372 373 374 375 376 377 378 379 380
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.

381 382 383 384 385 386
2008-06-16  Matthias Clasen  <mclasen@redhat.com>

	* gtk/Makefile.am: Make folder, user-home and user-desktop links 
	to gtk-directory in the builtin icon theme, so that we can
	use these icon names without risk of ending up without an icon.

387 388 389 390 391
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
Tor Lillqvist's avatar
Tor Lillqvist committed
392
	reference to an icon resource in a DLL or .EXE in the same format
Tor Lillqvist's avatar
Tor Lillqvist committed
393 394 395 396
	as the DefaultIcon strings in the Registry. In that case, extract
	the icon and convert to a GdkPixbuf. Patch by Hans Breuer. This
	code has to be in sync with the corresponding code in
	glib/gio/gcontenttype.c.
397

398 399 400 401 402 403 404
2008-06-16  Matthias Clasen  <mclasen@redhat.com>

	* gtk/stock-icons/24/audio-volume*: Add icons used by GtkVolumeButton
	to the builtin icon theme, to avoid showing broken images when
	there is no icon theme around.  The new icons are thanks to
	Lapo Calamandrei.

405 406 407 408 409 410 411 412
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.

413 414 415 416 417 418 419 420 421
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.

422 423 424 425 426
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.

427 428 429 430 431 432 433 434 435 436 437 438 439 440 441
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.

Matthias Clasen's avatar
Matthias Clasen committed
442 443 444 445
2008-06-15  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkcellrendererpixbuf.c: Add a gicon property.

446 447 448 449 450 451 452 453
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)

Matthias Clasen's avatar
2.13.3  
Matthias Clasen committed
454 455
2008-06-13  Matthias Clasen  <mclasen@redhat.com>

Matthias Clasen's avatar
Matthias Clasen committed
456 457
	* configure.in: Bump version

Matthias Clasen's avatar
2.13.3  
Matthias Clasen committed
458
	* === Released 2.13.3 ===
Matthias Clasen's avatar
Matthias Clasen committed
459

Matthias Clasen's avatar
Matthias Clasen committed
460 461
2008-06-13  Matthias Clasen  <mclasen@redhat.com>

Matthias Clasen's avatar
Matthias Clasen committed
462 463
	* gtk/gtkaccelgroup.c: Add some docs

Matthias Clasen's avatar
Matthias Clasen committed
464 465
	* gdk/gdkwindow.c: Fix doc typos

Matthias Clasen's avatar
Matthias Clasen committed
466 467 468 469 470
2008-06-13  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkfilesystem.c: Avoid PLT entries by including
	gtkalias.h

471 472 473 474 475 476 477 478 479 480 481
2008-06-13  Matthias Clasen  <mclasen@redhat.com>

	* 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.

Matthias Clasen's avatar
Updates  
Matthias Clasen committed
482 483 484 485 486 487
2008-06-13  Matthias Clasen  <mclasen@redhat.com>

	* docs/RELEASE-HOWTO: Updates
	* INSTALL.in: Bump version

2008-06-13  Matthias Clasen  <mclasen@redhat.com>
Matthias Clasen's avatar
Matthias Clasen committed
488 489 490

	* NEWS: Updates

491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516
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.

517 518 519 520 521
2008-06-13  Michael Natterer  <mitch@imendio.com>

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

522 523 524 525 526
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.

527 528 529 530 531
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().

532 533 534 535 536 537 538 539 540
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.

541 542 543 544 545 546 547 548 549 550
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.

Matthias Clasen's avatar
Matthias Clasen committed
551 552 553 554 555
2008-06-13 Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkentry.c (gtk_entry_draw_frame): Fix frame size allocation.
	Patch by Jan Arne Peterson

556 557 558 559 560 561 562 563 564
2008-06-12  Matthias Clasen  <mclasen@redhat.com>

	Bug 537985 – gtk_init_with_args() doesn't open a display after
	gtk_parse_args()

	* gtk/gtkmain.c (gtk_init_with_args): Open the default display
	even when gtk_parse_args() has already been called.
	Patch by Mathias Hasselmann

565 566 567 568 569 570 571 572 573
2008-06-12  Matthias Clasen  <mclasen@redhat.com>

	Bug 524222 – GtkToolbar with mix of buttons with and without 
	icons looks "bad"

	* gtk/gtktoolbutton.c (gtk_tool_button_construct_contents):
	Improve appearance of "both vertical" mode toolbuttons.
	Patch by Peter Johanson

574 575 576 577 578 579 580
2008-06-12  Matthias Clasen  <mclasen@redhat.com>

	Bug 519092 – Add accessibility support to GtkVolumeButton

	* gtk/gtkvolumebutton.c: Set accessibility descriptions.
	Patch by Jonh Wendell

581 582 583 584 585 586 587 588 589 590 591 592 593
2008-06-12  Matthias Clasen  <mclasen@redhat.com>

	Bug 517706 – Connecting GtkButton with "use-stock" == FALSE to a
	GtkAction has problems
	Patch by Peter Johanson

	* 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.

594 595 596 597 598 599
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>.

600 601 602 603 604 605 606 607
2008-06-12  Matthias Clasen  <mclasen@redhat.com>

	RH bug 248245 and 449379: cups client printing from gnome
	applications fail

	* modules/printbackends/cups/gtkprintbackendcups.c: Really fix
	printer URI construction. Patch by Marek Kasik
	
608 609 610 611 612 613 614
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).

615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635
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().

Matthias Clasen's avatar
Updates  
Matthias Clasen committed
636 637 638 639
2008-06-11  Matthias Clasen <mclasen@redhat.com>

	* docs/RELEASE-HOWTO: Updates

640 641 642 643 644 645
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.

646 647 648 649 650
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*).

651 652 653 654 655 656 657 658 659
2008-06-10  Matthias Clasen <mclasen@redhat.com>

	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

2008-06-10  Matthias Clasen <mclasen@redhat.com>
660 661 662 663 664

	* 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.

665 666 667 668 669 670 671 672 673 674 675 676
2008-06-10  Christian Persch  <chpe@gnome.org>

	* 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.

677 678 679 680 681 682 683 684
2008-06-10  Christian Persch  <chpe@gnome.org>

	* 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.

685 686 687 688 689
2008-06-10  Paolo Borelli  <pborelli@katamail.com>

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

Paolo Borelli's avatar
Paolo Borelli committed
690 691 692 693 694
2008-06-10  Paolo Borelli  <pborelli@katamail.com>

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

695 696 697 698 699 700 701
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+.

702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728
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.

729 730 731 732 733 734 735 736 737 738
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.

739 740 741 742 743 744 745 746
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)

747 748 749 750 751 752 753
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.

754 755 756 757 758 759 760 761
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).

762 763 764 765 766 767 768
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.
	
769 770 771 772 773 774 775 776 777 778 779 780 781 782
2008-06-08  Christian Persch <chpe@gnome.org>

	Bug 535608 – do not string-copy accel paths in the menu code

        * gtk/gtkaccelgroup.c:
        * gtk/gtkaccelmap.c:
        * gtk/gtkaction.c:
        * gtk/gtkmenu.c:
        * gtk/gtkmenuitem.c:
        * gtk/gtkwidget.c:  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.

783 784 785 786 787
2008-06-07  Tor Lillqvist  <tml@novell.com>

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

	* gtk/updateiconcache.c (build_cache): Drop redundant close()
Tor Lillqvist's avatar
Typo.  
Tor Lillqvist committed
788
	calls. fclose() on a fdopen()ed stream closes the underlying file
789 790
	descriptor.

Matthias Clasen's avatar
Matthias Clasen committed
791 792 793 794 795 796 797 798
2008-06-06  Matthias Clasen  <mclasen@redhat.com>

	Bug 536757 – regression: openoffice.org menus are placed at wrong
	position since 2.12.10

	* gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents):
	Return the right coordinates.  

799 800 801 802 803 804 805 806 807 808 809 810
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.

811 812 813 814 815
2008-06-06  Ross Burton  <ross@burtonini.com>

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

816 817 818 819 820
2008-06-06  Tor Lillqvist  <tml@novell.com>

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

821 822 823 824 825
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

826 827 828 829
2008-06-05  Michael Natterer  <mitch@imendio.com>

	* configure.in: add -DATK_DISABLE_SINGLE_INCLUDES to CPPFLAGS.

830 831 832 833 834 835
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.

Matthias Clasen's avatar
Updates  
Matthias Clasen committed
836 837 838 839
2008-06-03  Matthias Clasen  <mclasen@redhat.com>

	* docs/RELEASE-HOWTO: Update a bit

Matthias Clasen's avatar
2.13.2  
Matthias Clasen committed
840 841
2008-06-03  Matthias Clasen  <mclasen@redhat.com>

Matthias Clasen's avatar
2.13.2  
Matthias Clasen committed
842 843
	* configure.in: Bump version

Matthias Clasen's avatar
2.13.2  
Matthias Clasen committed
844 845
	* === Released 2.13.2 ===

846 847 848 849 850 851 852
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

853 854 855 856 857 858 859 860 861 862
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.

Tor Lillqvist's avatar
Tor Lillqvist committed
863 864 865 866
2008-06-03  Tor Lillqvist  <tml@novell.com>

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

867 868 869 870 871 872 873 874 875
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.

876 877 878 879
2008-06-03  Michael Natterer  <mitch@imendio.com>

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

880 881 882 883 884 885 886 887
2008-06-02  Matthias Clasen  <mclasen@redhat.com>
	
	Bug 536092 – GtkEntryCompletion's popup window should set type hint

	* gtk/gtkentrycompletion.c (gtk_entry_completion_init): Set
	a type hint on the popup window to help compiz.
	Patch by Vaclav Slavik.

888 889 890 891 892 893 894 895
2008-06-02  Claudio Saavedra  <csaavedra@igalia.com>

	Bug 535862 – gtk_action_create_icon can't create icons from the
	icon themes

	* gtk/gtkaction.c: (gtk_action_create_icon): Look for the icon in
	the default factories as it's supposed.

896 897 898 899 900 901 902
2008-06-02  Yevgen Muntyan  <muntyan@tamu.edu>

        Bug 535497 – Print preview doesn't work.

        * gtk/Makefile.am: GTK_PRINT_PREVIEW_COMMAND on quartz: use open
        instead of launching Preview.app directly.

903 904 905 906 907 908
2008-06-02  Michael Natterer  <mitch@imendio.com>

	* gtk/gtksignal.h: put back #include <gtk/gtkmarshal.h>, it's not
	in <gtk/gtk.h>. Fixes stuff that uses deprecated cruft.
	(bug #536126).

909 910 911 912 913 914 915 916 917
2008-05-31  Emmanuele Bassi  <ebassi@gnome.org>

	Bug 535830 – wrong content type adding an item

	* gtk/gtkrecentmanager.c:
	(gtk_recent_manager_add_item_query_info): Use the correct API
	for retrieving the fast MIME type of a URI. (Carlos Garcia
	Campos)

918 919 920 921 922 923 924 925 926
2008-05-31  Kristian Rietveld  <kris@imendio.com>

	Bug 530146 - Setting non-string tooltip with
	gtk_tree_view_set_tooltip_column() segfaults

	* gtk/gtktreeview.c (gtk_tree_view_set_tooltip_query_cb): use
	gtk_tree_model_get_value() and explicitly transform the value to a
	string before setting it as tooltip.

927 928 929 930 931
2008-05-30  Tor Lillqvist  <tml@novell.com>

	* modules/engines/ms-windows/msw_style.h
	* modules/engines/ms-windows/msw_rc_style.h: Include gtk.h.

932 933 934 935 936
2008-05-30  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkmenu.c (get_attach_info): cast attach_info_free() to
	GDestroyNotify when using it in g_object_set_data_full().

937 938
2008-05-30  Michael Natterer  <mitch@imendio.com>

939 940
	* gdk/gdkapplaunchcontext.h
	* gdk/gdktestutils.h
941 942 943 944 945 946 947
	* gtk/gtkmountoperation.h
	* gtk/gtkshow.h
	* gtk/gtktestutils.h
	* gtk/gtktoolshell.h: no need to allow disabling single includes
	conditionally in these new files. Simply forbid including them
	individually from the beginning.

948 949 950 951 952 953 954
2008-05-30  Tor Lillqvist  <tml@novell.com>

	Bug 533108 - leak of GDI region in function 'handle_wm_paint'

	* gdk/win32/gdkevents-win32.c (handle_wm_paint): Patch by Daniel
	Atallah.

Matthias Clasen's avatar
Updates  
Matthias Clasen committed
955 956
2008-05-29  Matthias Clasen <mclasen@redhat.com>

Matthias Clasen's avatar
2.13.1  
Matthias Clasen committed
957 958
	* configure.in: Bump version 

Matthias Clasen's avatar
2.13.1  
Matthias Clasen committed
959 960
	* === Released 2.13.1 ===

Matthias Clasen's avatar
Updates  
Matthias Clasen committed
961 962
	* NEWS: Updates

Matthias Clasen's avatar
Matthias Clasen committed
963 964 965 966
2008-05-29  Matthias Clasen <mclasen@redhat.com>

	* gtk/gtkwidget.c: s/2.16/2.14/ in Since tags

Matthias Clasen's avatar
Matthias Clasen committed
967 968 969 970
2008-05-29  Matthias Clasen <mclasen@redhat.com>

	* tests/Makefile.am: Don't add testmountoperation to TEST_PROGS.

971 972 973 974 975
2008-05-29  Tor Lillqvist  <tml@novell.com>

	Bug 535526 - updateiconcache.c: using open/close without prototype

	* gtk/updateiconcache.c: Include <io.h> if _MSC_VER. Also, use
Tor Lillqvist's avatar
Tor Lillqvist committed
976 977
	g_utime() when available instead of utime() for UTF-8 pathname
	support on Windows.
978

979 980 981 982 983 984 985 986 987 988
2008-05-29  Jan Arne Petersen  <jpetersen@jpetersen.org>

	Bug 56355 – GtkLabel - Not all changes propagate correctly

	* gtk/gtklabel.c: (gtk_label_recalculate), (gtk_label_set_label),
	(gtk_label_set_markup_with_mnemonic), (gtk_label_parse_uline),
	(gtk_label_set_text_with_mnemonic), (gtk_label_set_use_underline):
	Call gtk_label_setup_mnemonic from gtk_label_recalculate. Add
	notifications of mnemonic-keyval changes.

989 990 991 992 993 994 995 996 997
2008-05-27  Matthias Clasen  <mclasen@redhat.com>

	Bug 522084 – GIcon support for GtkIconTheme & GtkImage

	* gtk/gtkicontheme.[hc]: Add support for GIcon based lookups.
	* gtk/gtkimage.[hc]: Allow setting an image from a GIcon.
	* gtk/gtk.symbols: Additions
	* tests/testimage.c: Add a GIcon test

998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020
2008-05-29  Michael Natterer  <mitch@imendio.org>

	* gtk/Makefile.am
	* gtk/gtkunixprint.h: add a single-include header for the unix
	print stuff.

	* gtk/gtkpagesetupunixdialog.h
	* gtk/gtkprinter.h
	* gtk/gtkprintjob.h
	* gtk/gtkprintunixdialog.h: add single-include guards that #error
	out if GTK_DISABLE_SINGLE_INCLUDES is defined and any of these
	files is included individually.

	* gtk/gtkprintbackend.h
	* gtk/gtkprinter-private.h
	* modules/printbackends/cups/gtkprintbackendcups.c
	* modules/printbackends/cups/gtkprintercups.h
	* modules/printbackends/lpr/gtkprintbackendlpr.c
	* tests/buildertest.c
	* tests/defaultvaluetest.c
	* docs/tools/widgets.c: include <gtk/gtkunixprint.h> instead of
	individual files.

1021 1022 1023 1024 1025 1026
2008-05-28  Michael Natterer  <mitch@imendio.com>

	* gtk/gtk*.h: whitespace cleanup: remove trailing whitespace and
	excess newlines and sprinkled some newlines where needed. Zero
	code or formatting changes included.

1027 1028 1029 1030
2008-05-28  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkprinter.h: fix formatting of details_acquired() signal.

1031 1032 1033 1034 1035 1036 1037
2008-05-28  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkcolorbutton.h: fix comment: the widget is called
	GtkColorButton, not GtkColorSelectButton. Remove trailing
	whitespace and excess newlines.

2008-05-28  Michael Natterer  <mitch@imendio.com>
1038 1039 1040 1041 1042 1043

	* configure.in: last but not least, add G_DISABLE_SINGLE_INCLUDES,
	GDK_PIXBUF_DISABLE_SINGLE_INCLUDES and GTK_DISABLE_SINGLE_INCLUDES
	to CPPFLAGS so it's impossible to commit code that would break
	apps which use DISABLE_INCLUDE defines.

1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090
2008-05-28  Michael Natterer  <mitch@imendio.com>

	* gtk/gtk.h: define __GTK_H_INSIDE__ around including all other
	headers.

	* gtk/gtktypebuiltins.h.template
	* gtk/gtkversion.h.in
	* gtk/gtk*.h: add single-include guards that #error out if
	GTK_DISABLE_SINGLE_INCLUDES is defined and any of these files is
	included individually.

	* gtk/gtkprintbackend.h
	* gtk/gtkprinter-private.h
	* gtk/gtktextlayout.h
	* gtk/gtktexttagprivate.h
	* gtk/gtktexttypes.h
	* gtk/gtktreedatalist.h: include <gtk/gtk.h> instead of individual
	headers in these private or semi-private headers.

	* gtk/gtkimmodule.h: also here because it's not in gtk.h.

	* gtk/gtkpagesetupunixdialog.h
	* gtk/gtkprinter.h
	* gtk/gtkprintjob.h
	* gtk/gtkprintunixdialog.h: likewise in the gtkunixprint headers.

	* gtk/gtkclist.h
	* gtk/gtkcombo.h
	* gtk/gtkctree.h
	* gtk/gtkfilesel.h
	* gtk/gtkitemfactory.h
	* gtk/gtklist.h
	* gtk/gtklistitem.h
	* gtk/gtkoldeditable.h
	* gtk/gtkoptionmenu.h
	* gtk/gtkpixmap.h
	* gtk/gtkpreview.h
	* gtk/gtksignal.h
	* gtk/gtktipsquery.h: whenever possible, include only <gtk/gtk.h>
	instead of individual headers in these deprecated headers. They
	don't get included at all when GTK_DISABLE_DEPRECATED is defined,
	so if an app needs them anyway, it must undef GTK_DISABLE_DEPRECATED
	and include them individually, which should continue to work.

	* gtk/gtkclist.c: include "gtkctree.h" because of the change
	above.

1091 1092 1093 1094 1095 1096 1097 1098 1099 1100
2008-05-28  Kristian Rietveld  <kris@imendio.com>

	Bug 449625 - crash in gtk_tree_view_real_move_cursor at
	gtktreeview.c:9641

	* gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down):
	cursor_offset *must* be larger than background height of the cursor
	node, not just equal otherwise there is no guarantee there is a next
	node.

1101 1102 1103 1104
2008-05-28  Michael Natterer  <mitch@imendio.com>

	* gtk/gtktestutils.c: don't include <gdk/gdktestutils.h>.

1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123
2008-05-28  Michael Natterer  <mitch@imendio.com>

	* gdk/gdk.h: define __GDK_H_INSIDE__ around including all other
	headers.

	* gdk/gdkenumtypes.h.template
	* gdk/gdk*.h: add single-include guards that #error out if
	GTK_DISABLE_SINGLE_INCLUDES is defined and any of these files is
	included individually. Also removed some redundant includes and
	did some tiny trailing whitespace removal that's not worth to
	commit separately.

	* gdk/gdkprivate.h: include <gdk/gdk.h> instead of individual
	files.

	* gdk/win32/gdkwin32.h
	* gdk/x11/gdkx.h: only include <gdk/gdkprivate.h> and remove all
	other includes.

1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135
2008-05-28  Kristian Rietveld  <kris@imendio.com>

	Bug 504087 - make gtk_tooltip_set_custom a no-op for setting the
	current widget again.

	* gtk/gtktooltip.c (gtk_tooltip_set_custom),
	(gtk_tooltip_reset), (gtk_tooltip_run_requery): use a
	custom_was_reset field to check if the custom widget is set again in
	the query-tooltip callback; if not, we set it to NULL.  Based on a
	patch by Xavier Claessens, insightful comments from Jean-Yves Lefort
	and Christian Persch.

1136 1137
2008-05-28  Michael Natterer  <mitch@imendio.com>

1138 1139 1140 1141 1142 1143
	* modules/printbackends/cups/gtkcupsutils.c
	* modules/printbackends/cups/gtkprintbackendcups.c
	* modules/printbackends/file/gtkprintbackendfile.c
	* modules/printbackends/lpr/gtkprintbackendlpr.c: include
	<gtk/gtk.h> instead of individual files.

1144 1145 1146 1147 1148
2008-05-28  Michael Natterer  <mitch@imendio.com>

	* demos/testpixbuf.c: include <gdk-pixbuf/gdk-pixbuf.h> instead of
	individual files.

1149 1150 1151 1152 1153 1154 1155
2008-05-28  Kristian Rietveld  <kris@imendio.com>

	Bug 498010 - gtk_tree_view_set_cursor fails if model!=NULL.

	* gtk/gtktreeview.c (gtk_tree_view_set_cursor_on_cell): return if fail
	->priv->tree != NULL.  Suggestion from Stefan Kost.

1156
2008-05-28  Kristian Rietveld  <kris@imendio.com>
1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168

	Bug 324282 - add selected signal to cell renderer combo.

	* gtk/gtkcellrenderercombo.c (gtk_cell_renderer_combo_class_init),
	(gtk_cell_renderer_combo_changed),
	(gtk_cell_renderer_combo_start_editing): add a new "changed" signal
	that will be emitted as soon as the combo box emitted changed and has
	an active iterator.  (Modified patch based on work by James
	Pelletier).

	* gtk/gtkmarshalers.list: add marshaler.

1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184
2008-05-28  Kristian Rietveld  <kris@imendio.com>

	Refactor expand/collapse timeout handling (amendment to bug 511217).

	* gtk/gtktreeview.c (add_expand_collapse_timeout),
	(remove_expand_collapse_timeout): new functions, the remove function
	also clears expanded_collapsed_node,
	(cancel_arrow_animation): moved to be next to the add/remove timeout
	functions,
	(gtk_tree_view_unrealize),
	(gtk_tree_view_row_deleted),
	(gtk_tree_view_set_model),
	(cancel_arrow_animation),
	(gtk_tree_view_real_expand_row),
	(gtk_tree_view_real_collapse_row): use the new add/remove functions.

1185 1186 1187 1188 1189 1190 1191 1192
2008-05-28  Kristian Rietveld  <kris@imendio.com>

	Amendment of bug 485218 - Strange warning encountered.

	* gtk/gtktreemodelsort.[ch]
	(gtk_tree_model_sort_convert_child_iter_to_iter): return a boolean
	indication whether or not the conversion had succeeded.

1193 1194
2008-05-27  Matthias Clasen  <mclasen@redhat.com>

1195 1196 1197 1198 1199 1200 1201 1202 1203
	Bug 509788 - GTK+ should use CUPS to set Postscript level of PS output

	* modules/printbackends/cups/gtkprintbackendcups.c
	(cups_printer_create_cairo_surface): Fall back to PostScript level 2
	if the printer does not support level 3. Patch by Marek Kašík.

2008-05-27  Matthias Clasen  <mclasen@redhat.com>

	Bug 404571 - Scroll arrow backgrounds should be painted with different
1204 1205 1206 1207 1208 1209
	detail

	* gtk/gtkmenu.c (gtk_menu_paint): Use "menu_scroll_arrow_up/down" 
	as detail when drawing scroll arrow backgrounds. Proposed by
	Tommi Komulainen.
	
1210 1211 1212 1213 1214 1215 1216 1217
2008-05-27  Matthias Clasen  <mclasen@redhat.com>

	Bug 511217 - potential memory corruption after refreshing a tree_view

	* gtk/gtktreeview.c (cancel_arrow_animation): Reset
	expanded_collapsed_node when canceling the animation.
	Patch by Nicholas Setton.

1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238
2008-05-28  Michael Natterer  <mitch@imendio.com>

	* modules/input/gtkimcontextime.h
	* modules/input/gtkimcontextmultipress.h
	* modules/input/gtkimcontextthai.h
	* modules/input/gtkimcontextxim.h: include <gtk/gtk.h> instead of
	individual files.

	* modules/input/gtkimcontextime.c
	* modules/input/gtkimcontextmultipress.c
	* modules/input/gtkimcontextxim.c
	* modules/input/imam-et.c
	* modules/input/imcedilla.c
	* modules/input/imcyrillic-translit.c
	* modules/input/iminuktitut.c
	* modules/input/imipa.c
	* modules/input/imti-er.c
	* modules/input/imti-et.c
	* modules/input/imviqr.c: ditto. Some minor cleanups like moving
	"gtk/gtkintl.h" to the end of includes.

1239 1240 1241 1242 1243 1244
2008-05-28  Michael Natterer  <mitch@imendio.com>

	* modules/engines/pixbuf/pixbuf-style.h
	* modules/engines/pixbuf/pixbuf-rc-style.h: include <gtk/gtk.h>
	instead of individual files.

1245 1246
2008-05-27  Matthias Clasen  <mclasen@redhat.com>

1247 1248 1249 1250 1251 1252 1253 1254 1255 1256
	Bug 485218 - Strange warning encountered

	* gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted):
	(gtk_tree_model_sort_convert_child_iter_to_iter):
	(gtk_tree_model_sort_build_level): Better warnings. Patch
	by Kristian Rietveld.

2008-05-27  Matthias Clasen  <mclasen@redhat.com>

	Bug 351910 - Search column setting lost
Matthias Clasen's avatar
Fixes  
Matthias Clasen committed
1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271

	* gtk/gtktreeview.c (gtk_tree_view_set_search_column): Clarify
	the docs. Patch by Matt Barnes.

2008-05-27  Matthias Clasen  <mclasen@redhat.com>

	Bug 477278 - avoid unnecessary pointer subtraction

	* gtk/gtkaccelgroup.c (quick_accel_remove): Avoid pointer 
	subtraction that sparse complains about. Patch by Christian
	Persch.

2008-05-27  Matthias Clasen  <mclasen@redhat.com>

	Bug 106574 - Inconsistent increment behavior for gtkspinbutton
1272 1273 1274 1275 1276

	* gtk/gtkspinbutton.c (gtk_spin_button_real_value_change):
	Commit the entry text before doing an increment. Patch by
	Björn Lindqvist.

1277 1278 1279 1280 1281 1282 1283 1284 1285 1286
2008-05-27  Federico Mena Quintero  <federico@novell.com>

	http://bugzilla.gnome.org/show_bug.cgi?id=533891 - Don't allow
	drag and drop from the file list into itself, as it doesn't make
	sense (it would just change the current folder).

	* gtk/gtkfilechooserdefault.c (file_list_dest_targets): Use
	GTK_TARGET_OTHER_WIDGET so we don't DnD from the file list into
	itself.

1287 1288 1289 1290 1291 1292
2008-05-27  Michael Natterer  <mitch@imendio.com>

	* gtk/gtksignal.h: move deprecated guards around everything,
	including includes and include guards (just as in all other
	deprecated files).

1293 1294 1295 1296 1297 1298 1299 1300 1301
2008-05-27  Tor Lillqvist  <tml@novell.com>

	* gtk/updateiconcache.c (build_cache): Use simpler mode for open()
	on Windows. (No S_I?GRP and S_I?OTH bits are defined in
	<sys/stat.h> on Windows, and the mode used in open() doesn't
	matter much as there are no rwxrwxrwx bits on Windows anyway.)
	Open file in binary mode. Passing "b" to fdopen() later isn't
	enough.

1302 1303 1304 1305 1306
2008-05-27 10:33:41  Tim Janik  <timj@imendio.com>

	* gtk/gtkwidget.c: guard gtk_widget_get_snapshot() against
	invalid or invisible widgets.

1307 1308 1309 1310 1311 1312 1313
2008-05-27  Matthias Clasen  <mclasen@redhat.com>

	Bug 531008 – Crash in gtkprintunixdialog.c

	* gtk/gtkprintunixdialog.c: Disconnect signal handlers when
	the dialog closes. Patch by Yevgen Muntyan.

1314 1315 1316 1317 1318 1319 1320
2008-05-27  Matthias Clasen  <mclasen@redhat.com>

	RH bug 248245: cups client printing from gnome applications fail

	* modules/printbackends/cups/gtkprintbackendcups.c
	(gtk_print_backend_cups_print_stream): Specify the right server.

1321 1322 1323 1324 1325
2008-05-27  Carlos Garnacho  <carlos@imendio.com>

	* gtk/gtkfilechooserdefault.c (set_select_multiple): Enable
	rubberbanding when "select-multiple" is TRUE. Bug #446068.

1326 1327 1328 1329 1330 1331
2008-05-27  Carlos Garnacho  <carlos@imendio.com>

	* gtk/gtkmountoperation.c (gtk_mount_operation_ask_password): Enable
	correctly dialog buttons sensitivity when the anonymous option is
	enabled by default. Bug #531865.

1332 1333 1334 1335 1336 1337
2008-05-27  Carlos Garnacho  <carlos@imendio.com>

	* gtk/gtkmountoperation.c (gtk_mount_operation_ask_password): Set
	password dialog modal and transient for the parent window also if it
	was specified in the constructor. Bug #531864.

1338 1339 1340 1341 1342
2008-05-26  Richard Hult  <richard@imendio.com>

	* gdk/quartz/gdkevents-quartz.c: (gdk_screen_get_setting): Try
	setting the default font, might need to tweak this.

1343 1344 1345 1346 1347
2008-05-26  Michael Natterer  <mitch@imendio.com>

	* examples/gtkdial/gtkdial.h
	* modules/input/gtkimcontextthai.h: use G_BEGIN/END_DECLS.

Michael Natterer's avatar
Michael Natterer committed
1348 1349 1350 1351
2008-05-26  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkimmodule.h: fix indentation.

1352 1353 1354 1355 1356 1357 1358 1359
2008-05-26  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkshow.h: include "gdk/gdk.h" instead of "gdk/gdkscreen.h"

	* gtk/gtkshow.c: remove inclusion of single files from gdk/

	Removed trailing whitespace in both files.

1360 1361 1362 1363 1364 1365 1366 1367 1368 1369
2008-05-26  Richard Hult  <richard@imendio.com>

	Bug 530353 – Mac-like gtk_accelerator_get_label()

	* gtk/gtkaccellabel.c: (gtk_accel_label_class_init),
	(append_keyval_symbol), (_gtk_accel_label_class_get_accelerator_label):
	On quartz, make gtk_accelerator_get_label() format a Mac-like
	string, using unicode characters for modifier keys, arrows, delete
	etc. Patch from Yevgen Muntyan.

1370 1371 1372 1373 1374 1375 1376 1377 1378
2008-05-26  Richard Hult  <richard@imendio.com>

	Bug 534869 – Length miscalculation in
	_gtk_quartz_get_selection_data_from_pasteboard

	* gtk/gtkquartz.c: (_gtk_quartz_get_selection_data_from_pasteboard):
	Get the number of bytes, not the number of characters, patch from
	Yevgen Muntyan.

Matthias Clasen's avatar
Matthias Clasen committed
1379 1380 1381 1382
2008-05-26  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkwidget.c: Some doc formatting fixes.

1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393
2008-05-26  Matthias Clasen  <mclasen@redhat.com>

	Bug 511163 – Remove pango_extents_to_pixels() calls

	* gtk/gtkcellrenderertext.c (get_size): Use
	pango_layout_get_pixel_extents.

	* configure.in: Bump Pango requirement to 1.20

	* INSTALL.in: Update required versions

1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405
2008-05-26  Matthias Clasen  <mclasen@redhat.com>

	Bug 513811 – Use cairo_format_stride_for_width()

	* gtk/gtkhsv.c (paint_ring, paint_triangle):
	* gdk/gdkcairo.c (gdk_cairo_set_source_pixbuf): Use
	cairo_format_stride_for_width, proposed by Behdad Esfahbod.

	* configure.in: Bump cairo requirement to 1.6.0

	* INSTALL.in: Update required versions

Matthias Clasen's avatar
Matthias Clasen committed
1406 1407 1408 1409 1410 1411
2008-05-26  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkshow.[hc]: Formatting fixes

	* gtk/gtkmountoperation.c: Add docs

1412 1413 1414 1415 1416 1417 1418
2008-05-25  Cody Russell  <bratsche@gnome.org>

	Bug 507389 – use gslice for gtksettings

	* gtk/gtksettings.c: Change from g_new0/g_free to use GSlice.
	Report and patch by Christian Persch.

1419 1420 1421 1422 1423 1424 1425 1426 1427 1428
2008-05-25  Cody Russell  <bratsche@gnome.org>

	Bug 523562 - gtk-update-icon-cache core dumps when run concurrently and
	when options are missing

	* gtk/updateiconcache.c: Open the cache file (O_CREAT | O_EXCL) so
	that other processes that try to open it will fail gracefully.  Also
	fix a crasher caused by lack of a NULL check.  Report and patch
	by Erwann Chenede.

1429 1430 1431 1432 1433 1434 1435 1436 1437
2008-05-25  Cody Russell  <bratsche@gnome.org>

	Bug 526635 - _gdk_window_get_toplevel handles FOREIGN windows

	* gdk/x11/gdkwindow-x11.c (_gdk_window_get_toplevel): Check
	!WINDOW_IS_TOPLEVEL instead of checking for GDK_WINDOW_CHILD,
	so that we also take into account for foreign windows.
	Report and patch by Nathaniel Smith.

1438 1439 1440 1441 1442 1443 1444 1445
2008-05-25  Cody Russell  <bratsche@gnome.org>

	Bug 525461 - Don't invalidate under an input-only child

	* gdk/x11/gdkgeometry-x11.c (_gdk_window_move_resize_child):
	Check that the window is not input-only before invalidating.
	Report and patch by Owen Taylor.

1446 1447 1448 1449 1450 1451 1452 1453
2008-05-25  Cody Russell  <bratsche@gnome.org>

	Bug 524110 - Gdk should not assume reparenting WMs when retrieving
	window frame extents

	* gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents):
	Use _NET_FRAME_EXTENTS, if available.  Patch by Danny Baumann.

1454 1455 1456 1457 1458 1459 1460 1461
2008-05-25  Cody Russell  <bratsche@gnome.org>

	Bug 522269 - Evince windows sometimes incorrectly unmaximized,
	caused by missing flag initialization

	* gdk/x11/gdkwindow-x11.c (set_initial_hints): Initialize
	top-level private flags correctly.  Patch by Danny Baumann.

1462 1463 1464 1465 1466 1467 1468 1469
2008-05-25  Cody Russell  <bratsche@gnome.org>

	Bug 534463 - non-editable GtkTextView should not call
	gtk_im_context_focus_in in focus event

	* gtk/gtktextview.c: Add checks to see if the textview is
	editable.  Patch by Wang Diancheng.

1470 1471 1472 1473 1474 1475 1476 1477
2008-05-25  Matthias Clasen  <mclasen@redhat.com>

	Bug 501730 – use GSlice for small allocs

	* gtk/gtkmenuitem.c:
	* gtk/gtkmenu.c: Use the slice allocator for small allocations.
	Patch by Christian Persch.
	
1478 1479 1480 1481 1482 1483 1484
2008-05-25  Matthias Clasen  <mclasen@redhat.com>

	Bug 523930 – sort -> search in gtktreeview.c

	* gtk/gtktreeview.c (gtk_tree_view_set_search_column): Fix a doc
	glitch, pointed out by Björn Lindqvist.

1485 1486 1487 1488 1489 1490 1491
2008-05-25  Matthias Clasen  <mclasen@redhat.com>

	Bug 479384 – gtk_selection_data_targets_include_uri docs buglet

	* gtk/gtkselection.c (gtk_selection_data_targets_include_uri): Fix
	doc glitch, pointed out by Christian Persch.

1492 1493 1494 1495 1496 1497 1498
2008-05-25  Matthias Clasen  <mclasen@redhat.com>

	Bug 534694 – Col id in GtkListStore could be out of range

	* gtk/gtkliststore.c (list_store_start_element): Fix up error handling
	a bit. Pointed out by Jan Arne Petersen.

1499 1500 1501 1502 1503 1504 1505
2008-05-25  Matthias Clasen  <mclasen@redhat.com>

	Bug 532497 – Configure problem when cross-compiling

	* configure.in: Use AC_CHECK_TOOLS to find C++ compiler, 
	pointed out by Marko Lindqvist.

Richard Hult's avatar
Richard Hult committed
1506 1507 1508 1509 1510
2008-05-25  Richard Hult  <richard@imendio.com>

	* gtk/gtkquartz.c: (_gtk_quartz_set_selection_data_for_pasteboard):
	Slight coding style cleanup.

1511 1512 1513 1514 1515 1516 1517 1518 1519
2008-05-25  Tristan Van Berkom <tvb@gnome.org>

	* gtk/gtkbuilderprivate.h, gtk/gtkbuilder.h, gtk/gtkbuilderparser.c:
	Added support for parsing required toolkit versions (so that ui descriptions
	can target specific versions of the backend widget libraries) bug 527612.

	* gtk/docs/reference/gtk/tmpl/gtkbuilder.sgml: Added documentation
	for the added xml tags to the ui description.

1520 1521 1522
	* tests/buildertest.c: Enhanced pango attribute tests, Added tests
	for requires tag handling.

1523 1524 1525 1526 1527 1528 1529 1530 1531
2008-05-25  Richard Hult  <richard@imendio.com>

	* gtk/gtkdnd-quartz.c: (gtk_drag_drop_finished): Run
	gtk_drag_source_info_destroy in an idle, workaround for bug
	#501588, that makes any code that uses the context returned from
	gtk_drag_begin() crash, like treeview/iconview dnd.
	(GdkDragSourceOwner::provideDataForType): only use the data if we
	got any.

1532 1533 1534 1535 1536
2008-05-25  Jan Arne Petersen  <jpetersen@jpetersen.org>

	* gtk/gtkfilechooserdefault.c: (create_file_list): Add GDK_ACTION_MOVE
	to the drag actions to allow trash (#137717).

1537 1538 1539 1540 1541 1542 1543 1544
2008-05-25  Josselin Mouette  <joss@malsain.org>

	reviewed by: Matthias Clasen

	* gtk/gtksearchenginetracker.c: (_gtk_search_engine_tracker_new):
        check that tracker is actually working before using it. Fixes
        bug #479197.

1545 1546 1547 1548 1549 1550 1551 1552 1553
2008-05-25  Sven Neumann  <sven@gimp.org>

	* gtk/gtkdrawingarea.c (gtk_drawing_area_realize)
	(gtk_drawing_area_size_allocate): respect the GTK_NO_WINDOW flag
	and don't create an output window if it is set.

	* gtk/gtkprintunixdialog.c: set the GTK_NO_WINDOW flag for the
	drawing areas. Fixes bug #519317.

1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569
2008-05-25  Jan Arne Petersen  <jpetersen@jpetersen.org>

	* gtk/gtkentry.c: (gtk_entry_class_init), (get_text_area_size),
	(gtk_entry_get_text_area_size), (gtk_entry_draw_frame):
	* gtk/gtkentry.h:
	* gtk/gtkspinbutton.c: (gtk_spin_button_class_init),
	(gtk_spin_button_realize), (gtk_spin_button_size_allocate),
	(gtk_spin_button_expose), (gtk_spin_button_draw_arrow),
	(gtk_spin_button_enter_notify), (gtk_spin_button_leave_notify),
	(gtk_spin_button_grab_notify), (gtk_spin_button_state_changed),
	(start_spinning), (gtk_spin_button_button_release),
	(gtk_spin_button_motion_notify), (gtk_spin_button_value_changed),
	(gtk_spin_button_get_text_area_size), (gtk_spin_button_real_spin),
	(gtk_spin_button_update): Reorder strange window hierarchy of the
	GtkSpinButton (#466000).

1570 1571 1572 1573 1574 1575
2008-05-25  Jan Arne Petersen  <jpetersen@jpetersen.org>

	* gtk/gtklabel.c: (get_layout_location): Subtract logical.x from x to
	fix the wrong position for right and center justified labels with
	logical.x > 0 (#530255).

1576 1577 1578 1579 1580 1581
2008-05-25  Jan Arne Petersen  <jpetersen@jpetersen.org>

	* gtk/gtkfilechooserdefault.c:
	(shortcuts_activate_volume_mount_cb): Ignore G_IO_ERROR_FAILED_HANDLED
	errors (#532262).

1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592
2008-05-25  Björn Lindqvist  <bjourne@gmail.com>

	* tests/pixbuf-lowmem.c
	* tests/pixbuf-random.c
	* tests/pixbuf-randomly-modified.c
	* tests/pixbuf-read.c
	* tests/pixbuf-threads.c
	* tests/testgtk.c
	* tests/testtreeview.c: Fix remaining compiler warnings in these
	files (#523751).

Jaap A. Haitsma's avatar
Jaap A. Haitsma committed
1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603
2008-05-25  Jaap A. Haitsma  <jaap@haitsma.org>

	reviewed by: Matthias Clasen

	* gtk/Makefile.am:
	* gtk/gtk.h:
	* gtk/gtk.symbols:
	* gtk/gtkshow.c: (gtk_show_uri):
	* gtk/gtkshow.h:
	Add gtk_show_uri to make showing uris really easy. Fixes bug #514396

1604 1605 1606 1607 1608 1609
2008-05-25  Jan Arne Petersen  <jpetersen@jpetersen.org>

	* gtk/gtkliststore.c: (list_store_text): Use type of the correct
	column (#529535).
	* tests/buildertest.c: (test_list_store): Add test.

1610 1611 1612 1613 1614 1615 1616
2008-05-24  Matthias Clasen  <mclasen@redhat.com>

	Bug 520989 – icon factory buildable too strict

	* gtk/gtkiconfactory.c (icon_source_start_element): Make filename
	an optional attribute.

1617 1618 1619 1620 1621 1622 1623
2008-05-24  Matthias Clasen  <mclasen@redhat.com>

	Bug 387972 – gtkassistant drawing problem

	* gtk/gtkassistant.c (gtk_assistant_size_allocate): Make 
	GtkAssistant work better in glade. 

1624 1625 1626 1627 1628 1629
2008-05-24  Jan Arne Petersen  <jpetersen@jpetersen.org>

	* gtk/gtktoolbar.c: (gtk_toolbar_class_init): Change defaults of child
	properties "expand" and "homogeneous" from TRUE to FALSE (as they are
	used in GtkToolItem) (#532787).

1630 1631 1632 1633
2008-05-24  Jan Arne Petersen  <jpetersen@jpetersen.org>

	* gtk/gtkfilechooserdefault.c: (location_toggle_popup_handler): Don't
	try to toggle the visibility of the location entry field in search and
1634
	recent mode (#526422).
1635

1636 1637 1638 1639 1640 1641
2008-05-24  Jan Arne Petersen  <jpetersen@jpetersen.org>

	* gtk/gtkfilechooserdefault.c: (shortcuts_query_tooltip_cb),
	(shortcuts_list_create): Show parse name as tooltip for path
	shortcuts (#137503).

1642 1643 1644 1645 1646
2008-05-24  Björn Lindqvist  <bjourne@gmail.com>

	* gdk/gdkcolor.c (gdk_color_parse): Update docstring to match
	pango_color_parse, do not reference XParseColor forms (#434991).

1647 1648 1649 1650 1651 1652
2008-05-24  James Sharpe <jsharpe@gnome.org>

	* gdk/gdk.symbols: Remove duplicate
	gdk_window_redirect_to_drawable and gdk_window_remove_redirection
	* gtk/gtk.symbols: Remove duplicate gtk_widget_get_snapshot
	
1653 1654 1655 1656 1657 1658 1659 1660 1661
2008-05-23  Hans Breuer  <hans@breuer.org>

	* **/makefile.msc gtk/makefile.msc.in : updated
	* gtk/gtkwidget.c : fix c99ism (variable at start of block
	* gdk/gdk.symbols gtk/gtk.symbols : export functions for window 
	redirection
	* gtk/gtkfilechooserdefault.c : #include <locale.h> for 
	setlocale(LC_ALL, ...)

1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673
2008-05-23  Tor Lillqvist  <tml@novell.com>

	* gdk/gdk.symbols: Add gdk_window_redirect_to_drawable and
	gdk_window_remove_redirection.

	* gdk/win32/gdkwindow-win32.c (_gdk_window_new)
	(_gdk_window_reparent): Rename to adapt to the offscreen rendering
	changes. Remove now unnecessary parameter checks as the caller
	does that already.

	* gtk/gtk.symbols: Add gtk_widget_get_snapshot.

1674 1675 1676 1677 1678
2008-05-23  Tor Lillqvist  <tml@novell.com>

	* gdk/win32/gdkwindow-win32.c (update_style_bits): Don't do
	anything if style doesn't change. Improve debugging output.

1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692
2008-05-23  Michael Natterer  <mitch@gimp.org>

	* perf/widgets.h
	* tests/print-editor.c
	* tests/prop-editor.h
	* tests/testmountoperation.c
	* tests/testmultidisplay.c
	* tests/testnouiprint.c
	* tests/testprint.c
	* tests/testprintfileoperation.h
	* tests/testtreesort.c
	* tests/textbuffertest.c: include <gtk/gtk.h> instead of single
	files. Remove some redundant includes.

1693 1694 1695 1696 1697
2008-05-22  Hiroyuki Ikezoe  <poincare@ikezoe.net>

	* gtk/gtksockget.c: (gtk_socket_realize): Remove second call of
	GTK_WIDGET_SET_FLAGS (widget, GTK_REALIZED).

1698 1699 1700 1701 1702 1703
2008-05-21  Richard Hult  <richard@imendio.com>

	* gdk/quartz/gdkwindow-quartz.c:
	(_gdk_window_new), (_gdk_window_reparent): Renamed to adapt to the
	offscreen rendering changes, fixes build.

1704 1705 1706 1707 1708 1709 1710 1711 1712
2008-05-21 21:10:15  Tim Janik  <timj@imendio.com>

	* gtk/gtkwidget.h: added GdkRectangle *clip_rect to gtk_widget_get_snapshot().

	* gtk/gtkwidget.c: clip the returned snapshot pixmap to clip_rect.
	return snapshot pixmap coordinates widget relative in *clip_rect.

	* tests/testgtk.c: fixed bogus NULL pointer unref.

1713 1714 1715 1716 1717 1718
2008-05-21 21:04:28  Tim Janik  <timj@imendio.com>

	* gtk/gtkwidget.c gtk_widget_get_snapshot(): grow snapshot area from
	widget's allocation to cover extra widget windows placed outside the
	widget allocation (spinbutton arrows are the prime example for this).

1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784
2008-03-18 10:49:20  Tim Janik  <timj@imendio.com>

	* Applied pixmap redirection patch by Alexander Larsson with
	various updates from:
	Bug 318807 – Offscreen windows and window redirection.


	Updates:

	* updated docs to mention "Since 2.16".

	* tests/testgtk.c: fixed snapshooting pixmap leak.
	convert pixmap to pixbuf after snapshooting, to compensate for different
	bit depths (occurs when snapshooting ARGB visuals and displaying the
	pixmap in an RGB visual).

	* gdk/gdkwindow.[hc]: made GdkWindowRedirect private.

	* gdk/gdkwindow.c: removed damage idle handler, there's no aparent
	need for it. enqueue damage notification as GDK_DAMAGE events
	for each painting redirection at the start of the event queue.
	consider windows with a redirection fully visible when invalidating,
	and when updating from backing store. cleaned up stale variables.

	* gdk/gdkevents.c: added _gdk_event_queue_prepend().

	* gtk/gtkwidget.c: fixed coordinates for !NO_WINDOW widgets in
	gtk_widget_get_snapshot; this fixes garbage snap offsets for gammacurve,
	tree, drawingarea, text, handlebox, etc.
	clip the redirected window hierarchy to window sizes, the visible
	rectangles don't need to be taken into account here.
	extended snapshooting docs to recommend gdk_pixbuf_get_from_drawable()
	in case pixmap visuals could mismatch.

	* gdk/x11/gdkwindow-x11.c: removed _gdk_windowing_window_get_visible_rect().


	Base patch:

	* tests/testgtk.c: add a "Snapshot" test to demonstrate snapshooting
	of possibly obscured widgets into an offscreen pixmap.

	* gtk/gtkwidget.[hc]: add GtkWidget::damage-event signal, add
	gtk_widget_get_snapshot() to render a widget's contents to a GdkPixmap.

	* gtk/gtkmain.c: dispatch GDK_DAMAGE events.

	* gdk/gdkwindow.c: moved outer gdk_window_new() and gdk_window_reparent()
	implementations here, adapted them to propagate redirects to child windows.
	gdk_window_end_paint(): copy repainted window contents to redirection pixmap,
	clipped to visible region. queue GDK_DAMAGE event delivery.
	gdk_window_redirect_to_drawable(): install window painting redirection.
	gdk_window_remove_redirection(): remove previously installed redirection.

	* gdk/x11/gdkwindow-x11.c: added _gdk_windowing_window_get_visible_rect(),
	renamed _gdk_window_new() and _gdk_window_reparent().

	* gdk/gdkwindow.h: added GdkWindowRedirect* to GdkWindowObject, export
	gdk_window_redirect_to_drawable() and gdk_window_remove_redirection().

	* gdk/gdkevents.h: added GDK_DAMAGE event type.

	* gdk/gdkevents.c: extract time and state from GDK_DAMAGE events.

	* gdk/gdkinternals.h: added internal prototypes.

1785 1786 1787 1788 1789 1790 1791 1792
2008-05-21  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkalignment.c
	* gtk/gtkarrow.c
	* gtk/gtkbbox.c
	* gtk/gtkcalendar.c
	* gtk/gtkscrolledwindow.c: remove PROP_LAST enum values.

1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817
2008-05-20  Matthias Clasen  <mclasen@redhat.com>

	RH bug 204621 - "GtkPrint" asks for "Letter" size paper when "A4" size
	was chosen

	Patch by Marek Kasik.

	* gtk/gtk.symbols:
	* gtk/gtkprinter.[hc]: Add gtk_printer_get_default_page_size.
	
	* gtk/gtkprintbackend.[hc]: Add fallback implementation.

	* modules/printbackends/file/gtkprintbackendfile.c:
	* modules/printbackends/cups/gtkprintbackendcups.c: Implement
	get_default_page_size.

	* gtk/gtkpagesetupunixdialog.c: When selecting a different printer,
	select its default paper size.

	* gtk/gtkprintunixdialog.c: If no explicit page setup has been set,
	use the printer default.

	* gtk/gtkprintoperation-unix.c: Don't create an empty page setup
	if we don't have a default page setup.

1818 1819 1820 1821 1822
2008-05-20  Gian Mario Tagliaretti  <gianmt@gnome.org>

	* gtk/gtkdnd.c: (gtk_drag_set_icon_pixmap): Fix the docs, the mask param
	can accept NULL for none. Fixes bug #533920.

1823 1824 1825 1826 1827 1828
2008-05-20  Björn Lindqvist  <bjourne@gmail.com>

	* gtk/gtkspinbutton.c: (gtk_spin_button_snap,
	gtk_spin_button_update): Remove two chunks of duplicated
	code (#533733).

1829 1830
2008-05-20 14:27:34  Tim Janik  <timj@imendio.com>

1831 1832 1833
	* reverted recent unapproved changes by Yair Hershkovitz,
	regarding: Bug 503071 – Application direction changes to right
	to left even if theres no translation.
1834

1835 1836 1837 1838 1839 1840
2008-05-19  Richard Hult  <richard@imendio.com>

	* gdk/quartz/gdkwindow-quartz.c: (gdk_window_hide),
	(gdk_window_fullscreen), (gdk_window_unfullscreen): Use
	SetSystemUIMode instead of hiding and showing the menubar.

1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858
2008-05-19  Federico Mena Quintero  <federico@novell.com>

	http://bugzilla.gnome.org/show_bug.cgi?id=322298 - Save dialog
	can't be resized until you expand the "Browse for other folders"
	section.

	* gtk/gtkfilechooserembed.h (struct _GtkFileChooserEmbedIface):
	Removed the "get_resizable" method.
	(_gtk_file_chooser_embed_get_resizable): Removed.

	* gtk/gtkfilechooserembed.c: Removed the _get_resizable() machinery.

	* gtk/gtkfilechooserdefault.c: Likewise.

	* gtk/gtkfilechooserdialog.c
	(file_chooser_widget_default_size_changed): Act as if the dialog
	were always resizable.

1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869
2008-05-19  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkcellrenderer.c
	* gtk/gtkcellrendererpixbuf.c
	* gtk/gtkcellrenderertoggle.c
	* gtk/gtkimagemenuitem.c
	* gtk/gtkmenutoolbutton.c
	* gtk/gtkoptionmenu.c
	* gtk/gtkstatusbar.c
	* gtk/gtktextview.c: s/PROP_ZERO/PROP_0/g, remove LAST_PROP.

1870 1871 1872 1873 1874
2008-05-17  Yair Hershkovitz  <yairhr@gmail.com>

	* gtk/gtkmain.c: gtk_disable_setlocale() - Added a call to
	g_disable_setlocale().

1875 1876 1877 1878 1879 1880 1881 1882 1883
2008-05-17  Richard Hult  <richard@imendio.com>

	* gdk/quartz/gdkwindow-quartz.c:
	(gdk_window_impl_quartz_invalidate_maybe_recurse):
	(gdk_window_quartz_update_idle): Use gdk_threads_add_idle instead
	of g_idle_add. Add a temporary check if the window is already in
	the updates list, since update_area currently doesn't always match
	the backend's state, see bug #530801.

1884 1885
2008-05-13  Tor Lillqvist  <tml@novell.com>

Tor Lillqvist's avatar
Style  
Tor Lillqvist committed
1886
	Bug 496958 - Wacom Bamboo doesn't function with GTK apps in Win32
1887 1888 1889 1890 1891 1892

	* gdk/win32/gdkinput-win32.c (_gdk_input_wintab_init_check): Set
	the "packet rate" of devices to zero instead of 50. This is
	reported to help significantly with Wacom tablet behaviour in GIMP
	and Inkscape. Patch from Thomas Bleeker.

1893 1894 1895 1896 1897 1898 1899 1900
2008-05-12  Richard Hult  <richard@imendio.com>

	* gdk/quartz/gdkevents-quartz.c:
	* gdk/quartz/gdkquartz.h: Remove special casing of menu key events
	as it's no longer necessary; instead the added quartz API to get
	the nsevent from an event should be used. Also move the global
	filter up so it's done before the check for window-less events.

1901 1902 1903 1904 1905 1906 1907 1908
2008-05-12  Tor Lillqvist  <tml@novell.com>

	Bug 532558 - Cannot build dll when using separate builddir

	* gdk/Makefile.am
	* gtk/Makefile.am: .def file belongs in $(srcdir). Patch by Marko
	Lindqvist.