1. 01 Oct, 1999 1 commit
    • Owen Taylor's avatar
      Started · 637a466d
      Owen Taylor authored
      Fri Oct  1 18:03:36 1999  Owen Taylor  <otaylor@redhat.com>
      
              * docs/Changes-1.4.txt: Started
      
      	* gtk/Makefile.am (gdk_headers): Include all the new headers.
      
              * gdk/*.h gdk/*.c: Split gdk.h into lots of itty-bitty little pieces.
      
      	* gdk/gdkprivate.h gdk/gdkcc.c: Moved GdkColorContext private
      	into C file.
      
      	* gdkinput.h gdkinputprivate.h - renamed the internal gdkinput
      	header to gdkinputprivate.h.
      
      	* gdk/gdk.h gdk/gdk.c: Removed gdk_time* functions which have been
      	unused since before 1.2.
      637a466d
  2. 28 Sep, 1999 1 commit
    • Federico Mena Quintero's avatar
      [ Merges from gtk-1-2 ] · 95b3f3e4
      Federico Mena Quintero authored
      Wed Sep  8 07:13:29 1999  Tim Janik  <timj@gtk.org>
      
      	* configure.in: fixed "GNU Make" check to pass with new make version
      	3.77.95.
      
      Fri Sep  3 16:04:41 1999  Tim Janik  <timj@gtk.org>
      
      	* gtk-config.in (--version): don't echo @GTK_VERSION@, but
      	@GTK_MAJOR_VERSION@.@GTK_MINOR_VERSION@.@GTK_MICRO_VERSION@, so the
      	AM_PATH_GTK() macros don't get confused by the -pre1.
      
      Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* configure.in (REBUILD): Change check for perl5
      	  to check explicitely for v >= 5.002. (5.001
      	  does not work with our scripts.)
      
      Wed Aug 25 15:45:46 1999  Tim Janik  <timj@gtk.org>
      
      	* configure.in: evaluate $PERL for the perl version check. added
      	--disable-rebuilds to give the user an option to completely disable
      	any source autogeneration rules.
      
      Mon Aug 23 23:16:14 1999  Tim Janik  <timj@gtk.org>
      
      	* configure.in: evaluate $ac_make when checking for GNU Make.
      
      Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
      
      	* docs/Makefile.am: added generatio...
      95b3f3e4
  3. 17 Sep, 1999 1 commit
    • Tor Lillqvist's avatar
      Add gdk_threads_mutex. · 4850edb2
      Tor Lillqvist authored
      1999-09-17  Tor Lillqvist  <tml@iki.fi>
      
      * gdk/win32/gdk.def: Add gdk_threads_mutex.
      
      * gtk/makefile.msc: Correct path to libintl.
      
      Thanks to Tomi Ollila and Bernd Herd: Fix some inconsistencies in
      use of gint vs. int, and gint vs. gboolean in headers and
      definitions. Use GtkType for the *_get_type functions. Note that
      these changes preserve binary compatibility.
      
      * gdk/gdk.c
      * gdk/win32/gdk.c
      * gdk/gdk.h: Fix inconsistencies: gint vs int.
      
      * gtk/gtkmain.c
      * gtk/gtkclist.c
      * gtk/gtkmenufactory.c
      * gtk/gtknotebook.c
      * gtk/gtkwidget.c: Fix inconsistencies, also gint
      vs. gboolean.
      
      * gtk/gtkcolorsel.[ch]
      * gtk/gtkcombo.[ch]
      * gtk/gtkdrawingarea.[ch]
      * gtk/gtkgamma.[ch]
      * gtk/gtkhandlebox.[ch]
      * gtk/gtkhpaned.[ch]
      * gtk/gtkhruler.[ch]
      * gtk/gtkplug.[ch]
      * gtk/gtkpreview.[ch]
      * gtk/gtkruler.[ch]
      * gtk/gtksocket.[ch]
      * gtk/gtkstatusbar.[ch]
      * gtk/gtktoolbar.[ch]
      * gtk/gtkvbbox.[ch]
      * gtk/gtkvpaned.[ch]
      * gtk/gtkvruler.[ch]: Always use type GtkType for the *_get_type
      functions.
      
      * gtk/gtkgamma.h: Fix bug, missing () in call of
      gtk_gamma_curve_get_type() in GTK_GAMMA_CURVE_CLASS.
      4850edb2
  4. 13 Sep, 1999 1 commit
    • Tor Lillqvist's avatar
      gdk/gdkcolor.c (gdk_colormap_new) Fix memory leak: colormap->colors was · 04f5c2a1
      Tor Lillqvist authored
      1999-09-14  Tor Lillqvist  <tml@iki.fi>
      
      * gdk/gdkcolor.c (gdk_colormap_new)
      * gdk/win32/gdkcolor.c (gdk_colormap_new): Fix memory leak:
      colormap->colors was allocated twice.
      
      * gdk/win32/gdk.c: Remove some unused stuff.
      
      * gdk/win32/gdkcolor.c (gdk_colormap_sync): Initialize all of the
      colormap.
      
      * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_type)
      * gtk/gtklabel.h (gtk_label_get_type)
      * gtk/gtktipsquery.c (gtk_tips_query_get_type)
      * gtk/gtktypeutils.h (gtk_type_name): : Use GtkType
      in a couple of places, not guint.
      04f5c2a1
  5. 21 Apr, 1999 1 commit
  6. 17 Mar, 1999 1 commit
    • Tor Lillqvist's avatar
      Merge in Win32 version: Define macro GDKVAR for declaring gdk variables · 0b4d29fd
      Tor Lillqvist authored
      * gdk/gdktypes.h: Merge in Win32 version: Define macro GDKVAR for
      declaring gdk variables exported/imported from the DLL. New image
      type enum, GDK_IMAGE_SHARED_PIXMAP, for gdk_imlib. New drag and
      drop protocol enums, GDK_DRAG_PROTO_WIN32_DROPFILES and
      GDK_DRAG_PROTO_OLE2.
      
      * gdk/gdk.h: Merge in Win32 version: Two new functions,
      gdk_pixmap_create_on_shared_image and gdk_image_bitmap_new. So far
      declared only for the Win32 version, but could be in the X11
      version as well. (Needed for a Xlib-less gdk_imlib.)
      gdk_color_hash should have only one parameter. Declare
      gdk_threads_mutex with GDKVAR.
      
      * gdk/gdkcolor.c (gdk_color_hash): As a hash function should have
      just one parameter.
      
      * gdk/gdkimage.c (gdk_image_get): Initialize bpp correctly. Bytes
      per pixel, not bits.
      
      * gdk/gdkrgb.c: Mingle includes somewhat. (gdk_rgb_select_conv):
      Fetch bpp (which means bits-per-pixel here) from another place on
      Win32. Accept also depth==32 (which we might get on Win32) with
      bpp==32.
      
      * gtk/{gtkclist,gtkctree,gtkdnd,gtkditable,gtkfontsel,
      gtkhandlebox,gtklayout,gtkmain,gtkplug,gtkpreview,gtkrc,
      gtkselection,gtksocket,gtkstyle,gtkwidget,gtkwindow}.c:
      Include gdx.h from "gdkx.h", not "gdk/gdkx.h", as gdkx.h will be
      in the backend-dependent directory, not in the common gdk
      directory.
      
      * gtk/testgtk.c: Ditto. Also, don't use ../gdk patchs to gdk
      headers.
      0b4d29fd
  7. 10 Mar, 1999 1 commit
    • Tim Janik's avatar
      first lookup the xfont ID in our font hash table, if we have a · 0c178e96
      Tim Janik authored
      Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
      
              * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
              font hash table, if we have a GdkFontPrivate entry for this font
              already, simply increment its reference count, provided by Olaf Dietsche
              <olaf.dietsche+list.gtk@netcologne.de>.
      
              * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
              provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
      0c178e96
  8. 24 Feb, 1999 1 commit
  9. 23 Feb, 1999 1 commit
    • Owen Taylor's avatar
      When sending events to windows with a proxy, set the window field in the · 148e7663
      Owen Taylor authored
      Mon Feb 22 19:06:30 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkdnd.c (xdnd_send_*): When sending events to
      	 windows with a proxy, set the window field in the
      	 sent event to the original window, not to the proxy.
      	 (This gives consistency with Motif, and also provides
      	  information to the destination that it wouldn't have
      	  otherwise).
      
      	* gtk/gtkdnd.c: Fixed some refcount leaks for windows.
      
      	* gdk/gdkdnd.c (xdnd_send_xevent): When sending
      	 Xdnd event to the root window, set the event mask
      	 to ButtonPressMask. Hopefully, this should give us
      	 compatibility with kfm, if it uses the Qt style
      	 of root window drops.
      148e7663
  10. 21 Feb, 1999 4 commits
    • Owen Taylor's avatar
      Always set the max width or height to at least 1, since 0 triggers bugs in · 16561707
      Owen Taylor authored
      Sun Feb 21 17:14:44 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkwindow.c (gdk_window_set_geometry_hints): Always
      	 set the max width or height to at least 1, since 0
      	 triggers bugs in some window managers. (The window
      	"pops out" of the frame in fvwm)
      16561707
    • Owen Taylor's avatar
      Changed warnings from g_message() to g_warning(). · 039d738e
      Owen Taylor authored
      Sun Feb 21 16:16:22 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkscrolledwindow.c gdk/gdkfont.c gdk/gdkim.c:
      	 Changed warnings from g_message() to g_warning().
      
      	* gdk/gdkim.c (gdk_ic_destroy): Changed g_print
      	 to g_message within GDK_NOTE()
      
      	* gtk/gtkcolorsel.c  gtk/gtkhandlebox.c:
      	 Removed some leftover debugging printfs.
      039d738e
    • Owen Taylor's avatar
      Account for the fact that Xlib expects format == 32 to be a long, even on · 25cdbd35
      Owen Taylor authored
      Sun Feb 21 15:59:55 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/MwmUtil.h gdk/gdkwindow.c: Account for the
      	fact that Xlib expects format == 32 to be a long,
      	even on 64-bit architectures.
      
      	[ patch from George Lebl (jirka@5z.com) ]
      25cdbd35
    • Owen Taylor's avatar
      removed debugging statements about embedded XID's. They could have been · 295e763b
      Owen Taylor authored
      Sun Feb 21 14:21:46 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkwindow.c: removed debugging statements
      	about embedded XID's. They could have been
      	moved to the new PLUGSOCKET debug key, but they weren't
      	really useful anyways.
      
      	* gdk/gdk.h: Added gdk_error_trap_push/pop to provide
      	a clean interface to the gdk_error_code functionality
      	of trapping X errors.
      
      	* gtk/gtkplug.c gtk/gtksocket.c: Add error
      	traps around accesses to foreign windows.
      295e763b
  11. 10 Feb, 1999 3 commits
    • Owen Taylor's avatar
      Supplement the existing WMNormalHints, don't overwrite them. · c9312d02
      Owen Taylor authored
      Wed Feb 10 10:43:50 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkwindow.c (gdk_window_set_icon, gdk_window_set_group):
      	 Supplement the existing WMNormalHints, don't
      	 overwrite them.
      c9312d02
    • Tim Janik's avatar
      asure that ->value_buf always points to an allocated area. · 88c112cd
      Tim Janik authored
      Wed Feb 10 08:35:36 1999  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkcolorsel.c (gtk_color_selection_draw_value_bar): asure that
              ->value_buf always points to an allocated area.
              (gtk_color_selection_drag_end): new function hooked up to drag_end to
              destroy the drag_window.
      
              * gtk/gtkdnd.c: some coding style fixups.
      
      Wed Feb 10 06:47:17 1999  Tim Janik  <timj@gtk.org>
      
              * gdk/gdkwindow.c: various indentation fixes.
      
              * gdk/gdkevents.c: coding style fixups.
              NULL initialize event_func, event_notify and event_chunk.
              (expose_predicate): made this function static.
              (gdk_event_handler_set): perform destroy notification even if no
              event_func is set.
      
              * gdk/gdkrectangle.c (gdk_rectangle_union): added g_return_if_fail
              statements.
      88c112cd
    • Owen Taylor's avatar
      If we can't find helvetica, fall back to "fixed". If we can't find · 72d58438
      Owen Taylor authored
      Tue Feb  9 19:11:43 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkstyle.c (gtk_style_new): If we can't find
      	  helvetica, fall back to "fixed". If we can't
      	  find "fixed", exit cleanly.
      72d58438
  12. 05 Feb, 1999 1 commit
    • Owen Taylor's avatar
      Adjust saved positions of children when resizing a guffaw_gravity = TRUE · eb437560
      Owen Taylor authored
      Fri Feb  5 13:23:50 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkwindow.c (gdk_window_move_resize): Adjust
      	saved positions of children when resizing a
      	guffaw_gravity = TRUE window.
      
      	* gtk/gtkdnd.c (gtk_drag_highlight): Rework the
      	 highlighting so that it is done in callbacks for
      	 draw and expose. This should solve problems with
               multiple highlights for the same GdkWindow.
      
      	* gtk/gtkdnd.c (gtk_drag_highlight): Fix bug where
      	the highlight was being drawn with an incorrect
      	width/height for !NO_WINDOW widgets.
      eb437560
  13. 28 Jan, 1999 4 commits
    • Sebastian Wilhelmi's avatar
      s/XIM_INSTANTIATE_IS_MISSING_OR_STRANGE/XIM_INST_IS_MISSING_OR_STRANGE/ · a7000587
      Sebastian Wilhelmi authored
      
      1999-01-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* gdk/gdkim.c:
      	s/XIM_INSTANTIATE_IS_MISSING_OR_STRANGE/XIM_INST_IS_MISSING_OR_STRANGE/
      a7000587
    • Owen Taylor's avatar
      Allow exposure compression across GravityNotify events to improve the · 99b9ce9d
      Owen Taylor authored
      Wed Jan 27 22:51:23 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkevents.c (expose_predicate): Allow exposure
      	 compression across GravityNotify events to improve
       	 the appearance of a GTK+ window unshading.
      99b9ce9d
    • Owen Taylor's avatar
      [ patch from Takashi Matsuda <matsu@arch.comp.kyutech.ac.jp> ] · b2c8fed8
      Owen Taylor authored
      Wed Jan 27 21:56:07 1999  Owen Taylor  <otaylor@redhat.com>
      
              [ patch from Takashi Matsuda <matsu@arch.comp.kyutech.ac.jp> ]
      
      	* acconfig.h configure.in gdk/gdkim.c: Add configure
      	flag for disabling XRegisterIMInstantiateCallback(), default
      	it to off for Solaris. Always try to open the
      	input method immediately, and only if that fails,
      	register than instantiate callback.
      
      	* gdk/gdkentry.c: Some tweaks to make sure that we
      	only get and set the IC attributes when appropriate.
      b2c8fed8
    • Owen Taylor's avatar
      Change signatures for gdk_drag_begin() and gdk_drag_motion() so that the · 77e99440
      Owen Taylor authored
      Wed Jan 27 18:57:57 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdk.h gdk/gdkdnd.c: Change signatures for
      	gdk_drag_begin() and gdk_drag_motion() so that the set
      	of possible actions is passed on each motion, not just at
      	the beginning of the drag. We do this so that
      	we can restrict the set of possible drag events
      	when the user presses a modifier key during a
      	drag.
      
      	* gdk/gdkdnd.c: Send a motif Operation-changed
      	message when the set of possible actions change,
      	as well as when the suggested action change.
      
      	* gdk/gdkdnd.c: Change the XdndActionList whenever
      	the set of actions change.
      
      	* gdk/gdkdnd.c: Add a filter to catch changes to
      	the XdndActionList property for the source widget.
      
      	* gtk/gtkdnd.c: Change the set of possible actions
      	when the user presses Control, Shift, or Control-Shift,
      	to only include the corresponding action.
      
      	* gtk/gtkdnd.c (gtk_drag_button_release_cb):
      	Disconnect button signals before we possibly
      	free info structure.
      77e99440
  14. 27 Jan, 1999 3 commits
    • Owen Taylor's avatar
      Remove TimJ's checks for already being mapped or hidden. See the ICCCM's · 7934cf9a
      Owen Taylor authored
      Tue Jan 26 14:02:50 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkwindow.c (gdk_window_show/hide): Remove TimJ's
      	checks for already being mapped or hidden. See
      	the ICCCM's section on state changes for why this
      	is a bad idea.
      7934cf9a
    • Owen Taylor's avatar
      Use floor() instead of truncating to integer values so we get translation · 14724626
      Owen Taylor authored
      Wed Jan 20 11:19:00 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtklabel.c: Use floor() instead of truncating
      	to integer values so we get translation invariance.
      
      	* gtk/gtklayout.c (gtk_layout_size_allocate): Set upper
      	and lower values for adjustments in size_allocate().
      
      	* gdk/gdkwindow.c gdk/gdk.h gdk/gdkprivate.h: New
      	function gdk_window_set_static_gravities() to set
      	up a window for guffaw scrolling.
      
      	* gdk/gdkwindow.c (gdk_window_internal_destroy): Set flags
      	indicating destroyed state before cleanup.
      
      	* gtk/gtkprivate.h gtk/gtkwidget.c: Add a new
      	private flag IS_OFFSCREEN. If set, this indicates
      	to GTK+ that the widget is not to be considered
      	viewable regardless of its map state. Queued draws
      	on offscreen widgets are suppressed.
      
      	Added new function static gtk_widget_is_offscreen() to
      	check this flag on a widget and its ancestors.
      
      	* gtk/gtklayout.[ch]: Major revisions.
      
      	- Use gdk_window_set_static_gravities to set static gravity
      	on all child windows, and thus avoid having to create a window
      	for NO_WINDOW children.
      
      	- Adjust allocations of children as we scroll them
      	so queued draws work correctly.
      
      	- Don't allocate our children directly in a put()
      	or move(); just queue a resize() like every other
      	widget.
      
      	* gtk/testgtk.c: Make the arrows on the scrollbars
      	work, create a larger and more demanding test.
      14724626
    • Tim Janik's avatar
      assert ref_count>0. · 90c7ea0b
      Tim Janik authored
      Wed Jan 27 09:19:07 1999  Tim Janik  <timj@gtk.org>
      
              * gdk/gdkcolor.c (gdk_colormap_unref): assert ref_count>0.
      90c7ea0b
  15. 24 Jan, 1999 2 commits
    • Owen Taylor's avatar
      Byteswap · 8ac2b1dd
      Owen Taylor authored
      Sun Jan 24 18:09:24 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkdnd.c (motif_read_initiator_info): Byteswap
      8ac2b1dd
    • Owen Taylor's avatar
      Fix reversed assertion. (Pointed out by Austin Donnelly · a1cc053b
      Owen Taylor authored
      Sun Jan 24 12:17:39 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkcolor.c (gdk_colormap_real_destroy): Fix
      	 reversed assertion.
      	 (Pointed out by Austin Donnelly <austin@greenend.org.uk>)
      
      	* gtk/gtkruler.c (gtk_ruler_expose): Remove unecessary
      	 and harmful call to gtk_paint_box(). We are going
      	 to paint onto the backing store later anyways.
      a1cc053b
  16. 23 Jan, 1999 2 commits
    • Owen Taylor's avatar
      X expects longs, not uint32 for XChangeProperty, when format == 32. · 79fbe482
      Owen Taylor authored
      Sat Jan 23 11:15:39 1999  Owen Taylor  <otaylor@gtk.org>
      
      	* gdk/gdkdnd.c (gdk_window_register_dnd): X expects
      	 longs, not uint32 for XChangeProperty, when
      	 format == 32.
      
      	* gdk/gdkdnd.c (motif_read_initiator_info): Byte-swap
      	 the MotifInitiatorInfo structure if necessary.
      
       	* gdk/gdkdnd.c: When extracting and constructing
               Motif DND messages, don't use data.s[], data.l[]
      	 since on 64bit architectures, these won't necessarily
      	 be in the same place with data.b[].
      
       	* gtk/testdnd.c (target_drag_drop): Return TRUE for
      	 drag_drop within the drop zone.
      
      	* gtk/gtkdnd.c (gtk_drag_dest_handle_event): Only send
      	 a XmTRANSFER_FAILURE if no drop site is found, not
      	 on every drop!
      79fbe482
    • Owen Taylor's avatar
      Add flags field to GtkTargetEntry table. · 6a690c6d
      Owen Taylor authored
      Fri Jan 22 19:22:39 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkeditable.c: Add flags field to
      	 GtkTargetEntry table.
      
      	* gdk/gdkwindow.c (gdk_window_is_viewable): Treat foreign
      	 windows as always viewable, since we can't track their
      	 map-state reliably without speed problems. (Fixes
      	 problem where updating didn't occur properly within
      	 GtkPlug)
      6a690c6d
  17. 21 Jan, 1999 2 commits
    • Owen Taylor's avatar
      Set and read the XdndActionList property defined in the Xdnd spec. We do · fea53a95
      Owen Taylor authored
      Thu Jan 21 02:11:44 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* Set and read the XdndActionList property defined
      	in the Xdnd spec. We do this always, not just for
      	XdndActionAsk like the spec says, but if we don't
      	find it, we fall back to actions = suggested_action,
      	which is compatible with the language of the spec.
      fea53a95
    • Jeff Garzik's avatar
      Move not-null assertion before pointer de-ref. · 8dc58cb2
      Jeff Garzik authored
              * gdk/gdkdnd.c (gdk_drag_context_unref):
              Move not-null assertion before pointer de-ref.
      
              * gdk/gdkevents.c (gdk_event_queue_find_first):
              Fix infinite loop bug.  Someone should look at this further to
              make sure the events_pending tests are correct.
      8dc58cb2
  18. 17 Jan, 1999 1 commit
    • Owen Taylor's avatar
      Patch from Felix Bellaby <felix@pooh.u-net.com> · 1adaa231
      Owen Taylor authored
      Sun Jan 17 17:56:33 1999  Owen Taylor  <otaylor@redhat.com>
      
      	Patch from Felix Bellaby <felix@pooh.u-net.com>
      
      	* gdk/gdk.c: Use XmbSetWMProperties to set
      	the class/command on the loader window so that the
      	client machine is also set in the same place.
      	(For X11R5 sesssion management compatibility)
      
      	* gdk/gdk.c: (gdk_set_sm_client_id) Implementation
      	of function to set the session manager client ID.
      
      	* gdk/gdkwindow.c (gdk_window_new): Set
      	WM_CLIENT_LEADER propertiy on all windows pointing
      	back to GDK's leader window.
      1adaa231
  19. 15 Jan, 1999 3 commits
    • Tim Janik's avatar
      define GTK_DISABLE_COMPAT_H for compilation of gtk code. · 87620764
      Tim Janik authored
      Fri Jan 15 19:16:42 1999  Tim Janik  <timj@gtk.org>
      
              * gtk/Makefile.am: define GTK_DISABLE_COMPAT_H for compilation of gtk
              code.
      
              * gtk/gtkrc.c (gtk_rc_style_unref): added an assertment.
      
              * gtk/gtkcompat.h:
              * gtk/gtklabel.h:
              don't provide compatibility defines if GTK_DISABLE_COMPAT_H is defined.
      
              * gtk/gtkstyle.h:
              * gtk/gtkstyle.c: coding style, indentation and alignment fixups.
              (gtk_draw_string):
              (gtk_paint_string):
              (gtk_draw_polygon):
              (gtk_style_set_background): fixed assertments.
              (gtk_default_draw_ramp):
              (gtk_default_draw_cross):
              (gtk_default_draw_oval): issue warnings since these functions aren't
              yet implemented.
      
              * gdk/gdkwindow.c:
              (gdk_window_hide): only unmap window if already mapped.
              (gdk_window_show): only map window if !mapped.
              (gdk_window_internal_destroy): destroyed windows can't be mapped.
      
              * gtk/gtkwidget.c (gtk_widget_event): don't ignore expose events just
              because a resize is queued on a widget, we rely on the expose events
              now.
      87620764
    • Owen Taylor's avatar
      nparams for selection_get should be 3, not 2. [ From Damon Chaplin · 2e99e771
      Owen Taylor authored
      Fri Jan 15 10:22:21 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkwidget.c (gtk_widget_class_init):
      	nparams for selection_get should be 3, not 2.
      	[ From Damon Chaplin <damon@karuna.freeserve.co.uk> ]
      
      	* gtk/gtkeventbox.c (gtk_event_box_paint): Add a paint
      	routine so queued redraws work inside event boxes.
      
      Thu Jan 14 17:47:37 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): Only
       	 redraw character under cursor when not displaying
      	highlighted selection.
      
      	* gdk/gdkrgb.c (gdk_rgb_init): Add in a cast to
      	gpointer to make IRIX cc happy.
      
      Thu Jan 14 12:29:50 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkcheckbutton.c (gtk_check_button_draw): Restructure
      	the drawing code to remove a bit of duplication -
      	and to remove a call to gtk_widget_draw_focus()
      	that queues a redraw when an expose occurs.
      
      	* gtk/gtklabel.c (gtk_label_expose): Fix up handling
      	  of ypadding.
      
      	* gtk/gtknotebook.c (gtk_notebook_draw): If we redraw
      	  the whole widget, also redraw the corresponding
      	  areas of the child widget. (have_visible_child
      	  still has some problems)
      
      	* gdk/gdkpixmap.c: Change some g_new's to g_new0 so
      	  that fields unused for pixmaps get initialzized
      	  sanely.
      
              * gdk/gdk.h gdk/gdkwindow.c gdk/gdkprivate.h: Add new calls
      	  gdk_window_is_visible() and gdk_window_is_viewable()
      	  and a mapped flag to the window private structure.
      
              * gtk/gtkbin.c gtk/gtkclist.c gtk/gtkfixed.c gtk/gtkitem.c
      	  gtk/gtklayout.c gtk/gtklist.c gtk/gtkmenushell.c
      	  gtk/gtknotebook.c gtk/gtkpaned.c gtk/gtktree.c
      	  gtk/gtktreeitem.c gtk/gtkviewport.c:
      	Map windows after mapping children.
      
      	* gtk/gtkwidget.c (gtk_widget_clip_rect): Handle
      	rectangles completely clipped away correctly.
      
      	* gtk/gtkwidget.c (gtk_widget_idle_draw): Don't
      	call gtk_widget_draw if width or height is 0.
      
      	* gtk/gtkwidget.c (gtk_widget_idle_draw): Don't
      	rely on GTK_REDRAW_PENDING after we've cleared
      	it. (This was causing draw-combining to not
      	happen at all).
      
      	* gtk/gtkbin.c gtk/gtkscale.c: Remove uneccessary calls
      	to gtk_widget_queue_draw() when mapping.
      2e99e771
    • Owen Taylor's avatar
      Do all event processing in dispatch() instead of prepare() and check(). · eb7c4e45
      Owen Taylor authored
      Thu Jan 14 19:19:51 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkevents.c: Do all event processing in
      	dispatch() instead of prepare() and check().
      eb7c4e45
  20. 12 Jan, 1999 1 commit
    • Owen Taylor's avatar
      Add a drag_data_received handler for the label. · 24f6d8b8
      Owen Taylor authored
      Tue Jan 12 18:30:51 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/testdnd.c (label_drag_data_received): Add
      	a drag_data_received handler for the label.
      
      Tue Jan 12 15:01:50 1999  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdkevents.c: Removed the putback_events queue,
      	since it was causing problems with event ordering -
      	just keep a single queue. If we need it, we can
      	add priorities to events.
      
      	* gdk/gdkevents.c: Annotate events with flags - we allocate
      	a GdkEventPrivate structure in gdk_event_new() and use these
      	flags to mark an event being translated as "pending" -
      	I.e., not yet ready to be dequeued. So we can put
      	the event on the queue and get the order of the
      	events right. (This solves the double-click problems)
      
      	* gdk/gdk.h gdk/gdkevents.h: Add gdk_event_peek() to get a copy
      	of the next event on the event queue.
      
      	* gtk/gtkmain.c (gtk_main_do_event): Use gdk_event_peek()
      	to check the next event without causing event queue
      	reordering.
      24f6d8b8
  21. 09 Jan, 1999 1 commit
    • Owen Taylor's avatar
      Fixed some list-manipulation breakage. · 95843529
      Owen Taylor authored
      Fri Jan  8 19:00:17 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkdnd.c (gdk_window_cache_filter): Fixed
      	some list-manipulation breakage.
      
      	* gdk/gdkdnd.c (gdk_window_cache_destroy): Free
      	window cache structure.
      
      	* gtk/gtkdnd.c (gtk_drag_set_icon_pixmap): Set an
      	event mask on the drag window so clicking on it
      	doesn't pop up root menus, etc.
      
      	* gtk/gtkdnd.c (gtk_drag_button_release_cb): Remove
      	signal handlers at button release.
      95843529
  22. 05 Jan, 1999 1 commit
    • Owen Taylor's avatar
      Make gtk_propagate_event() non-static, we need it in gtkdnd.c so that the · 1fd7a6e4
      Owen Taylor authored
      Tue Jan  5 15:03:47 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkmain.c (gtk_propagate_event): Make
      	gtk_propagate_event() non-static, we need it in gtkdnd.c
      	so that the button-release we synthesize gets propagated
      	correctly.
      
      	* gtk/gtkdnd.c: Use gtk_propagate_event() so
      	release gets to a GtkList. But we can't really
      	get this right without access to the windows
      	event masks and doing X-style propagation ourselves.
      
      Tue Jan  5 11:31:55 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkselection.c (gtk_target_list_unref): Free
      	memory allocated for target lists.
      
      	* gtk/gtkdnd.c (gtk_drag_drop_finished): Release
      	selections before destroying info structure.
      
      	* gdk/gdkdnd.c gdktypes.h (gdk_drag_get_protocol): Add
      	new value GDK_DRAG_PROTO_NONE, use it for non-drag
      	targets, to quiet Purify.
      
      	* gdk/gdkdnd.c (gdk_window_register_dnd): Set size
      	of property properly.
      1fd7a6e4
  23. 02 Jan, 1999 3 commits
    • Tim Janik's avatar
      make this G_PRIORITY_DEFAULT. · e573567b
      Tim Janik authored
      Sat Jan  2 03:54:30 1999  Tim Janik  <timj@gtk.org>
      
              * gdk/gdk.h (GDK_PRIORITY_EVENTS): make this G_PRIORITY_DEFAULT.
      
              * gdk/gdkevents.c (gdk_events_init): add the source and the poll fd with
              a priority of GDK_PRIORITY_EVENTS.
      e573567b
    • Jeff Garzik's avatar
      Removed features.h test. · d6890b72
      Jeff Garzik authored
              * configure.in, config.h.in, gdk/gdkimage.c:
              Removed features.h test.
      
              * gdk/gdkdnd.c:
              Guard public functions against NULL pointer derefs.
      d6890b72
    • Manish Singh's avatar
      gdk/gdk.c gdk/gdkinputnone.h casts to get rid of const warnings · a6da2cf9
      Manish Singh authored
      * gdk/gdk.c
      * gdk/gdkinputnone.h
      * gtk/gtkruler.c: casts to get rid of const warnings
      
      * gtk/Makefile.am: fix gtktypebuiltins.h dependencies, and do a
      cmp so people don't whine about rebuilds
      
      * gtk/gtknotebook.c: use g_snprintf on translated strings, so we
      don't get buffer overflows
      
      * gtk/gtkrc.c: use g_strdup_printf instead of g_malloc/sprintf
      Plug some memleaks.
      
      -Yosh
      a6da2cf9