1. 29 Sep, 1999 1 commit
  2. 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
  3. 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
  4. 15 Mar, 1999 1 commit
    • Tor Lillqvist's avatar
      This might seem like a large patch, but it isn't that bad, and nothing · c65508d2
      Tor Lillqvist authored
      should break on Unix/X11.
      
      Win32 merge and general portability stuff:
      
      * acconfig.h,configure.in: Check for <sys/time.h>.
      
      * gdk/win32: New directory (actually, been there for a while).
      
      * gtk/fnmatch.c: Include <glib.h> for G_DIR_SEPARATOR, WIN32 and
      NATIVE_WIN32, and use these. Always case fold on Win32. No
      backslashed escapes on native Win32.
      
      * gtk/{gtk.def,makefile.msc}: New files.
      
      * gtk/Makefile.am: Add above new files.
      
      * gtk/{gtkaccelgroup,gtkbindings}.c: Include <string.h>
      instead of <strings.h>.
      
      * gtk/{gtkcalendar,gtkitemfactory,gtkpreview,gtkrc}.c: Include
      config.h. Protect inclusion of <sys/param.h>, <sys/time.h>, and
      <unistd.h> appropriately.
      
      * gtk/gtkdnd.c: Merge in Win32 version (which doesn't do much).
      Use ABS() (from <glib.h>) instead of abs().
      
      * gtk/gtkfilesel.c: Moved Win32-specific includes after inclusion
      of gtk (and thus glib) headers, so that WIN32 will be
      defined. With MS C, include <direct.h> for mkdir prototype.
      
      * gtk/gtkitemfactory.c (gtk_item_factory_callback_marshal): Add
      some casts, needed by MS C.
      
      * gtk/{gtklayout,gtkplug}.c: Merge in Win32 version (which isn't
      implemented).
      
      * gtk/gtkmain.c: Include gdk/gdkx.h for GDK_WINDOWING. Include
      <X11/Xlocale.h> only on X11 platform, otherwise <locale.h>.  Use
      G_SEARCHPATH_SEPARATOR_S and g_module_build_path.
      
      * gtk/gtkmain.h: Mark variables for export/import on Win32.
      
      * gtk/gtkrange.c (gtk_range_motion_notify): Set mods also in case
      the event is not a hint, or its window is not the slider. Needed
      on Win32, at least.
      
      * gtk/gtkrc.c: Include config.h and gdk/gdkx.h. Use <locale.h>
      unless on X11. Skip \r chars, too. Use G_DIR_SEPARATOR and
      G_SEARCHPATH_SEPARATOR(_S). Use g_path_is_absolute. On Win32, use
      a subdirectory of the Windows directory as gtk system
      configuration directory.
      
      * gtk/gtkselection.c: No chunks on Win32.
      
      * gtk/gtksocket.c: Not implemented on Win32.
      
      * gtk/gtkthemes.c (gtk_theme_engine_get): Use g_module_build_path.
      
      * gtk/makeenums.h: Include gdkprivate.h after gdk.h.
      
      * gtk/testrgb.c: Use dynamically allocated buffer. Use GTimers.
      c65508d2
  5. 24 Feb, 1999 1 commit
  6. 21 Feb, 1999 1 commit
    • 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
  7. 25 Jan, 1999 1 commit
    • Jiri (George) Lebl's avatar
      set RECEIVES_DEFAULT on init, and a button press on the widget doesn't · 4b8095d5
      Jiri (George) Lebl authored
      Mon Jan 25 11:05:10 1999  George Lebl  <jirka@5z.com>
      
              * gtk/gtkbutton.c: set RECEIVES_DEFAULT on init, and a
                button press on the widget doesn't grab default anymore
      
              * gtk/gtkcheckbutton.c,gtk/gtkoptionmenu.c,gtk/gtkradiobutton.c:
                unset RECEIVES_DEFAULT on init
      
              * gtk/gtkwidget.[ch]: add a RECEIVES_DEFAULT flag to widget
                flags
      
              * gtk/gtkwindow.c,gtk/gtkplug.c: on pressing <enter>, activate
                the focused widget if it is a RECEIVES_DEFAULT widget,
                no matter what the current default_widget is
      
              * gtk/gtkwindow.c: on focus change, migrate the HAS_DEFAULT
                flag to CAN_DEFAULT widgets if they RECEIVE_DEFAULT as well
                or migrate it back to the default_widget if the focus widget
                doesn't "RECEIVE_DEFAULT"
      4b8095d5
  8. 30 Nov, 1998 1 commit
    • Elliot Lee's avatar
      I submitted this patch twice to gtk-devel-list, and received no comments, · 060978e0
      Elliot Lee authored
      
      
      I submitted this patch twice to gtk-devel-list, and received no comments, so
      am committing it.  Although not exhaustively tested, I have been using this
      gtk+ for a week w/o problems, and I did read the code to ensure that nothing
      ever writes to these data structures. If by chance people encounter SEGV's in
      gtk+ code that is setting values in global data structures, this patch could
      be a possible culprit.
      
      1998-11-30  Elliot Lee  <sopwith@cuc.ml.org>
      
      	* {gdk,gtk}/*.c: Make read-only data structures "static const" to
      	allow them to be shared, mainly including (but not limited to) the
      	GtkTypeInfo structures for each class.
      
      	* gtk/gtkfilesel.c: Add /net to the "leave me alone" directory listing.
      060978e0
  9. 24 Nov, 1998 2 commits
    • Owen Taylor's avatar
      Edited section on the ScrolledWindow. · a425e6b5
      Owen Taylor authored
      Tue Nov 24 11:31:06 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* docs/Changes-1.2.txt: Edited section on the ScrolledWindow.
      
      	* gtk/gtklayout.c (gtk_layout_set_[hv]adjustment): Remove
      	some code duplication.
      
      	* gtk/gtklayout.[ch] Fixed mapping and unmapping of child windows
      	and child widgets when scrolling greater than 32k pixels.
      
      	* testgtk.c: Modified layout test to test scrolling over
      	long distances.
      
      	* gtk/gtkplug.c: Added a few blank lines.
      a425e6b5
    • Owen Taylor's avatar
      Added layout widget for scrolling arbitrarily big areas. Added plug/socket · ee1d4392
      Owen Taylor authored
      Mon Nov 23 22:10:09 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/Makefile.am gtk/gtk.h gtk/gtklayout.[ch]
      	gtk/gtkplug.[ch] gtk/gtksocket.[ch] gtk/gtk.h:
      
      	Added layout widget for scrolling arbitrarily big areas.
      	Added plug/socket widgets for interprocess embedding.
      
      	These widgets still, at some point, need to be
      	made more pure in their use of GDK, as opposed
      	to raw X.
      
      	* gtk/testgtk.c: Added test for layout widget.
      ee1d4392