1. 17 Mar, 1998 1 commit
    • Miguel de Icaza's avatar
      Use StructureNotifyMaskMask as the mask, as this enables an application · 8a0d6739
      Miguel de Icaza authored
      Tue Mar 17 02:02:02 1998  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* gdk/gdk.c (gdk_dnd_drag_leave): Use StructureNotifyMaskMask as
      	the mask, as this enables an application listening to those events
      	to catch the root events.  Thanks to Maciej for pointing us in the
      	right direction.
      	(gdk_dnd_drag_enter): Likewise.
      	(gdk_dnd_drag_leave): Likewise.
      	* gdk/gdkwindow.c (gdk_window_dnd_data_set): Likewise.
      8a0d6739
  2. 14 Mar, 1998 2 commits
  3. 11 Mar, 1998 3 commits
  4. 10 Mar, 1998 3 commits
  5. 08 Mar, 1998 3 commits
    • Owen Taylor's avatar
      - Show selection correctly when starting selection with arrows · ab30a02e
      Owen Taylor authored
      Sun Mar  8 15:53:33 1998  Owen Taylor  <owt1@cornell.edu>
      
      	* gtk/gtktext.c:
      
      	- Show selection correctly when starting selection with arrows
      
      	- Display pixmap background only when not editable
      
      	- Redraw focus area more carefully to prevent flashing (and
      	  make style of drawing consistent with Entry)
      
      	* gtk/gtktreeitem.c: ref colormaps for pixmap by colormap
      	  storage.
      
      	* gtk/gtkrc.c: Store a separate style for each RcStyle for
      	  each colormap, so we can handle background pixmaps
      	  correctly, which need to be per-colormap. (Leaks
      	  colormaps...)
      
      	  Parse text color style entries correctly.
      
      	* gtk/testgtk.c: insert text without fg color
      	  gtk/testgtkrc: move "*" after rest, so the other class styles
      	                 take effect
      
              * gdk/gdkwindow.c gdk/gdk.c gdk/gdkprivate.h: Send DND events
      	  safely, in case drop window disappears. (Performance hit
      	  because XSync()'s are necessary)
      
      	* gdk/gdk.h gdk/gdkpixmap.c: Added
      	  gdk_pixmap_colormap_create_from_xpm[_d] to allow creating
      	  pixmaps from xpm's before you have a GdkWindow.
      ab30a02e
    • Tim Janik's avatar
      applied a bunch of patches and removed all the printfs that · 5fa1bfcf
      Tim Janik authored
      raster left over.
      -timj
      5fa1bfcf
    • Tim Janik's avatar
      define the version variables in config.h. · 76d01a82
      Tim Janik authored
      Sun Mar  8 03:00:17 1998  Tim Janik  <timj@gimp.org>
      
              * configure.in: define the version variables in config.h.
      
              * gtk/gtkmain.h:
              * gtk/gtkmain.c: added static version variables.
      
              * gdk/gdkpixmap.c: fixed memory leaks (gtk-gronlund-980307-1.patch.gz)
      76d01a82
  6. 07 Mar, 1998 1 commit
    • Tim Janik's avatar
      made the object/class cast checks much more descriptive, based on · 124d1e5c
      Tim Janik authored
      Sat Mar  7 20:20:53 1998  Tim Janik  <timj@gimp.org>
      
              * gtk/gtkobject.c:
              (gtk_object_check_cast):
              (gtk_object_check_class_cast):
              made the object/class cast checks much more descriptive, based on
              gtk-draco-980305-2.patch.gz and gtk-draco-980306-1.patch.gz but
              optimized for common code path.
      
              * gtk/gtkpreview.c: added a few extra checks for the visual
              (gtk-draco-980305-0.patch.gz).
      
              * gdk/gdk.c (gdk_signal): abort() on a signal if G_ENABLE_DEBUG
                is defined, so we dump core (gtk-draco-980305-0.patch.gz).
      124d1e5c
  7. 06 Mar, 1998 2 commits
  8. 05 Mar, 1998 2 commits
    • Owen Taylor's avatar
      Unset allocation on unparent, to force reallocation if we get adding back · ba55b3f9
      Owen Taylor authored
      Thu Mar  5 01:22:06 1998  Owen Taylor  <owt1@cornell.edu>
      
      	* gtk/gtkwidget.c (gtk_widget_unparent): Unset allocation
      	  on unparent, to force reallocation if we get adding back
      	  to a new parent which is already size-allocated.
      
      	* gtk/gtktreeitem.c: Keep track of separate +/- pixmaps
      	  for each colormap, removed the idle hack.
      
      	* gdk/gdk.c: Don't warn when unable to open XIM method,
      	  since X11R5 apparently has no default method.
      
      	* gtk/gtkwidget.c (gtk_widget_set_style_internal): Don't
      	  call size_request on initial emission - since the
      	  widget size isn't set yet, it can't change.
      
      	* gtk/Makefile.am: New rules 'test' and 'test-debug' to run
      	  testgtk with the correct working directory.
      
      	* gtk/gtkentry.c (gtk_move_forward_word):
      	  Check for position at end of line.
      
      	* gtk/gtkinputdialog.h (struct _GtkInputDialogClass):
      	  removed 'gpointer data' arguments from default handler
      	  structures.
      ba55b3f9
    • Miguel de Icaza's avatar
      Drags can only be started with the left button. · 793a1305
      Miguel de Icaza authored
      Wed Mar  4 20:06:47 1998  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* gdk/gdk.c (gdk_event_translate): Drags can only be started with
      	the left button.
      793a1305
  9. 01 Mar, 1998 1 commit
  10. 26 Feb, 1998 1 commit
  11. 25 Feb, 1998 1 commit
  12. 19 Feb, 1998 4 commits
    • Owen Taylor's avatar
      the value of ---enable_debug is written into glibconfig.h so everything is · 62dba86c
      Owen Taylor authored
      Thu Feb 19 12:18:24 1998  Owen Taylor  <owt1@cornell.edu>
      
      	* glib/configure.in glib/glibconfig.h.in: the value of
      	---enable_debug is written into glibconfig.h so everything
      	is recompiled when it changes. (HACK)
      
      	* gtk/gtkmain.c gdk/gdk.c docs/debugging.txt:
      	Added --gdk-no-debug and --gtk-no-debug switches. Effect
      	of switches is no cumulative.
      62dba86c
    • Tim Janik's avatar
      more debugging fixes. · 10474e6a
      Tim Janik authored
      hey yosh, you beated me at gdk.c ;)
      -timj
      10474e6a
    • Manish Singh's avatar
      Should compile with debugging off now... · c87244dd
      Manish Singh authored
      -Yosh
      c87244dd
    • Owen Taylor's avatar
      configure.in gdk/gdk.[ch] gdk/gdkcc.c gdk/gdkglobals.c · fc7e845c
      Owen Taylor authored
      Thu Feb 19 01:11:48 1998  Owen Taylor  <owt1@cornell.edu>
      
      	* configure.in         gdk/gdk.[ch]         gdk/gdkcc.c
      	  gdk/gdkglobals.c     gdk/gdkinputcommon.h gdk/gdkprivate.h
      	  gdk/gdkvisual.c      glib/configure.in    glib/glib.h
      	  glib/gutils.c        gtk/Makefile.am      gtk/gtkmain.c
      	  gtk/gtkobject.[ch]   gtk/gtkdebug.h       docs/debugging.txt
      
      	New system for controlling debugging:
      
      	* --enable-debug=[no/yes/minimum]
      	* G_DISABLE_ASSERT and G_DISABLE_CHECKS for glib
      	* G_NO_CHECK_CASTS to control cast checking
      	* G_ENABLE_DEBUG enables run time checking which controls:
      	    Object tracing
      	    Showing events
      	    Miscellaneous g_print's in GDK
      	  And is controlled by --gdk-debug/GDK_DEBUG, --gtk-debug/GTK_DEBUG
              * debug_level and show_events are gone from GTK
      
      	See docs/debugging.txt for details.
      
      	And some fixups to the configure.in's so '-g' can be
      	overriden on the command line for --enable-debug
      fc7e845c
  13. 18 Feb, 1998 1 commit
  14. 16 Feb, 1998 1 commit
  15. 13 Feb, 1998 2 commits
    • Tim Janik's avatar
      check for clist !REALIZED. (draw_rows): bail out if the widget isn't · 3c7f5af2
      Tim Janik authored
      Fri Feb 13 19:08:51 1998  Tim Janik  <timj@gimp.org>
      
              * gtk/gtkclist.c (check_exposures): check for clist !REALIZED.
              (draw_rows): bail out if the widget isn't drawable.
              (hadjustment_value_changed):
              (vadjustment_value_changed): bail out if clist isn't drawable.
      
              * gdk/gdk.c (graphics_expose_predicate): check for private != NULL.
              (gdk_event_get_graphics_expose): check for window != NULL.
      3c7f5af2
    • Owen Taylor's avatar
      gtk/gtksignal.[ch] gtk/gtkmain.[ch] gtk/gtkcontainer.[ch] · 888470ee
      Owen Taylor authored
      Thu Feb 12 23:59:49 1998  Owen Taylor  <owt1@cornell.edu>
      
      	* gtk/gtksignal.[ch] gtk/gtkmain.[ch] gtk/gtkcontainer.[ch]
      	  gtk/gtkselection.[ch] gdk/gdk.[ch] gtktypeutils.h
      
       	  Replaced all _interp functions with _full functions.
      	  (_interp functions left in for compatibility until 0.99.5).
      	  Difference: _full functions take _both_ a C-language callback and a
      	  marshaller, and simply ignore the C-language callback
      	  if the marshaller is present. This allows the destroy notification
      	  to be used without marshalling.
      
      	  gtk_selection_add_handler[_full]() regularized to agree
      	  with other callbacks.
      
      	  Also, added gtk_input_add_full() to the header file.
      	  (gtk_input_add_interp() was never there)
      
      	* gtk/gtkmain.[ch] gtk/gtkwidget.c: Idle functions are now prioritized.
      	  Added new function gtk_idle_add_priority to create
      	  an idle with a specified priority (default is zero)
      	  constants #defined - GTK_PRIORITY_[HIGH/INTERNAL/DEFAULT/LOW]
      	  (redraws, resizes run at GTK_PRIORITY_INTERNAL)
      
      	* gtk/gtkentry.c gtk/testselection.c: changes to keep up with change
        	  to gtkselection.c.
      888470ee
  16. 07 Feb, 1998 1 commit
  17. 05 Feb, 1998 1 commit
    • Tim Janik's avatar
      new function to perform the same actions as gtk_list_remove_items, but · 9258a7ae
      Tim Janik authored
      Thu Feb  5 02:13:08 1998  Tim Janik  <timj@gimp.org>
      
              * gtk/gtklist.h:
              * gtk/gtklist.c (gtk_list_remove_items_no_unref): new function
                to perform the same actions as gtk_list_remove_items, but
                supply the removed widgets with an additional reference count.
      
              * gtk/gtkmain.c (gtk_main_iteration_do): ignore events
                with event_widget == NULL, since they are bogus events
                from destroyed GdkWindows, exept for the case where
                event->type==GDK_PROPERTY_NOTIFY. Always handle expired
                timeout functions when returning from this function.
      
              * gtk/gtkwidget.c (gtk_widget_event): ignore GDK_EXPOSE events
                if event->window == NULL. Also, if this function couldn't handle
                the event for any reason (including failing assumptions), make
                the return value to look as if the event had been handled to
                avoid further processing (and warnings).
      
              * gtk/gtkwidget.h:
              * gtk/gtkwidget.c: remove gtk_widget_sink, because there is
                no point in providing such a function.
      
              * gdk/gdk.c (gdk_init): changed options `-name' and `-class'
                to `--name' and `--class', because the old names would
                confuse getopt(). these arguments have been introduced in the
                changes from gtk+970916 to gtk+970925 without a ChangeLog entry,
                changing argument names is painful, it would be nice if people
                would care about compatibility and consistency in the first place!
      9258a7ae
  18. 26 Jan, 1998 1 commit
    • Tim Janik's avatar
      added a bunch of checks for window != NULL and private->destroyed. (don't · f734007a
      Tim Janik authored
      Mon Jan 26 02:15:29 1998  Tim Janik  <timj@gimp.org>
      
              * gdk/gdkdraw.c:
              * gdk/gdkgc.c:
              * gdk/gdkimage.c:
              * gdk/gdkinput.c:
              * gdk/gdkpixmap.c:
              * gdk/gdkproperty.c:
              * gdk/gdkselection.c:
              * gdk/gdkwindow.c: added a bunch of checks for window != NULL and
                private->destroyed.
      (don't trust this cvs commit message, i didn't modify that many files!)
      f734007a
  19. 21 Jan, 1998 3 commits
  20. 17 Jan, 1998 1 commit
    • Owen Taylor's avatar
      Take putback events into account · 44364802
      Owen Taylor authored
      * gdk/gdk.c (gdk_events_pending): Take putback events into
        account
      
      * gdk/gdk.c (gdk_event_free): Handle dropdataavaible memory
        allocation correctly. (Incompatible change: client must
        _not_ fre event->data and event->data_type.)
      
      * gdk/gdk.c (gdk_event_translate): Changed DND dragging
        so that we don't ungrab pointer when we reenter window
        to prevent extra Enter/Leave effects which had bad
        effects.
        Changed drag zone handling to not send uncessary
        DragEnter events.
        Fixed EnterNotify/LeaveNotify handling. (Only pay
        attention to events on window, don't specify these
        events to XGrabPointer - that isn't valid, and handle
        reverse the sense of the handling of LeaveNotify.)
      
      * gdk/gdkwindow.c (gdk_window_remove_filter): Free removed
        filter.
      
      * gtk/gtk.defs (GdkFont): gdk_font_free => gdk_font_unref
      
      * gtk/gtkmain.{c,h} (gtk_events_pending): new function - apps
        should use this instead of gdk_events_pending.
      
      * gtk/gtkvbbox.h: Fixed a duplication in the headers.
      
      * gtk/testgtk.c (dnd_drop): Don't free the drop data,
        it belongs to the event.
      44364802
  21. 03 Jan, 1998 1 commit
  22. 02 Jan, 1998 1 commit
  23. 31 Dec, 1997 1 commit
  24. 26 Dec, 1997 1 commit
  25. 19 Dec, 1997 1 commit