1. 08 Feb, 2002 1 commit
    • Darin Adler's avatar
      isspace -> g_ascii_isspace Remove gdki8n.h include. Remove <ctype.h> · 6ec06edb
      Darin Adler authored
      	* demos/gtk-demo/main.c: (load_file): isspace -> g_ascii_isspace
      	* gdk/x11/gdkim-x11.c: Remove gdki8n.h include.
      	* gdk/x11/gdkkeys-x11.c: Remove <ctype.h> include.
      	* gdk/x11/gdkmain-x11.c: Remove <ctype.h> include.
      	* gtk/fnmatch.c: Remove <ctype.h> include.
      	* gtk/gtkaccelgroup.c: Remove <ctype.h> include.
      	* gtk/gtkaccellabel.c: (gtk_accel_label_refetch): toupper ->
      	g_unichar_toupper, toupper -> g_unichar_totile
      	* gtk/gtkbindings.c: Remove <ctype.h> include.
      	* gtk/gtkfontsel.c: Remove <ctype.h> include.
      	* gtk/gtkiconfactory.c: Remove <ctype.h> include.
      	* gtk/gtkinputdialog.c: Remove <ctype.h> include.
      	* gtk/gtklabel.c: Remove <ctype.h> include.
      	* gtk/gtkmain.c: Remove <ctype.h> include.
      	* gtk/gtkmenu.c: Remove <ctype.h> include.
      	* gtk/gtkoldeditable.c: Remove <ctype.h> include.
      	* gtk/gtkrc.c: Remove <ctype.h> include.
      	* gtk/gtktextbtree.c: Remove <ctype.h> include.
      	* gtk/gtktextiter.c: Remove <ctype.h> include.
      	* gtk/gtktextsegment.c: Remove <ctype.h> include.
      6ec06edb
  2. 01 Feb, 2002 1 commit
  3. 29 Jan, 2002 1 commit
  4. 27 Jan, 2002 1 commit
    • Owen Taylor's avatar
      Return FALSE not true in the grab_widget == NULL case. (Bug reported by · 887c5ad8
      Owen Taylor authored
      Sat Jan 26 19:04:37 2002  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkmain.c (check_is_grabbed): Return FALSE not true
      	in the grab_widget == NULL case. (Bug reported by
      	Padraig O'Briain, #69735)
      
      	* gtk/gtkplug.c (handle_modality_on): Realize the modality
      	window so gtk_widget_event() doesn't complain :-((((.
      887c5ad8
  5. 19 Jan, 2002 1 commit
    • Jeff Garzik's avatar
      Wrap case values in GPOINTER_TO_UINT(). Fixes build with gcc 3.x. · b2923584
      Jeff Garzik authored
      Sat Jan 19 08:47:41 2002  Jeff Garzik  <jgarzik@mandrakesoft.com>
      
              * gdk/linux-fb/gdkproperty-fb.c (gdk_atom_name):
              Wrap case values in GPOINTER_TO_UINT().  Fixes build with gcc 3.x.
      
              * gtk/gtkmain.c:  Include sys/types.h if G_OS_UNIX.
              Fixes build with gcc 3.x and -ansi.
      b2923584
  6. 16 Jan, 2002 1 commit
    • Owen Taylor's avatar
      Stop the timer on destroy, or when we are notified that we are shadowed by · 815ffe2e
      Owen Taylor authored
      Tue Jan 15 18:10:24 2002  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkspinbutton.c (gtk_spin_button_grab_notify): Stop
      	the timer on destroy, or when we are notified that we are
      	shadowed by a modal dialog.
      
      	* gtk/gtkspinbutton.c: Remove explicit gtk_grab_add()/remove() -
      	not needed any more.
      
      	* gtk/gtkmain.c (gtk_grab_notify): Fix problem where notifications
      	weren't sent out for the default grab group.
      
      	* gtk/gtkmain.c (gtk_grab_notify): Fix notification of widgets that
      	were getting events because they were part of the previous grab.
      815ffe2e
  7. 08 Jan, 2002 1 commit
    • Matthias Clasen's avatar
      Doc typo fix. (#68172) · c1808baa
      Matthias Clasen authored
              * gtk/gtksocket.c (gtk_socket_get_id): Doc typo fix. (#68172)
      
              * gtk/gtktreemodel.c (gtk_tree_path_is_descendant): Fix docs.
      
              * gtk/gtktreemodel.c (gtk_tree_model_rows_reordered): Document.
      
              * gtk/gtkwindow.c (gtk_window_remove_accel_group): Fix docs.
      
              * gtk/gtkrc.c (gtk_rc_get_style_by_paths),
              gtk/gtkwidget.c (gtk_widget_get_toplevel,
              gtk_widget_push_composite_child), gtk/gtkdialog.c
              (gtk_dialog_new_with_buttons, gtk_dialog_run): Keep gtk-doc
              from messing up the indentation of inline examples.
      
              * gtk/gtkmain.c, gtk/gtkrc.c: Consistently call g_getenv()
              instead of getenv().
      
              * gtk/gtktreemodel.c, gtk/gtkaccelgroup.c, gtk/gtkclipboard.c,
              gtk/gtkdnd.c, gtk/gtkiconfactory.c, gtk/gtkrc.c,
              gtk/gtkstyle.c, gtk/gtkselection.c: Doc fixes.
      
              * gtk/gtkaccelmap.c (gtk_accel_map_add_filter,
              gtk_accel_map_foreach_unfiltered, gtk_accel_map_load_scanner):
              Document.
      
              * gtk/tmpl/gtksocket.sgml: Mention gtk_socket_get_id()
              instead of GTK_WINDOW_XWINDOW().  (#68172)
      
              * gtk/gtk-sections.txt: Move functions which are documented
              as "private" or "internal" into Private subsections.
      
              * gtk/tmpl/gtkdnd.sgml, gtk/tmpl/gtkobject.sgml,
              gtk/tmpl/gtkrc.sgml, gtk/tmpl/gtktooltips.sgml,
              gtk/tmpl/gtkwidget.sgml, gtk/tmpl/gtkclipboard.sgml,
              gtk/tmpl/gtkstyle.sgml, gtk/tmpl/gtkselection.sgml,
              gtk/tmpl/gtkfeatures.sgml: Minor markup fixes.
      
              * gtk/tmpl/gtksignal.sgml: Add link to GLib signal docs.
      
              * gtk/tmpl/gtkpreview.sgml, gtk/tmpl/gtktext.sgml,
              gtk/tmpl/gtktree.sgml: Remove "deprecated" from short desc.
      
              * gtk/tmpl/gtkrc.sgml: Correct names of default RC files.
      c1808baa
  8. 20 Dec, 2001 1 commit
    • Matthias Clasen's avatar
      More precise documentation about underscores and mnemonics. (#66380) · 3aabcd28
      Matthias Clasen authored
              * gtk/gtklabel.c (gtk_label_new_with_mnemonic),
              gtk/gtkbutton.c (gtk_button_new_with_mnemonic): More precise
              documentation about underscores and mnemonics. (#66380)
      
              * gtk/gtktextiter.c (gtk_text_iter_backward_word_starts): Fix
              cyclic reference in docs.
      
              * gtk/gtklabel.c (gtk_label_set_justify): Correct documentation
              of default value. (#65402)
      
              * gtk/gtkmain.c (gtk_set_locale, gtk_disable_set_locale):
              Markup fixes.
      
              * gdk-pixbuf-io.c, gdk-pixbuf-animation.c, gdk-pixbuf-data.c,
              gdk-pixbuf-loader.c, gdk-pixbuf-scale.c, gdk-pixbuf-util.c,
              gdk-pixdata.c: Markup fixes.
      
              * gtk/text_widget.sgml: More precise wording. (#63388)
      
              * gtk/tmpl/gtksignal.sgml (GTK_SIGNAL_OFFSET): Add docs.
      
              * gtk/resources.sgml: Fix markup of mail URLs.
      
              * gtk/tmpl/gtkpaned.sgml, gtk/tmpl/gtkobject.sgml: Markup fixes.
      
              * gtk/tmpl/gtktoolbar.sgml (gtk_toolbar_{prepend,append}_element):
              Expand documentation. (#60471)
      
              * gtk/tmpl/gtkmain.sgml: Remove misleading information about
              gtk_set_locale().  (#65758)
      3aabcd28
  9. 05 Dec, 2001 1 commit
  10. 13 Nov, 2001 1 commit
    • Tim Janik's avatar
      added gtkaccelmap.sgml. other updates. · d07573c0
      Tim Janik authored
      Mon Nov 12 23:06:38 2001  Tim Janik  <timj@gtk.org>
      
              * added gtkaccelmap.sgml. other updates.
      
      Mon Nov 12 23:08:37 2001  Tim Janik  <timj@gtk.org>
      
      	* gtk/maketypes.awk: fix type utils generation on unix.
      
      	* gtk/gtkaccelmap.[hc]: new files, implementing a global accelerator
      	registry.
      
      	* gtk/gtkaccelgroup.[hc]: major API/implementation revamp:
      	removed GTK_ACCEL_SIGNAL_VISIBLE, gtk_accel_group_get_default,
      	gtk_accel_group_get_entry, gtk_accel_group_(un)lock_entry,
      	gtk_accel_group_add/remove, gtk_accel_group_handle_add/remove,
      	gtk_accel_group_create_add/remove, gtk_accel_group_entries_from_object.
      	introduced ::accel_changed signal for change notification, and
      	gtk_accel_group_connect/disconnect to connect closures to accel groups.
      	made gtk_accel_group_attach/detach and gtk_accel_group_activate private
      	functions.
      	deprecated gtk_accel_group_ref/unref.
      
      	* gtk/gtkaccellabel.[hc]: changes to make accellabels pay attention
      	to accel group changed notification and basically operate on closures.
      	removed gtk_accel_label_get_accel_object and
      	gtk_accel_label_set_accel_object.
      	introduced gtk_accel_label_set_accel_closure, and for convenience,
      	gtk_accel_label_set_accel_widget.
      
      	* gtk/gtkitemfactory.[hc]: removed accelerator propagation code
      	which mostly moved into gtkaccelmap.[hc].
      	removed gtk_item_factory_parse_rc*, gtk_item_factory_dump_*
      	and gtk_item_factory_print_func.
      
      	* gtk/gtkmain.c: call _gtk_accel_map_init().
      
      	* gtk/gtkmenuitem.[hc]: introduced gtk_menu_item_set_accel_path(),
      	that associates an accelerator path with menu items, through which
      	persistent accelerator settings on menu items are enabled.
      
      	* gtk/gtkmenu.[hc]: added gtk_menu_set_accel_path() so accelerator
      	paths of menu item can be default constructed to allow installation
      	of accelerators on menu items that don't come with an accelerator
      	binding by default.
      
      	* gtk/gtksettings.c: fix STRING type rc settings by special casing
      	them appropriately in the parser.
      
      	* gtk/gtksignal.[hc]: allow a class function offset of 0 for
      	gtk_signal_newv().
      
      	* gtk/gtkwidget.[hc]: accelerator API revamp.
      	removed ::accelerator_add/remove signals, gtk_widget_accelerator_signal,
      	gtk_widget_accelerators_locked, gtk_widget_remove_accelerators and
      	gtk_widget_(un)lock_accelerators.
      	accelerators maintained through gtk_widget_add/remove_accelerator()
      	are not runtime changable now, the correct sequence to setup a
      	widget for runtime changable accelerators is now:
      	  gtk_accel_map_add_entry(accel_path, key, mods);
      	  _gtk_widget_set_accel_path(widget, accel_path, accel_group);
      
      	* gtk/gtkwindow.[hc]: accelerator changes, proxy and coalesce accel
      	group changes (as well as mnemonic changes) through the new signal
      	::accels_changed.
      
      Sat Nov 10 12:08:56 2001  Tim Janik  <timj@gtk.org>
      
      	* gtk/gtksettings.c (_gtk_settings_parse_convert): properly handle
      	GString->string conversions.
      d07573c0
  11. 06 Nov, 2001 1 commit
  12. 04 Nov, 2001 1 commit
  13. 02 Nov, 2001 1 commit
  14. 29 Oct, 2001 1 commit
    • Tor Lillqvist's avatar
      Updates. · 06b4ef65
      Tor Lillqvist authored
      2001-10-29  Tor Lillqvist  <tml@iki.fi>
      
      	* README.win32: Updates.
      
      	* gtk-zip.sh.in: New file, used to build distribution package for
      	Windows.
      
      	* gdk/gdkglobals.c: Mark gdk_threads_mutex for DLL export when
      	applicable with GDKVAR.
      
      	* gtk/gtk.def: Update.
      
      	* gtk/gtkfilesel.c: Include <winsock.h> (if available) for
      	gethostname().
      
      	* gtk/gtkmain.c
      	* gtk/gtkrc.c: (Win32) Save actual DLL name for later use in DLL
      	entry function. Avoid hardcoded paths GTK_LIBDIR, GTK_SYSCONFDIR,
      	GTK_DATA_PREFIX and GTK_LOCALEDIR, instead add functions that call
      	g_win32_get_package_installation_subdirectory() with the actual
      	DLL name saved above. Redefine above directory name macros to call
      	these functions. Remove some ifdefs.
      
      	* gtk/maketypes.awk: Output GTKTYPEBUILTINS_VAR (that marks
      	variable for export on Win32) also to the _vars file.
      
      	Changes for autoconfiscated build on Win32, and addition of Win32
      	backend to the related files:
      
      	* configure.in: Like in GLib, set LT_CURRENT_MINUS_AGE for use
      	when forming DLL name in some files. Set MS_LIB_AVAILABLE is
      	lib.exe is available. Call AC_LIBTOOL_WIN32_DLL. Set
      	PLATFORM_WIN32, OS_WIN32 and USE_WIN32 automake conditionals. Add
      	win32 target, using pangowin32. Don't use the
      	-export-symbols-regex option on Win32, we use .def files to list
      	exported symbols. Check <winsock.h> (for gethostname() in
      	gtkfilesel.c). Enclose nested AC_CHECK_* macros in brackets to
      	prevent premature m4 expansion.
      
      	* acconfig.h: Add HAVE_WINTAB.
      
      	* gdk/Makefile.am: Add libgdk-win32-1.3.la target and associated
      	macros and rules. Use -no-undefined on Win32. Use gdk.def file. If
      	MS_LIB_AVAILABLE, build MS import library. Install the import
      	libraries. If HAVE_WINTAB, link with the Wintab library.
      
      	* gtk/Makefile.am: Add libgtk-win32-1.3.la target and associated
      	macros and rules. Use -no-undefined on Win32. Use gtk-win32.def
      	file. Install import libraries.
      06b4ef65
  15. 23 Oct, 2001 1 commit
    • Owen Taylor's avatar
      Remove G_DISABLE_CONST_RETURNS. · 4e32ede2
      Owen Taylor authored
      Tue Oct 23 11:53:00 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/Makefile.am (INCLUDES): Remove G_DISABLE_CONST_RETURNS.
      
      	* gtk/gtkfontsel.[ch]: Make gtk_font_selection_get_font()
      	G_CONST_RETURN. (Murray Cumming)
      
      	* gtk/gtkfontsel.c (gtk_font_selection_dialog_get_preview_text):
      	Make G_CONST_RETURN.
      
      	* gtk/gtkfilesel.c (open_user_dir): Fix bug with freeing
      	results of g_get_home_dir().
      
      	* gtk/gtkfilesel.c: Make filesel->fileop_file a duplicated
      	copy. Storing the return from gtk_entry_get_text() is evil.
      
      	* gtk/gtkcombo.c gtk/gtkcellrenderertext.c gtk/gtkbindings.c
      	gtk/gtkfilesel.c gtk/gtkfontsel.c gtk/gtkimmodule.c
      	gtk/gtkobject.c gtk/gtkoldeditable.c gtk/gtktreedatalist.c
      	gtk/gtksignal.c: Add const.
      
      	* gdk/x11/gdkkeys-x11.c (get_direction): Add missing const.
      
      	* gtk/gtktreeview.c: Namespace object data keys to be safe, even
      	if we are setting them on private widgets.
      
      	* gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
      	Duplicate entry->text before setting it as object data.
      4e32ede2
  16. 19 Oct, 2001 1 commit
  17. 10 Oct, 2001 1 commit
    • Owen Taylor's avatar
      Call setlocale (LC_ALL, ""). (#60606) · dfb3a1b0
      Owen Taylor authored
      Wed Oct 10 12:48:38 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkmain.c (gtk_init_check): Call setlocale (LC_ALL, "").
      	(#60606)
      
      	* gtk/gtkmain.c (gtk_disable_setlocale): Add function
      	to disable calling setlocale (LC_ALL, "").
      
      	* gtk/gtkmain.c (gtk_set_locale): Indicate in the
      	docs that this function is not typically useful.
      
      	* gdk/x11/{gdkim-x11.c,gdkmain-x11.c,gdkprivate-x11.h}:
      	Automatically initialize GDK for the current locale
      	on gdk_init(). Don't reset locale to C when
      	XSupportsLocale() fails.
      
      	* gdk/linux-fb/gdkim-fb.c (gdk_set_locale): Remove
      	useless checks for UTF-8 locale breakage that mattered
      	only for X.
      
      	* examples/calendar/calendar.c
      	tests/{testgtk.c,testtext.c,testcalendar.c}: Remove calls to
      	gtk_set_locale().
      
      	* gtk/gtkiconfactory.c gtk/gtkitemfactory.c:
      	gdk_pixbuf_new_from_stream => gdk_pixbuf_new_from_inline.
      dfb3a1b0
  18. 03 Oct, 2001 1 commit
    • jacob berkman's avatar
      s/retrive/retrieve/ · b02befc6
      jacob berkman authored
      2001-10-03  jacob berkman  <jacob@ximian.com>
      
      	* gtk/gtkwidget.c (gtk_widget_style_get_property):
      	* gtk/gtkstyle.c (_gtk_style_peek_property_value):
      	* gtk/gtksettings.c (apply_queued_setting):
      	* gtk/gtkmain.c (gtk_init_check):
      	* gtk/gtkcontainer.c (gtk_container_child_get_property):
      	s/retrive/retrieve/
      b02befc6
  19. 21 Sep, 2001 1 commit
    • Hans Breuer's avatar
      updated externals · 293d7877
      Hans Breuer authored
      2001-09-21  Hans Breuer  <hans@breuer.org>
      
      	* gdk/gdk.def :
      	* gtk/gtk.def : updated externals
      
      	* gtk/gtkmain.h : define get_gtk_win32_directoty ()
      	* gtk/gtkmain.c (find_module) : don't use module_name after freeing it.
      	Also handle that Win32 pathes cann't be hard-coded
      
      	* gtk/gtkrc.c : use get_gtk_win32_directoty () to cleanup the various
      	module, themes etc directory calculations
      
      	* gdk/win32/gdkgeometry-win32.c : some more hacking to get coordinates
      	>16 bit right. The size limit within Win9x appears _not_ to be 32767
      	but slightly smaller ...
      
      	* gdk/win32/gdkwindow-win32.c : use impl->position_info to avoid
      	>16 bit clipping. Added dummy body for gdk_window_set_icon_list ()
      
      	* gdk/win32/gdkdrawable-win32.c : implement gdk_win32_drawable_get_handle ()
      
      	* gdk/win32/gdkevents-win32.c : some tweaking to get better expose
      	handling. I'm not sure if it is better now, but at least not worse
      
      	* gdk/win32/makefile.msc : define INSIDE_GDK_WIN32, some cleanup
      
      	* gdk/win32/gdkwin32.h : reflect recent API restrictions
      293d7877
  20. 11 Sep, 2001 1 commit
    • Owen Taylor's avatar
      Implement a search path for GTK+ modules. · 69915aa7
      Owen Taylor authored
      Sat Sep  8 16:19:02 2001  Owen Taylor  <otaylor@redhat.com>
      
       	* gtk/gtkmain.c: Implement a search path for GTK+ modules.
      
       	* configure.in gtk/gtkrc.c gtk/Makefile.am: Look for modules
       	in gtk-2.0/<type>/major.minor.(micro-binary_age) rather
       	than in gtk-2.0/major.minor.micro/<type>/. This
       	works better for a search path for modules.
      
       	* gtk+-2.0.pc.in gtk+-2.0-uninstalled.pc.in: Add
       	gtk_binary_version variable holding major.minor.(micro-binary_age).
      
       	* modules/input/Makefile.am (moduledir): Fix installation
       	directory to match change in lookup location.
      
       	* gtk/gtkmain.c (gtk_init_check): Remove OS/2 code for dll
       	suffixes. Needs to be handled in g_module_build_path().
      
      	* gtk/gtkrc.c gtk/queryimmodules.c: Use g_build_filename() where
      	appropriate.
      69915aa7
  21. 08 Sep, 2001 1 commit
    • Havoc Pennington's avatar
      remove CellRendererTextPixbuf · ecc13fb5
      Havoc Pennington authored
      2001-09-08  Havoc Pennington  <hp@pobox.com>
      
      	* gtk/gtk-docs.sgml: remove CellRendererTextPixbuf
      
      	* gtk/resources.sgml: add section on mailing lists, bugzilla, etc.
      
      	* gtk/tmpl/gtkaccelgroup.sgml: add long description
      
      	* gtk/gtk-sections.txt: reorder accel group section; probably need
      	to delete most of it
      
      	* gtk/tmpl/gtkmain.sgml: Clean it up a little bit
      
      	* gtk/gtk-docs.sgml: rearrange the list of "core/misc" sections so
      	that useful things are near the top and stupid junk is near the
      	bottom.
      
      	* gtk/tmpl/gtkfeatures.sgml: fix/finish this section
      
      	* gtk/gtk-docs.sgml: create a separate section for
      	overview/tutorial material and special notes, and put the
      	reference docs for the "misc non-widget" stuff into its own
      	section.
      
      	* gtk/compiling.sgml: write this section
      
      	* gtk/gtk-docs.sgml: The intro section weirdly had two paragraphs
      	that said the same thing. Delete one of them.
      ecc13fb5
  22. 24 Aug, 2001 1 commit
    • Jonathan Blandford's avatar
      Add "use_align" to give people the option to just make a cell visible. · 747b7253
      Jonathan Blandford authored
      Fri Aug 24 16:03:45 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): Add
      	"use_align" to give people the option to just make a cell visible.
      
      	* gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): fix bug where
      	we were scrolling past the end of the tree.
      
      	* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_start):
      	rename gtk_tree_view_column_pack_start_cell_renderer to
      	gtk_tree_view_column_pack_start.  Same for pack_end, and clear.
      747b7253
  23. 23 Aug, 2001 1 commit
    • Owen Taylor's avatar
      [ Patch from Sebastian Wilhelmi, 52790 ] · a2d60d44
      Owen Taylor authored
      Wed Aug 22 19:15:39 2001  Owen Taylor  <otaylor@redhat.com>
      
      	[ Patch from Sebastian Wilhelmi, 52790 ]
      
      	* gtk/gtkversion.h.in gtk/gtk.h: New file replacing gtkcompat.h
      
      	* gdk/gdkcompat.h gdk/gdk*.h gtk/gtkcompat.h.in gtk/gtk*.h:
      	Move compatibility macros from g[dt]kcompat.h to within
      	#ifndef G[DT]K_DISABLE_DEPRECATED in each file.
      
      	* gdk/gdk-pixbuf-csource.c: Fix up include of gtkcompat.h.
      
      	* demos/Makefile.am demos/gtk-demo/Makefile.am
                docs/reference/gdk-pixbuf/Makefile.am modules/input/Makefile.am
                tests/Makefile.am: Remove references to -G[DT]K_DISABLE_DEPRECATED.
      
      	* demos/{pixbuf-demo.c,testpixbuf-drawable.c,testpixbuf-save.c,
                       testpixbuf.c}: Fix usages of deprecated functions.
      a2d60d44
  24. 15 Aug, 2001 1 commit
  25. 18 Jul, 2001 1 commit
    • Owen Taylor's avatar
      Patch from Matthias Clasen to remove remove all instances of · 4e2b60ac
      Owen Taylor authored
      Wed Jul 18 19:28:46 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/*.c: Patch from Matthias Clasen to remove remove
      	all instances of g_return_if_fail (foo != NULL); that are
      	immediately before a g_return_if_fail (GTK_IS_FOO (foo));
      	since the second check catches the NULL anyways.
      4e2b60ac
  26. 12 Jul, 2001 1 commit
    • Owen Taylor's avatar
      Formatting fixes from multihead brnach. [ mostly foo(bar) => foo (bar) ] · 79d45ab8
      Owen Taylor authored
      Thu Jul 12 13:43:27 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkclist.c gtk/gtkcolorsel.c gtk/gtkcombo.c
      	  gtk/gtkctree.c gtk/gtkcurve.c gtk/gtkentry.c
      	  gtk/gtkfontsel.c gtk/gtkhandlebox.c
      	  gtk/gtkimcontextsimple.c gtk/gtkmain.c gtk/gtkmenu.c
      	  gtk/gtkmenuitem.c gtk/gtkoptionmenu.c gtk/gtkpixmap.c
      	  gtk/gtkselection.c gtk/gtktextdisplay.c gtk/gtktextview.c
      	  gtk/gtktooltips.c gtk/gtkwidget.c gtk/gtkwindow.c:
      	Formatting fixes from multihead brnach. [ mostly foo(bar) => foo (bar) ]
      79d45ab8
  27. 03 Jul, 2001 1 commit
    • Owen Taylor's avatar
      For XEMBED embedding add a _XEMBED_INFO property to the client with · f409cd9b
      Owen Taylor authored
      Mon Jul  2 16:53:25 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/xembed.h gtk/gtkplug.c gtk/gtksocket.c: For
      	XEMBED embedding add a _XEMBED_INFO property to the
      	client with version number and a "mapped" flags.
      	Use the mapped flag instead of the racy MapRequestEvent
      
              * gtk/gtksocket.c: Clean up the gtk_socket_steal()
      	code to reliably set things (when the child is a passive
      	embedder participating in the XEMBED protocol) intead
      	of just being a hack for embedding non-participating
      	programs. Fix various bugs and race conditions.
      
      	* gtk/gtksocket.[ch] gtk/gtkplug.[ch]: Make local embedding
      	work by simply making the GtkSocket the gtk parent
      	of the GtkPlug. Set a flag in this case and make
      	the GtkPlug work like a normal container by overriding
      	methods such as check_resize and "chaining past" GtkWindow
      	to GtkBin.
      
       	* gtk/gtkentry.c (gtk_entry_real_activate)
      	  gtk/gtkmain.c (gtk_propagate_event):
       	Eliminate use of gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW).
      
      	* gtk/gtkwidget.c (gtk_widget_get_toplevel,
      	gtk_widget_get_ancestor):
      	Explain	why gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW)
      	might not give the expected result and recommend
      	an alternative.
      
      	* tests/testsocket.c tests/testsocket_child.c
      	tests/testsocket_common.c tests/Makefile.am: Extended
      	to test different type of adding plugs to sockets
      	(local,active,passive),	and to test mapping/unmapping
      	the plug.
      
       	* gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Don't
       	mark the window as destroyed until after we
       	called _gdk_windowing_window_destroy().
      	(_gdk_windowing_window_destroy() may use GDK functions
      	on the window.)
      
       	* gdk/x11/gdkinput.c: Remove the check for finalization -
       	devices can be finalized under some circumnstances.
      
       	* gdk/x11/gdkinput-x11.c (gdk_input_device_new): Fix
       	small problem with GDK_TYPE_DEVICE.
      f409cd9b
  28. 28 Jun, 2001 1 commit
    • Tim Janik's avatar
      !GTK_OBJECT_DESTROYED() -> GTK_WIDGET_REALIZE() for resize queueing. · 00f85bf8
      Tim Janik authored
      Thu Jun 28 23:53:31 2001  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkwidget.c (gtk_widget_hide): !GTK_OBJECT_DESTROYED() ->
              GTK_WIDGET_REALIZE() for resize queueing.
      
              * gtk/gtkmain.c (gtk_main_do_event): !GTK_OBJECT_DESTROYED() ->
              GTK_WIDGET_REALIZE() for post event delivery destruction upon
              GDK_DESTROY.
      
              * gtk/gtkwidget.c: added GtkWidget::event-after notification signal, to
              sompensate for former (pre-2.0) connect_after() facility.
              (gtk_widget_send_expose):
              (gtk_widget_event): assert the widget is realized, since event delivery
              to non-realized widgets is essentially a bug. event handlers should
              be able to unconditionally rely on widget->window (unless they
              emit events on their own which can trigger widget destruction).
              (gtk_widget_event_internal): removed old outdated GTK_OBJECT_DESTROYED()
              logic. event delivery happens as follows:
              a) emission of GtkWidget::event (RUN_LAST handler). returns was_handled.
              b) if !was_handled in (a) and the widget is still realized, emit event-
                 specific signal (RUN_LAST handler). returns was_handled.
              c) emission of GtkWidget::event-after for notification if the widget is
                 still realized (regardless of was_handled from previous stages, no
                 class handler). no return value.
              d) was_handled gets passed on to caller, to determine further
                 propagation. if the widget got unrealized meanwhile, was_handled
                 is returned as TRUE.
      
              * gdk/gdkevents.[hc]: added gdk_event_get_root_coords() and
              gdk_event_get_coords().
      00f85bf8
  29. 25 Jun, 2001 1 commit
    • Owen Taylor's avatar
      Add a special size for drag-and-drop GTK_ICON_SIZE_DND (Default to 32x32) · 1988e137
      Owen Taylor authored
      Sun Jun 24 21:34:32 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkenums.h gtk/gtkiconfactory.c: Add a special size for
      	drag-and-drop GTK_ICON_SIZE_DND (Default to 32x32)
      
      	* gtk/gtkdnd.c (gtk_drag_dest_set_target_list): Fix problem
      	with un'reffing wrong list reported by Jeff Franks.
      
      	* gtk/gtkdnd.[ch] (_gtk_drag_{source,}dest_handle_event): _prefix.
      
      	* gtk/gtkdnd.c (gtk_drag_set_icon_default): Use GTK_STOCK_DND
      	for the default icon. Remove inline XPM.
      
      	* gtk/gtkstock.h gtk/gtkiconfactory.c:
      	Add GTK_STOCK_DND GTK_STOCK_DND_MULTIPLE (Currently, stock_new
      	is used for GTK_STOCK_DND, but it is a bit too small.)
      
      	* gtk/stock-icons/stock_dnd_multiple.png
      	gtk/stock-icons/Makefile.am: New stock icon moved from gnome-libs.
      
      	* gtk/gtkdnd.c (gtk_drag_source_event_cb): Only return
      	TRUE when starting a drag. In other cases, we are
      	just observing. (#52995)
      
      	* gtk/gtkdnd.[ch] (gtk_drag_set_icon_{stock,pixbuf}): Add
      	function to set the icon for a drag from a GdkPixbuf
      	or stock ID.
      
      	* gtk/gtkdnd.[ch] (gtk_drag_source_set_icon_{stock,pixbuf}):
      	Likewise, for drag sources.
      
      	* gtk/gtkdnd.h: Deprecate gtk_drag_set_default_icon.
      	(Now should be done using the stock system.)
      1988e137
  30. 22 Jun, 2001 1 commit
    • Hans Breuer's avatar
      updated externals · f0ee2996
      Hans Breuer authored
      2001-06-22  Hans Breuer  <hans@breuer.org>
      
      	* gdk/gdk.def : updated externals
      
      	* gdk/win32/gdkdrawable-win32.c : corrected some casts
      	in GDK_NOTEs
      
      	* gdk/win32/gdkevents-win32.c : use _gdk_windowing_window_get_offsets
      	to translate coordinates to the internal > 16 bit system
      	Try to handle WM_WINDOWPOSCHANGED to get better performance for
      	when moving/resizing
      
      	* gdk/win32/gdkkeys-win32.c : implement gdk_keymap_get_default ()
      	and gdk_keymap_get_direction (). The latter is untested for
      	the RTL case
      
      	* gtk/gtk.def : updated externals
      
      	* gtk/gtkmain.c : gtk_get_default_language () should reurn the result
      	from pango_language_from_string (), not an already freed pointer
      
      	* gtk/stock-icons/stock_menu_sort_ascending.png : PNGs need to be
      	binary (-kb) to be useable on windoze
      f0ee2996
  31. 21 Jun, 2001 1 commit
    • Owen Taylor's avatar
      Handle the case without XKB properly. · d809ceee
      Owen Taylor authored
      Thu Jun 21 13:42:01 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/x11/gdkkeys-x11.c (gdk_keymap_get_direction): Handle
      	the case without XKB properly.
      
      	* gtk/gtkrc.c (gtk_rc_set_default_files): Remove
      	unused gtk_rc_auto_parse variable.
      
      	* gtk/gtkrc.[ch] gtk/gtkstyle.c docs/Changes-2.0.txt:
      	Remove gtk_rc_set_image_loader(), gtk_rc_load_image(), no
      	longer needed with GdkPixbuf.
      
      	* gtk/gtkrc.c (_gtk_rc_init): Make private.
      d809ceee
  32. 14 Jun, 2001 2 commits
    • Owen Taylor's avatar
      Add a GtkWindowGroup struct that allows grouping together multiple windows · cf2fab90
      Owen Taylor authored
      Fri Jun  8 17:56:52 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkwindow.[ch] gtk/gtkmain.c: Add a GtkWindowGroup struct
      	that allows grouping together multiple windows so that grabs
      	within that set of windows only affect those windows.
      
      	* gtk/gtkmain.c gtk/gtkwidget.[ch]: Add a "grab_notify"
      	signal for notification when a widget becomes shadowed
      	by a grab or is no longer shadowed by a grab.
      
      	* gtk/gtkwidget.c (gtk_widget_propagate_state)
      	  gtk/gtkmain.c: (gtk_widget_grab_add): Don't allow
      	insenstive widgets to maintain a grab.
      cf2fab90
    • Owen Taylor's avatar
      Add missing gdk_rectangle_get_type() prototype. · 22491fd6
      Owen Taylor authored
      Mon Jun 11 18:15:16 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdk.h: Add missing gdk_rectangle_get_type() prototype.
      
      	* gtk/gtk[hv]scale.c: Include math.h, stdlib.h
      
      	* gdk/gdkpango.h gtk/gtkclist.c gtk/gtkentry.c gtk/gtkmain.[ch]
      	  gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtktextbuffer.c
      	  gtk/gtktextdisplay.c gtk/gtktextiter.[ch]
      	  gtk/gtktextlayout.c gtk/gtktexttag.[ch] gtk/gtkwidget.c: Adapt
      	  to recent changes in Pango.
      
      	* tests/testgtk.c: Set language tags with gtk_label_set_markup()
      	  to test whether the basic engine honors them.
      22491fd6
  33. 12 May, 2001 1 commit
  34. 09 May, 2001 1 commit
  35. 29 Apr, 2001 1 commit
    • Tim Janik's avatar
      moved GtkAnchorType and GtkSideType from gtkpacker.h to gtkenum.h. · c63e37b4
      Tim Janik authored
      Sun Apr 29 03:02:02 2001  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkpacker.h:
              * gtk/gtkenums.h: moved GtkAnchorType and GtkSideType from gtkpacker.h
               to gtkenum.h.
      
              * gtk/gtkmain.c (gtk_main_do_event): silence compiler (GDK_SETTING not
              handled in switch).
      
              * gtk/Makefile.am:
              (gtk.defs): generate enum portions with  glib-mkenums.
              (gtktypebuiltins_evals.c): generate this with glib-mkenums.
              got rid of makeenums.pl and makeenums.awk in distributed tarballs.
      
              * gtk/gtkaccelgroup.c (gtk_accel_group_add): refined havocs warning
              addition.
      
              * docs/Changes-2.0.txt: keep a note on signal handlers now
              not getting emitted during the emission they were connected within.
      c63e37b4
  36. 26 Apr, 2001 1 commit
    • Owen Taylor's avatar
      Remove deprecation of gtk_window_set_default_size() until patch adding · 604828e8
      Owen Taylor authored
      Thu Apr 26 10:40:41 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkwindow.h: Remove deprecation of gtk_window_set_default_size()
      	until patch adding gtk_window_set_size() is recommitted.
      
      	* **Makefile.am configure.in gdk/x11/gdkim-11.c
      	  gtk/gtkmain.c gtk/gtkimmulticontext.c gtk/gtkmain.c
      	  gtk/gtkrc.c: Remove all traces of -DX_LOCALE support.
      	  (#10784)
      604828e8
  37. 03 Apr, 2001 1 commit
    • Tim Janik's avatar
      use more elaborate variable names. · bb985d72
      Tim Janik authored
      Tue Apr  3 05:09:07 2001  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkmain.c (_gtk_boolean_handled_accumulator): use more elaborate
              variable names.
      
              * gtk/makeenums.pl: touch this so enum files get remade.
      bb985d72
  38. 02 Apr, 2001 2 commits
    • Owen Taylor's avatar
      Add GdkEventSetting event for notification of changes to system settings, · b52b326d
      Owen Taylor authored
      Mon Apr  2 18:18:07 2001  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdkevents.h: Add GdkEventSetting event for notification
      	of changes to system settings, gdk_setting_get() to retrieve
      	a single system setting.
      
      	* gdk/x11/gdkevents-x11.c: Bridge gdk_setting_get() and GdkEventSetting
      	to the draft XSETTINGS mechanism.
      
      	* gdk/x11/xsettings-{common,client}.[ch]: Sample-implementation of
      	XSETTINGS.
      
      	* gtk/gtkmain.c gtk/gtksettings.[ch]: Propagate notification
      	of GDK settings changes to the GtkSettings object.
      
      	* gdk/gdkevents.[ch] gdk/gtk/gtksettings.c: Hook up the
      	double-click-timeout property to GDK.
      
      	* gdk/gdkcolor.[ch] gdk/gdkvisual.h gdk/gdkevent.[ch] gdk/gdkfont.[ch]:
      	Define GDK boxed types here.
      
      	* gdk/Makefile.am gdk/makeenums.pl: Generate source files
      	gdk/gdkenumtypes.[ch] for enum definitions.
      
      	* gtk/gtkcompat.h: Add defines for GTK_TYPE_GDK_*
      	* gtk/gtk-boxed.defs: Comment out GDK types
      	* gtk/gtktypeutils.h: Remove GDK types
      	* gtk/Makefile.am: No longer scan GDK headers for enumerataions
      b52b326d
    • Owen Taylor's avatar
      Applied patch from Ron Steinke to add signal accumulators so that signals · 0aef43bc
      Owen Taylor authored
      Mon Apr  2 16:41:08 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* Applied patch from Ron Steinke to add signal accumulators
      	so that signals with the convention 'TRUE return means
      	handled' stop emission on a TRUE return.
      
      	* gtk/gtkmain.[ch]: Add private accumulator
      	_gtk_boolean_handled_accumulator, used throughout GTK+.
      
      	* gtk/gtkspinbutton.c: Add accumulator for ::output.
      
      	* gtk/gtktipsquery.c: Add accumulator for ::widget_selected
      
      	* gtk/gtkwidget.c: Add accumulators for event signals,
      	::drag_motion, ::drag_drop. Use _gtk_boolean_handled_accumator
      	for ::mnemonic-activate.
      
      	* gtk/gtkwindow.c: Add accumulator for ::frame_event
      
      Mon Apr  2 16:24:21 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkwidget.c: Add missing include.
      0aef43bc