1. 28 Oct, 2003 1 commit
  2. 23 Oct, 2003 1 commit
    • Owen Taylor's avatar
      Fix some unused variables. · 3724a591
      Owen Taylor authored
      Tue Oct 21 16:12:51 2003  Owen Taylor  <otaylor@redhat.com>
      
              * demos/gtk-demo/menus.c (do_menus): Fix some unused
              variables.
      
              * gtk/gtkmain.c (_gtk_get_lc_ctype): Fix an unused
              variable warning
      3724a591
  3. 30 Sep, 2003 1 commit
    • Matthias Clasen's avatar
      Doc formatting tweaks. · dbdc43be
      Matthias Clasen authored
      2003-10-01  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkmain.c: Doc formatting tweaks.
      
      	* gtk/gtktoolitem.c (gtk_tool_item_set_is_important): Fix a typo.
      
      	* gtk/gtkcheckmenuitem.h (gtk_check_menu_item_set_draw_as_radio):
      	Use the same parameter names as in .c file, to pacify gtk-doc.
      
      	* gtk/gtktoggletoolbutton.[hc]:
      	* gtk/gtktoolbutton.[hc]:
      	* gtk/gtktoolitem.[hc]:
      	* gtk/gtktoolbar.[hc]:
      	* gtk/gtkcolorbutton.[hc]:
      	* gtk/gtkfontbutton.[hc]:
      	* gtk/gtkalignment.[hc]: Define GET_PRIVATE macros in the
      	source, not in the header.
      
      	* gtk/gtkcheckmenuitem.c (gtk_check_menu_item_[sg]et_draw_as_radio):
      	Document these as 2.4 API additions.
      
      	* gtk/tmpl/gtkaction.sgml: Fix cross reference to GtkMenuMerge.
      
      	* gtk/gtk-sections.txt: Additions.
      
      	* gtk/tmpl/gtkitemfactory.sgml: Add hint to use #GtkUIManager instead.
      dbdc43be
  4. 20 Sep, 2003 1 commit
    • Tor Lillqvist's avatar
      Don't use zip -r on the etc directory, to avoid including editor backup · 71e847d1
      Tor Lillqvist authored
      2003-09-20  Tor Lillqvist  <tml@iki.fi>
      
      	* gtk-zip.sh.in: Don't use zip -r on the etc directory, to avoid
      	including editor backup files. List files we want explicitly.
      
      	* gtk/gtkmain.c (_gtk_get_lc_ctype): New function. On Unix, just
      	calls setlocale (LC_CTYPE, NULL). On Windows, looks for the
      	LC_ALL, LC_CTYPE and LANG environment variables, than calls
      	g_win32_getlocale().
      
      	(gtk_get_default_language): Code snippet moved to above function,
      	call it.
      
      	* gtk/gtkimmulticontext.c (gtk_im_multicontext_get_slave)
      	* gtk/gtkrc.c (gtk_rc_context_parse_file): Call
      	_gtk_get_lc_ctype() instead of setlocale().
      71e847d1
  5. 24 Feb, 2003 1 commit
    • Sven Neumann's avatar
      fixed documentation. · 3e1a690c
      Sven Neumann authored
      2003-02-24  Sven Neumann  <sven@gimp.org>
      
      	* gtk/gtkmain.c (gtk_get_default_language): fixed documentation.
      3e1a690c
  6. 12 Jan, 2003 1 commit
    • Tor Lillqvist's avatar
      Merge from stable: · 4a3c812b
      Tor Lillqvist authored
      2003-01-12  Tor Lillqvist  <tml@iki.fi>
      
      	Merge from stable:
      
      	* gtk/gtkmain.c: Move inclusion of config.h and gtkintl.h earlier,
      	as gtkprivate.h redefines GTK_LOCALEDIR on Win32, for run-time
      	lookup.
      
      	* gdk/Makefile.am (libgdk_win32_2_0_la_DEPENDENCIES): Depend on
      	gdk.def.
      
      	* gdk/gdk.def
      	* gtk/gtk.def: Add some missing entries. Thanks to Kenichi SUTO.
      
      	* gtk-zip.sh.in (DEVZIP): Add bin/{gtk-query-immodules-2.0,
      	gtk-demo}.exe and share/gtk-2.0.
      
      	* gdk/win32/gdkwindow-win32.c (gdk_window_set_skip_taskbar_hint):
      	Implement by setting or clearing the WS_EX_TOOLWINDOW extended
      	window style.
      	(gdk_window_set_type_hint): Add all cases to the switch (not all
      	do anything, though). Handle GDK_WINDOW_TYPE_HINT_TOOLBAR by
      	calling gdk_window_set_skip_taskbar_hint(). This means that GTK
      	won't know that the skip_taskbar hint is on for the window, is
      	this bad?
      4a3c812b
  7. 12 Dec, 2002 1 commit
  8. 20 Nov, 2002 1 commit
    • Manish Singh's avatar
      add -DGTK_DISABLE_DEPRECATED. #undef it at the top of gtktypebuiltins.c. · bc035915
      Manish Singh authored
      Tue Nov 19 17:05:51 2002 Manish Singh  <yosh@gimp.org>
      
      	* gtk/Makefile.am: add -DGTK_DISABLE_DEPRECATED. #undef it at the
      	top of gtktypebuiltins.c.
      
      	* gtk/gtkclist.c
      	* gtk/gtkcombo.c
      	* gtk/gtkctree.c
      	* gtk/gtklist.c
      	* gtk/gtklistitem.c
      	* gtk/gtkoldeditable.c
      	* gtk/gtkpixmap.c
      	* gtk/gtkpreview.c
      	* gtk/gtksignal.c
      	* gtk/gtktext.c
      	* gtk/gtktipsquery.c
      	* gtk/gtktree.c
      	* gtk/gtktreeitem.c
      	* gtk/gtktypeutils.c: #undef GTK_DISABLE_DEPRECATED, deprecated widgets
      	and compat code.
      
      	* gtk/gtkcolorsel.c: move gtk_color_selection_set_color implementation
      	to set_color_internal, and use that. The deprecated function now
      	merely wraps it.
      
      	* gtk/gtkfontsel.c: same as above, except with
      	gtk_font_selection_get_font.
      
      	* gtk/gtknotebook.c: same as above, except with
      	gtk_notebook_set_homogeneous, and gtk_notebook_set_tab_{border,
      	hborder,vborder}.
      
      	* gtk/gtkprogressbar.c: same as above, except with
      	gtk_progress_bar_set_{bar_stype,discrete_blocks,activity_step,
      	activity_blocks}.
      
      	* gtk/gtkstyle.c: same as above, except with gtk_style_get_font.
      
      	* gtk/gtkwidget.c: same as above, except with gtk_widget_set_usize.
      
      	* gtk/gtkitemfactory.h: declare compatibility functions for deprecated
      	GtkMenuFactory stuff if GTK_COMPILATION, since they are used
      	internally by the compat code.
      
      	* gtk/gtkitemfactory.c (gtk_item_factory_create_item): remove
      	use of deprecated gtk_check_menu_item_set_show_toggle (it is a noop
      	now).
      
      	* gtk/gtkmain.c: replaced deprecated GTK_TYPE_* with G_TYPE_*.
      
      	* gtk/gtkobject.c: replaced various deprecated functions. In set and
      	get_property, use g_object_{set,get}_data with "user_data" instead
      	of gtk_object_{set,get}_user_data.
      
      	* gtk/gtkprogress.h: API declared if GTK_COMPILATION
      
      	* gtk/gtkprogress.c: port get_type to GObject API.
      
      	* gtk/gtktypeutils.h: declare GtkArg stuff and gtk_type_init,
      	if GTK_COMPILATION.
      
      	* gtk/gtkwidget.c: define gtk_widget_queue_clear in terms of
      	gtk_widget_queue_draw instead of the other way around.
      
      	* tests/Makefile.am: define -DGTK_DISABLE_DEPRECATED
      
      	* tests/testgtk.c
      	* tests/testselection.c
      	* tests/testsocket.c: #undef GTK_DISABLE_DEPRECATED, makes use of
      	deprecated stuff.
      bc035915
  9. 17 Nov, 2002 1 commit
    • Manish Singh's avatar
      add -DGDK_DISABLE_DEPRECATED · 89fd6ad3
      Manish Singh authored
      Sun Nov 17 13:45:08 2002  Manish Singh  <yosh@gimp.org>
      
              * gdk/Makefile.am: add -DGDK_DISABLE_DEPRECATED
      
              * gdk/gdk.c (gdk_exit): remove obsolete comment
      
              * gdk/gdk.h: declare gdk_input_add_full if GTK_COMPILATION for
              gtk_input_add_full
      
              * gdk/gdkcolor.c (gdk_color_white, gdk_color_black): use
              gdk_colormap_alloc_color instead of gdk_color_alloc
      
              * gdk/gdkcolor.h: declare gdk_colormap_change if GDK_COMPILATION for
              gdk_colors_store. Also, gdk_colors_{alloc,free} for
              gdk_rgb_try_colormap
      
              * gdk/gdkdrawable.h: declare gdk_draw_string if GTK_COMPILATION for
              gtk_default_draw_string. Also, gdk_draw_text and gdk_draw_text_wc
              if GDK_COMPILATION for the respective gdk_window_ and gdk_pixmap_
              functions.
      
              * gdk/gdkfont.c: #undef GDK_DISABLE_DEPRECATED, completely compat
              code here
      
              * gdk/gdkfont.h: allow the GdkFont structure and a few gdk_font_
              functions for compat code in GDK_COMPILATION and GTK_COMPILATION.
      
              * gdk/gdkrgb.c (gdk_rgb_cmap_fail, gdk_rgb_try_colormap): use
              gdk_colormap_free_colors instead of gdk_colors_free.
      
              * gdk/gdkrgb.c (gdk_draw_rgb_image_core): no need to set fg/bg
              for own_gc, unused.
      
              * gdk/gdkwindow.h: declare gdk_window_get_deskrelative_origin if
              GTK_COMPILATION for gtk_handle_box_button_changed.
      
              * gdk/x11/Makefile.am: add -DGDK_DISABLE_DEPRECATED, renmae
              -DINSIDE_GDK_X11 to -DGDK_COMPILATION
      
              * gdk/x11/gdkcolor-x11.c: remove duplicate doc string for
              gdk_colormap_alloc_colors.
      
              * gdk/x11/gdkfont-x11.c:  #undef GDK_DISABLE_DEPRECATED, completely
              compat code here
      
              * gdk/x11/gdkx.h: use GDK_COMPILATION instead of INSIDE_GDK_X11,
              allow a few gdk_x11_font_ functions if GDK_COMPILATION for compat
              code
      
              * gtk/Makefile.am: add -DGDK_DISABLE_DEPRECATED
      
              * gtk/gtkclist.c
              * gtk/gtkctree.c
              * gtk/gtkpixmap.c
              * gtk/gtkpreview.c
              * gtk/gtktext.c: #undef GDK_DISABLE_DEPRECATED, deprecated widget
      
              * gtk/gtkhandlebox.c (gtk_handle_box_motion): use
              gdk_window_set_geometry_hints instead of gdk_window_set_hints.
      
              * gtk/gtkmain.c (gtk_exit): call exit directly
      
              * gtktipsquery.c (gtk_tips_query_real_start_query)
              * gtk/gtktreeitem.c (gtk_tree_item_add_pixmaps): remove some
              deprecated GDK usage.
      89fd6ad3
  10. 02 Nov, 2002 1 commit
    • Owen Taylor's avatar
      Add startup notification hooks - mostly based on patch by Havoc Pennington · accc3a33
      Owen Taylor authored
      Sat Nov  2 00:22:33 2002  Owen Taylor  <otaylor@redhat.com>
      
              Add startup notification hooks - mostly based on patch
              by Havoc Pennington in #96772.
      
              * gdk/gdk.h gdk/x11/gdkdisplay-x11.c
              gdk/{win32,linux-fb}/gdkmain-*.c: (gdk_notify_startup_complete):
              new function that indicates an application has finished starting
              up.
      
              * gdk/x11/gdkmain-x11.c gdk/x11/gdkdisplay-x11.c
              (_gdk_windowing_set_default_display): store value of
              DESKTOP_STARTUP_ID on the default screen, and clear it from the
              environment.
      
              * gdk/x11/gdkdisplay-x11.c:
              Set _NET_STARTUP_ID hint on display's group leader window.
      
              * gtk/gtkwindow.c (gtk_window_set_auto_startup_notification):
              function to toggle whether we automatically broadcast that we've
              started up, after mapping the first toplevel window.
              (gtk_window_map): call gdk_screen_notify_startup_complete() by
              default, unless enabled by above.
      
              * gtk/gtkmain.c gtk/gtkcombo.c gtk/gtktoolbar.c:
              Couple of warning fixes.
      accc3a33
  11. 31 Oct, 2002 1 commit
    • Owen Taylor's avatar
      Add a --screen option for setting the default screen. (Based on a patch · 550bf181
      Owen Taylor authored
      Thu Oct 31 12:40:39 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdk.[ch] gdk/gdkglobals.c gdk/gdkinternals.h
              gdk/{x11,win32,linux-fb}/gdkscreen-{x11,win32,linux-fb}.c:
              Add a --screen option for setting the default screen.
              (Based on a patch from Balamurali Viswanathan, #81145)
      
              * gdk/gdk.c gdkdisplay.h gtk/gtkmain.c: Add
              gdk_display_open_default_libgtk_only(), so gtk_init_check()
              and gdk_init_check() can share the same behavior w.r.t.
              --screen.
      
              * gdk/gdk.[ch]: Make gdk_get_display_arg_name() G_CONST_RETURN.
      
              * gdk/x11/gdkselection-x11.c (gdk_selection_property_get):
              Suppress a spurious warning.
      
              * tests/testgtkrc: Remove someleft-over commented out
              includes that could be confusing.
      550bf181
  12. 09 Oct, 2002 1 commit
    • Manish Singh's avatar
      Deprecation cleanup · cb7c950a
      Manish Singh authored
      Tue Oct  8 17:34:26 2002  Manish Singh  <yosh@gimp.org>
      
              * gtk/gtkmain.c gtk/gtkscrolledwindow.[ch] gtk/gtksettings.c
              gtk/gtkstatusbar.[ch] gtk/gtkstyle.c gtk/gtktoolbar.[ch]
              gtk/gtkviewport.[ch] gtk/gtkwindow.[ch]: Deprecation cleanup
      cb7c950a
  13. 23 Sep, 2002 1 commit
    • Owen Taylor's avatar
      Privatize gtk_selection_request, gtk_selection_incr_event · b33ec36d
      Owen Taylor authored
      Mon Sep 23 19:49:11 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkselection.[ch] gtk/gtkwidget.c gtk/gtkmain.c:
              Privatize gtk_selection_request, gtk_selection_incr_event
              gtk_selection_notify, gtk_selection_property_notify.
              Add doc note about future deprecation of gtk_selection_clear()
              which. (#85683)
      
              * gtk/gtkoldeditable.c (gtk_old_editable_selection_clear):
              Chain up, rather than calling gtk_selection_clear().
      b33ec36d
  14. 19 Sep, 2002 1 commit
  15. 25 Aug, 2002 1 commit
    • Tor Lillqvist's avatar
      Compile gtk_init_abi_check and gtk_init_check_abi_check when on · f449238d
      Tor Lillqvist authored
      2002-08-25  Tor Lillqvist  <tml@iki.fi>
      
      	* gtk/gtkmain.c: Compile gtk_init_abi_check and
      	gtk_init_check_abi_check when on G_PLATFORM_WIN32, not just on
      	G_OS_WIN32, to match gtkmain.h (#91649, Masahiro Sakai).
      	(check_sizeof_GtkWIndow, check_sizeof_GtkBox): Mention the
      	-mms-bitfields swicth in addition to -fnative-struct.
      f449238d
  16. 07 Aug, 2002 1 commit
    • Matthias Clasen's avatar
      Fix doc comment. · f1d08f9c
      Matthias Clasen authored
      	* gtk/gtkmain.c (gtk_init): Fix doc comment.
      
      	* gtk/gtktreemodel.c (gtk_tree_path_new_from_indices): Make the
      	doc comment gtk-doc-grokkable.
      f1d08f9c
  17. 04 Aug, 2002 1 commit
  18. 20 Jun, 2002 3 commits
    • Owen Taylor's avatar
      Renames: · 28c2b0a3
      Owen Taylor authored
      Thu Jun 20 19:41:09 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdkdisplay.h gdk/gdkscreen.h gdk/**.c gtk/*.c
              tests/*.c: Renames:
      
               gdk_get_default_display => gdk_display_get_default
               gdk_get_default_screen  => gdk_screen_get_default
               gdk_open_display        => gdk_display_open
      28c2b0a3
    • Owen Taylor's avatar
      Add a singleton object that we can use to get notification when displays · 5830bf89
      Owen Taylor authored
      Thu Jun 20 16:49:00 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdkdisplaymanager.[ch] gdk/gdk.[ch] gdk/gdkdisplay.c
              gdk/gdkinternals.h gdk/x11/gdkdisplay-x11.c
              gdk/win32/gdkdisplay-win32.c: Add a singleton object that
              we can use to get notification when displays
              appear / disappear or the default display changes.
      
              gdk_set_default_display() => gdk_display_manager_set_default_display()
              gdk_list_displays() => gdk_display_manager_list_displays().
              (#85696)
      
              * gdk/Makefile.am gdk/gdkmarshalers.list: Add marshaler
              generation.
      
              * gdk/gdkintl.h: Add this.
      
              * gtk/gtkmain.c: Add gtk_parse_args() that initializes
              GTK+ without opening a display.
      
              * gtk/gtkmain.c: Set things up so if a module
              exports gtk_module_init() and gtk_module_display_init(),
              then we treat it as multihead aware, otherwise,
              we only initialize it after the default display is set.
      5830bf89
    • Owen Taylor's avatar
      Get rid of gtk_style_get_font_for_display(), make gtk_style_get_font() · 4b47bcb3
      Owen Taylor authored
      Thu Jun 20 15:17:14 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkstyle.[ch]: Get rid of gtk_style_get_font_for_display(),
              make gtk_style_get_font() warn for multihead if called
              on an unattached style.
      
              * gtk/gtktext.c: Remove use of gtk_style_get_font_for_display();
              this makes gtktext not multihead safe, but it doesn't matter;
              it's ENABLE_BROKEN anyways.
      
              * gtk/gtkmain.c gtk/gtkdebug.h: Add GTK_NOTE(MULTIHEAD,[])
      4b47bcb3
  19. 14 Jun, 2002 1 commit
    • Owen Taylor's avatar
      ri Jun 14 10:00:29 2002 Owen Taylor <otaylor@redhat.com> · b32da181
      Owen Taylor authored
              * gdk/gdkwindow.c (gdk_window_update_idle): Add
              missing GDK_THREADS_ENTER()/GDK_THREADS_LEAVE().
              (Report of non-thread-safety from Nicholas Allen)
      
              * gtk/gtkmain.c (rewrite_events_translate): Fix sign
              problem with coordinate translation. (Fix from
              Robin Lu, #85229)
      b32da181
  20. 30 May, 2002 1 commit
    • Michael Meeks's avatar
      don't leak the paths. · 7796a684
      Michael Meeks authored
      2002-05-24  Michael Meeks  <michael@ximian.com>
      
      	* gtk/gtkmain.c (_gtk_find_module): don't leak the paths.
      7796a684
  21. 29 Apr, 2002 1 commit
    • Alexander Larsson's avatar
      Integrate Erwann Chenede's multihead changes for the gtk/ directory. · 4632fb81
      Alexander Larsson authored
      Mon Apr 29 18:28:00 2002  Owen Taylor  <otaylor@redhat.com>
      
      	Integrate Erwann Chenede's multihead changes for the gtk/ directory.
      
      	* gtk/gtkclipboard.[ch]: Add gtk_clipboard_get_for_display(),
      	make internals multihead aware.
      
      	* gtk/gtkcolorsel.[ch]: Add
      	gtk_color_selection_set_change_palette_with_screen_hook () [ugh!]
      	make up for non-multihead safety of
      	gtk_color_selection_set_change_palette_hook()
      
      	* gtk/gtkinvisible.[ch] gtk/gtkmenu.[ch] gtkwindow.[ch]: Add
      	gtk_{invisible,menu,window}_set_screen(); add "screen" properties
      	for GtkWindow and GtkMenu.
      
      	* gtk/gtkplug.[ch]: Add gtk_plug_construct_for_display(),
      	gtk_plug_new_for_display(). Multihead fixes.
      
      	* gtk/gtkselection.[ch]: Add gtk_selection_owner_set_for_display(),
      	make internals multihead aware.
      
      	* gtk/gtksettings.[ch]: Add gtk_settings_get_for_screen(), get
      	rid of now-useless gtk_settings_constructor().
      
      	* gtk/gtkstyle.[ch]: Add gtk_style_get_font_for_display(), fix
      	check/radio button indicators bitmap handling to be multihead
      	safe.
      
      	* gtk/gtkwidget.[ch]: Add gtk_widget_get_screen(), gtk_widget_has_screen(),
      	gtk_widget_get_display(), gtk_widget_get_clipboard(),
      	gtk_widget_get_root_window().
      
      	* gtk/gtkbindings.c gtk/gtkbutton.c gtk/gtkclist.c gtk/gtkcombo.c
      	gtk/gtkctree.c gtk/gtkdnd.c gtk/gtkfilesel.c gtk/gtkgamma.c
      	gtk/gtkhandlebox.c gtk/gtkhsv.c gtk/gtkimcontext.c gtk/gtklabel.c
      	gtk/gtklist.c gtk/gtkmain.c gtk/gtkmenuitem.c gtk/gtkmenushell.c
      	gtk/gtknotebook.c gtk/gtkoldeditable.c gtk/gtkoptionmenu.c
      	gtk/gtkpaned.c gtk/gtkpreview.c gtk/gtksocket.c gtk/gtktext.c
      	gtk/gtktextbuffer.c gtk/gtktextview.c gtk/gtktipsquery.c
      	gtk/gtktooltips.c gtk/gtktreeview.c gtk/gtktreeviewcolumn.c:
      	misc mechanical multihead-safety fixes.
      
      	* gtk/gtkclipboard.c: Use a GtkImage rather than a pixmap for
      	the dropper, look up the color palette only at realization time,
      	other multihead fixes.
      
      	* gtk/gtkcombo.c (gtk_combo_unrealize): Popdown the list when
      	unrealizing.
      
      	* gtk/gtkentry.c: Only claim ownership of the primary selection
      	when realized, misc multihead fixes.
      
      	* gtk/gtkfontsel.c: Only fill in fonts when attached to a screen,
      	fix gtk_font_selection_get_font() for multihead.
      
      	* gtk/gtkgc.c: make the depth => drawable hash per-screen.
      
      	* gtk/gtkinvisible.c: Add a constructor that realizes the
      	widget, so we get a realized widget with g_object_new() as
      	well gtk_invisible_new() as before.
      
      	* gtk/gtkmain.c: Get rid of unused gtk_visual/gtk_colormap
      	variables.
      
      	* gtk/gtktextdisplay.c: Add warnings if stipple bitmaps
      	are used on the wrong screen.
      
      	* gtk/gtktoolbar.c: Make handling of GtkSettings-based layout
      	read properties and connect to settings when the screen is changed,
      	rather than on init/finalize.
      
      	* gtk/gtkwindow.c: Fix icon handing to be multihead safe ...
      	default icon pixmaps/mask are only shared between windows on the
      	same screen. Misc multihead fixes.
      
      Sat Apr 27 13:49:53 2002  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkclipboard.c (gtk_clipboard_get_for_display):
      	Update docs to reference GDK_SELECTION_CLIPBOARD rather GDK_NONE.
      
      2002-04-29  Alex Larsson  <alexl@redhat.com>
      
      	* gdk/linux-fb/gdkproperty-fb.c (gdk_property_get):
      	Fix silly bug, noticed by Sven Neumann.
      
      Sun Apr 28 22:43:55 2002  Jonathan Blandford  <jrb@gnome.org>
      
      	* gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_sort_func): Fix
      	so that you can set a new sort func.
      4632fb81
  22. 25 Apr, 2002 1 commit
    • Owen Taylor's avatar
      Start of integration of Erwann Chenede's multihead work from the · 425b9886
      Owen Taylor authored
      Thu Apr 25 16:51:40 2002  Owen Taylor  <otaylor@redhat.com>
      
              Start of integration of Erwann Chenede's multihead work
              from the gtk-multihead branch.
      
              * gdk/gdkdisplay.[ch] gdk/gdkscreen.[ch]
              gdk/x11/gdkdisplay-x11.[ch] gdk/x11/gdkscreen-x11.[ch]
              New classes representing a set of screens with attached
              input devices and a single contiguous area, respectively.
      
              * gdk/gdk.[ch] gdk/gdkinternals.h gdk/x11/gdkmain-x11.c:
              gdk/x11/gdkprivate-x11.h: Make the initialization interface
              simple _gdk_windowing_init() and do the rest in
              gdk_open_display() calls.
      
              * gdk/gdk.[ch]: Add gdk_parse_args() which can be used
              to do the display-independent part of initialization
              instead of gdk_init_[check].
      
              * gdk/gdkcursor.h gdk/gdkfont.h gdk/gdkkeys.h gdk/gdkpixmap.h
              gdk/gdkproperty.h gdk/gdkselection.h gdk/gdkwindow.h:
              Add multihead variants (_for_display(), for_screen()) of functions
              getting information specific to a particular screen screen or
              display.
      
              * gdk/gdkscreen.[ch]: Add gdk_screen__* variants of functions
              like gdk_rgb_get_colormap() that used to get/list global
              objects.
      
              * gdk/x11/gdkx.h: Add functions for converting GdkScreen
              and GdkDisplay into the X equivalents.
      
              * gdk/x11/gdkwindow-x11.c: Removed gdk_window_xid_at_coords()
              not in the headers and unused.
      
              * configure.in gdk/x11/{gxid.c,gxid_lib.[ch],gdkinput-gxi.c}:
              Remove gxid support ... has not been tested for a long time...
              "xfree" support is more portable to non XFree86.
      
              * gdk/**.h: Add a GDK_MULTIHEAD_SAFE define that can be
              used to turn off functions that are inherently non-multihead
              safe.
      
              * gdk/**.c: add GDK_NOTE(multihead, ...) calls when functions
              are used in non-multihead-safe ways.
      
              * gdk/*.c gdk/x11/*.c: Changes to make the internals of GDK
              multihead safe.
      425b9886
  23. 18 Apr, 2002 1 commit
    • Tor Lillqvist's avatar
      gdk-pixbuf/Makefile.am (uninstall-libtool-import-lib) Fix typo, thanks to · 40d637ec
      Tor Lillqvist authored
      2002-04-18  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk-pixbuf/Makefile.am (uninstall-libtool-import-lib)
      	* gdk/Makefile.am (uninstall-libtool-import-lib): Fix typo,
      	thanks to David Sterba for noticing.
      
      	* gtk/gtkmain.h
      	* gtk/gtkmain.c (gtk_init_abi_check, gtk_init_check_abi_check): In
      	GTK+ 2.0 the GtkWindow struct actually is the same size in gcc on
      	Win32 whether compiled with -fnative-struct or not. Unfortunately
      	this wan't noticed until now. So, from now on, check some other
      	struct, too, for which the use of -fnative-struct still
      	matters. GtkBox is one such.
      40d637ec
  24. 29 Mar, 2002 1 commit
  25. 20 Mar, 2002 1 commit
    • Owen Taylor's avatar
      Patch from Erwann Chenede, #73900 fixing a lot of warnings with Forte CC, · 8acfd1e9
      Owen Taylor authored
      Wed Mar 20 16:36:08 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/*.c: Patch from Erwann Chenede, #73900 fixing
              a lot of warnings with Forte CC, mostly implicit
              casts between void * and function pointers.
      
              * gdk/gdkevents.c (gdk_event_get_state): GdkEventVisibility's
              state field is not a GdkModifierType. (Also #73900)
      8acfd1e9
  26. 03 Mar, 2002 2 commits
    • Hans Breuer's avatar
      make rewrite_event_for_window() static gtk_rc_clear_realized_style() · 751705f9
      Hans Breuer authored
      2002-03-03  Hans Breuer  <hans@breuer.org>
      
      	* gtk/gtkmain.c : make rewrite_event_for_window() static
      	* gtk/gtkrc.c : gtk_rc_clear_realized_style() static
      
      	* gtk/makefile.msc.in : adapt to makeenums build changes
      
      	* gtk.def : sorted alphabetical again
      751705f9
    • Owen Taylor's avatar
      Fixes for uninstalled operation with module suffixes other than .so and in · b47b15f6
      Owen Taylor authored
      Sat Mar  2 23:08:23 2002  Owen Taylor  <otaylor@redhat.com>
      
              Fixes for uninstalled operation with module suffixes
              other than .so and in general for platforms like AIX where
              the module suffix isn't predictable. (#72185, problems
              reported by Miroslaw Dobrzanski-Neumann)
      
              * modules/input/Makefile.am (gtk.immodules): Query .la
              files rather than shared objects in .libs when creating the
              uninstalled gtk.immodules file.
      
              * gtk/gtkmain.c (_gtk_find_module): Look for .la files
              after looking for the normal soname extension to handle
              cases where the soname extension isn't predictable,
              like AIX.
      
              * gtk/gtkthemes.c (gtk_theme_engine_load): Don't
              call g_module_build_path... leave that to
              gtk_rc_find_module_in_path.
      
              * demos/gtk-demo/main.c (main) demos/pixbuf-init.c (pixbuf_init):
              tests/testgtk.c (test_init): tests/testtext.c (test_init)
              tests/testdnd.c (test_init): Point gdk-pixbuf to .la
              files rather than poking in .libs for .so files.
      
              * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): Remove
              .libs from GDK_PIXBUF_MODULEDIR.
      b47b15f6
  27. 02 Mar, 2002 2 commits
    • Owen Taylor's avatar
      Clamp @Max parameter passed in to [0, MAX_SIZE], improve docs. Fix default · 8d3278f0
      Owen Taylor authored
      Sat Mar  2 15:48:04 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkentry.c (gtk_entry_new_with_max_length,
              gtk_entry_set_max_length): Clamp @Max parameter passed in to
              [0, MAX_SIZE], improve docs. Fix default and range
              for ::max-length property, range for ::ncursor_position,
              ::selection_bound properties. (#55916, Vitaly Tishkov)
      
              * gtk/gtkmain.c (rewrite_event_for_grabs): Fix typo
      8d3278f0
    • Owen Taylor's avatar
      Robustify tracking of pointer grab window. · b54e5f4c
      Owen Taylor authored
      Fri Mar  1 18:39:44 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/{gdkevents-x11.c,gdkmain-x11.c,gdkprivate-x11.h,
              gdkwindow-x11.c}: Robustify tracking of pointer grab window.
      
              * gdk/x11/gdkmain-x11.c: Keep track of current keyboard
              grab window.
      
              * gdk/x11/gdkmain-x11.c (gdk_pointer_grab_info_libgtk_only,
              gdk_keyboard_grab_info_libgtk_only): Private libgtk => libgtk
              API for finding out current grab information.
      
              * gtk/gtkmain.c (rewrite_event_for_grabs): Rewrite events
              so that the effective behavior of owner_events = TRUE is changed
              to "deliver events to same window group normally" instead
              of "deliver events to same application normally. #69934
      
              * gtk/gtkrange.c: Use an explicit gtk_grab_add() so that
              it works within the GtkList combo, where there is a
              owner_events = FALSE gdk_pointer_grab() already in effect.
              (#65006, reported by Damon Chaplin)
      b54e5f4c
  28. 21 Feb, 2002 1 commit
    • Owen Taylor's avatar
      Implement "fuzzy" key binding lookups; allow matches on key and level but · 708e1a95
      Owen Taylor authored
      Wed Feb 20 14:26:47 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkkeyhash.[ch]: Implement "fuzzy" key binding lookups;
              allow matches on key and level but not group. Also, implement
              ignoring "consumed modifiers correctly."
      
              * gtk/gtkaccelgroup.c gtk/gtkbindings.c: Convert to using
              GtkKeyHash.
      
              * gtk/gtkdebug.h gtk/gtkmain.c: Support GTK_DEBUG=keybindings
      
              * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fill in
              the group for key release events as well as key press events.
      
              * gdk/gdkkeys.h gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state):
              Rename unused_modifiers to consumed_modifiers, make the docs and
              non-Xkb implementation match the Xkb implementation.
      
              * gdk/linux-fb/gdkkeyboard-fb.c gdk/win32/gdkkeys-win32.c: Propagate
              doc and parameter name changes.
      
              * gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state):
              XkbTranslateKeyCode doesn't handle LockMask, we need to handle
              it ourselves.
      
              * gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state): Force
              <Shift>Tab to give GDK_ISO_Left_Tab, since we need consistency
              to allow dealing with ISO_Left_Tab.
      
              * gtk/gtkwindow.c gtk/gtktextview.c gtk/gtkscrolledwindow.c
              gtk/gtkpaned.c gtk/gtkcombo.c  gtk/gtknotebook.c:
              Remove inappropriate uses of GDK_ISO_Left_Tab. (GDK_ISO_Left_Tab
              or <Shift>Tab both are equivalent as a binding specifier.)
      
              * gtk/gtkbutton.c (gtk_button_class_init): Make ::activate
              GTK_RUN_ACTION, so you can bind an accelerator to it.
      
              * gtk/gtklabel.c (gtk_label_set_uline_text_internal): Call
              gdk_unicode_to_keyval on the mnemonic character.
      
              * tests/testgtk.c: Add a test for the new fuzzy key binding matching.
      708e1a95
  29. 19 Feb, 2002 1 commit
    • Owen Taylor's avatar
      Add routines _gtk_find_module(), _gtk_get_module_path() to look up a · a255d9cd
      Owen Taylor authored
      Mon Feb 18 23:16:16 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkmain.[ch]: Add routines _gtk_find_module(),
              _gtk_get_module_path() to look up a module of an arbitrary type in
              a standard fashion. (#68474)
      
              * gtk/gtkrc.c: Make module_path keyword warn and do
              nothing. Remove the im_module_path keyword.
      
              * gtk/gtkrc.c (gtk_rc_get_im_module_path): Fix
              to return the standard path instead of one determined
              from im_module_path and GTK_IM_MODULE_PATH.
      
              * gtk+-2.0.pc.in: Add gtk_host to go along with gtk_binary_version.
      a255d9cd
  30. 13 Feb, 2002 1 commit
    • Owen Taylor's avatar
      g_warning() if setting the local fails, like gdk_set_locale() did. · 6b838a22
      Owen Taylor authored
      Wed Feb 13 12:41:44 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkmain.c (gtk_init_check): g_warning() if setting
              the local fails, like gdk_set_locale() did.
      
              * gdk/x11/gdkselection-x11.c (gdk_text_property_to_utf8_list):
              Don't free local_list if local_count == 0. (#71241, reported
              by Kevin Vandersloot.)
      
              * gdk/x11/gdkselection-x11.c (gdk_text_property_to_text_list):
              Clean up list == NULL handling and failure.
      6b838a22
  31. 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
  32. 01 Feb, 2002 1 commit
  33. 29 Jan, 2002 1 commit
  34. 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
  35. 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
  36. 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