1. 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
  2. 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
  3. 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
  4. 24 Feb, 1999 1 commit
  5. 17 Jan, 1999 1 commit
    • Tim Janik's avatar
      removed deprecated functions: gtk_clist_set_border, · e65030aa
      Tim Janik authored
      Sun Jan 17 22:47:15 1999  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkwidget.[hc]:
              * gtk/gtkspinbutton.[hc]:
              * gtk/gtkscrolledwindow.[hc]:
              * gtk/gtkprogressbar.[hc]:
              * gtk/gtkpreview.[hc]:
              * gtk/gtkobject.[hc]:
              * gtk/gtkentry.[hc]:
              * gtk/gtkctree.[hc]:
              * gtk/gtkcontainer.[hc]:
              * gtk/gtkclist.[hc]:
              removed deprecated functions: gtk_clist_set_border,
              gtk_container_block_resize, gtk_container_unblock_resize,
              gtk_container_need_resize, gtk_ctree_set_reorderable,
              gtk_ctree_show_stub, gtk_ctree_set_use_drag_icons,
              gtk_entry_adjust_scroll, gtk_object_class_add_user_signal,
              gtk_preview_put_row, gtk_progress_bar_construct,
              gtk_scrolled_window_construct, gtk_spin_button_construct,
              gtk_widget_freeze_accelerators, gtk_widget_thaw_accelerators.
      
              * gtk/gtkcheckmenuitem.c: removed binary variant of
              gtk_check_menu_item_set_state, this is still defined in gtkcompat.h
              though.
      
              * docs/Changes-1.2.txt:
              removed section about gtk_idle_remove_by_data vs.
              gtk_timeout_remove_by_data, we actually don't even provide a
              gtk_timeout_remove_by_data() function.
              added a table with removed functions and their replacements.
      
              * NEWS: updates for 1.1.13.
      e65030aa
  6. 05 Jan, 1999 1 commit
  7. 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
  8. 23 Nov, 1998 1 commit
    • Tim Janik's avatar
      added args ::show_text, ::text_xalign, ::text_yalign, ::activity_mode. · 98e22a43
      Tim Janik authored
      Sun Nov 22 16:21:28 1998  Tim Janik  <timj@gtk.org>
      
      	* gtk/gtkprogress.c: added args ::show_text, ::text_xalign,
       	::text_yalign, ::activity_mode.
      
      	* gtk/gtkprogressbar.c: added construct arg ::adjustment. added args
       	::bar_style, ::orientation, ::discrete_blocks, ::activity_step,
       	::activity_blocks.
      	(gtk_progress_bar_new):
      	(gtk_progress_bar_new_with_adjustment): use gtk_widget_new().
      	(gtk_progress_bar_construct): deprecated.
      
      	* gtk/gtkvscrollbar.c:
      	(gtk_vscrollbar_draw_step_back):
      	(gtk_vscrollbar_draw_step_forw): use "vscrollbar" as detail for
       	gtk_paint_arrow, to be consistent with hscrollbar.
      
      	* gtk/gtktext.c
      	added construct args ::hadjustment, ::vadjustment.
      	added args ::line_wrap, ::word_wrap.
      	(gtk_text_class_init): added scroll_adjustments signal.
      	(gtk_text_new): use gtk_widget_new.
      	(gtk_text_disconnect): remove adjustement with gtk_text_set_adjustments,
      	so we don't screw the reference counts and don't leave signals connected.
       	(gtk_text_destroy): disconnect adjustments signals.
       	(gtk_text_finalize): unref adjustments.
      
      	* gtk/gtkctree.c: added construct args ::n_columns and ::tree_column.
      	added args ::indent, ::spacing, ::show_stub, ::reorderable,
       	::use_drag_icons, ::line_style and ::expander_style.
      	(gtk_ctree_set_show_stub): renamed from gtk_ctree_show_stub, which is
      	deprecated now.
      
      	* gtk/gtkclist.h: remove GTK_CLIST_CONSTRUCT flag.
      	* gtk/gtkclist.c:
       	removed ::vadjustment and ::hadjustment args, introduced
       	::scroll_adjustments signal.
      	added ::shadow_type, ::selection_mode and ::row_height args.
      	added n_columns construct arg.
      	(gtk_clist_construct): call gtk_object_constructed().
       	(gtk_clist_set_row_height): if height is passed as 0,
      	revert to automatic height calculation.
      	(gtk_clist_destroy): before unrefing the adjustments, disconnect our
      	signal handlers.
      
      Fri Nov 21 22:34:58 1998  Tim Janik  <timj@gtk.org>
      
      	* gtk/gtkwidget.c (gtk_widget_new): call gtk_object_default_construct
      	like gtk_object_new.
      	(gtk_widget_destroy): assert that we only destroy constructed widgets.
      
      	* gtk/gtkobject.h (enum GtkArgFlags): new flag GTK_ARG_CONSTRUCT_ONLY
      	to identify args that may only be used for construction.
      	GTK_ARG_CONSTRUCT maybe used as normal arguments besides construction
      	time.
      	* gtk/gtkobject.c (gtk_object_new): invoke gtk_object_default_construct
      	at the end if the object is not fully constructed.
      	(gtk_object_newv): likewise.
      	(gtk_object_destroy): assert that we only destroy constructed objects.
       	(gtk_object_init): setup GTK_CONSTRUCTED from the
      	objects real klass.
      	(gtk_object_default_construct): new function to complete default
      	construction of an object by applying missing construtor args with
      	default values of 0, 0.0 or NULL.
      	(gtk_object_constructed): new function to mark an object as being
      	constructed (used from within constructors).
      
      	* gtk/gtkarg.c (gtk_arg_type_new_static): return the args info pointer
      	so it is immediatedly available for the caller.
      
      	* gtk/gtktypeutils.c (gtk_type_new): pass an object's real class to
      	the object initilizer (GtkObjectInitFunc takes a second arg now, the
       	real klass), and asure that object initializers may temporarily alter
      	the class pointer.
      
      Fri Nov 20 08:00:30 1998  Tim Janik  <timj@gtk.org>
      
      	* gtk/testgtk.c: change all occourances of gtk_container_add (
      	scrolled_window, widget) to gtk_scrolled_window_add_with_viewport (...)
      	for widget!=(clist, ctree, text, viewport).
      
      	* gtk/gtkcombo.c:
       	(gtk_combo_init): use gtk_scrolled_window_add_with_viewport()
      	to add children to the scrolled window.
      
      	* gtk/gtkscrolledwindow.h:
      	* gtk/gtkscrolledwindow.c:
      	changed scrolled_window->viewport to scrolled_window->child, and use
      	gtk_widget_scroll_adjustements() to set the scroll adjustments for the
      	widget, we do not create an additional viewport anymore.
      	added ::hadjustment and ::vadjustment constructor args.
       	(gtk_scrolled_window_new): use gtk_widget_new() to create the widget.
      	(gtk_scrolled_window_set_hadjustment):
      	(gtk_scrolled_window_set_vadjustment): new functions that superceed
      	gtk_scrolled_window_construct.
      	(gtk_scrolled_window_construct): deprecated this function.
      
      	* gtk/gtkhscrollbar.c:
      	* gtk/gtkvscrollbar.c:
      	* gtk/gtkhscale.c:
      	* gtk/gtkvscale.c:
      	support a constructor arg "::adjustment", and use gtk_widget_new() for
      	the widget creation.
      
      	* gtk/gtkrange.c: added ::update_policy arg.
       	(gtk_range_set_adjustment): if adjustment is passed in as NULL, create
       	a default adjustment so this function can be used for derived widgets
       	that depend on the adjustment's existance.
      	(gtk_range_destroy): disconnect the adjustment signal, so we don't
      	get called after we got destroyed, we don't destroy the adjustment
      	in here, because it might have been provided from another widget.
      
      	* gtk/gtkviewport.c: introduced ::scroll_adjustments signal.
      	(gtk_viewport_destroy): same as gtk_range_destroy.
      
      	* gtk/gtkprogress.c (gtk_progress_destroy): same as gtk_range_destroy.
      
      	* gtk/gtkwidget.h:
      	* gtk/gtkwidget.c: changed gtk_widget_activate() to return a
      	gboolean, indicating whether this widget supports activation.
      	added gtk_widget_scroll_adjustements() to set the scrolling
      	adjustments of a widget.
      
      Wed Nov 19 01:22:42 1998  Tim Janik  <timj@gtk.org>
      
      	* gtk/gtkoptionmenu.c:
       	(gtk_option_menu_remove_contents):
      	(gtk_option_menu_update_contents): removed
       	gtk_container_[un]block_resize() pairs.
      
      	* gtk/gtknotebook.h:
      	* gtk/gtknotebook.c: removed the tab_border field, since it shouldn't
      	be used outside of gtknotebook.c anyways. made ARG_TAB_BORDER a
      	wrtie-only argument.
      
      	* *.c: made deprecated functions issue a message:
      	gtk_clist_set_border, gtk_container_block_resize,
       	gtk_container_unblock_resize, gtk_container_need_resize,
       	gtk_object_class_add_user_signal, gtk_spin_button_construct,
      	gtk_scrolled_window_construct.
      	removed non-functional functions:
      	gtk_container_disable_resize, gtk_container_enable_resize,
      	gtk_clist_set_policy.
      
      Wed Nov 18 22:54:36 1998  Tim Janik  <timj@gtk.org>
      
      	* gtk/gtkbox.c (gtk_box_init):
      	* gtk/gtkdrawingarea.c (gtk_drawing_area_init):
      	* gtk/gtkeventbox.c (gtk_event_box_init):
      	* gtk/gtkfixed.c (gtk_fixed_init):
      	* gtk/gtkframe.c (gtk_frame_init):
      	* gtk/gtkhandlebox.c (gtk_handle_box_init):
      	* gtk/gtkpacker.c (gtk_packer_init):
      	* gtk/gtkmisc.c (gtk_misc_init):
      	* gtk/gtkpreview.c (gtk_preview_init):
      	* gtk/gtkprogress.c (gtk_progress_init):
      	* gtk/gtkprogressbar.c (gtk_progress_bar_init):
      	* gtk/gtkseparator.c (gtk_separator_init):
      	* gtk/gtktable.c (gtk_table_init):
      	* gtk/gtkviewport.c (gtk_viewport_init):
      	* gtk/gtkalignment.c (gtk_alignment_init):
      	removed setting of the GTK_BASIC flag.
      
      	* gtk/gtkwidget.h:
      	* gtk/gtkwidget.c:
      	removed GTK_BASIC, GTK_WIDGET_BASIC and	gtk_widget_basic.
      
      	* miscellaneous GtkType and macro fixups.
      98e22a43
  9. 06 Nov, 1998 1 commit
  10. 20 Aug, 1998 1 commit
  11. 18 Aug, 1998 2 commits
    • Tim Janik's avatar
      use g_get_current_dir() instead of getcwd(). · 49dfa78e
      Tim Janik authored
      Tue Aug 18 17:54:40 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkrc.c (gtk_rc_parse_file): use g_get_current_dir() instead of
              getcwd().
      
              * gdk/gdkprivate.h:
              * gdk/gdkglobals.c:
              * gdk/gdkwindow.c:
              * gdk/gdk.c:
              * gtk/gtkwindow.c:
              * gtk/gtkitemfactory.c:
              dropped gdk_progname, use g_get_prgname()/g_set_prgname() instead.
      
              * gtk/gtkselection.c:
              * gtk/gtkpreview.c:
              * gtk/gtkobject.c:
              * gtk/gtkmain.c:
              * gtk/gtktypeutils.c: indentation fixes due to g_message() use.
      
              * gdk/gdkrgb.c: exchanged occourances of g_print with g_message.
      49dfa78e
    • Tim Janik's avatar
      restricted the --g*fatal-* arguments to --g-fatal-warnings again. this · 7f2909bb
      Tim Janik authored
      Tue Aug 18 03:54:43 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkmain.c (gtk_init): restricted the --g*fatal-* arguments
              to --g-fatal-warnings again. this option now causes log levels of
              WARNING and CRITICAL to abort().
      
              * gdk/gdk.c:
              * gdk/gdkdnd.c:
              * gdk/gdkcc.c:
              * gdk/gdkfont.c:
              * gdk/gdkwindow.c:
              * gdk/gdkvisual.c:
              * gtk/gtkwidget.c:
              * gtk/gtktypeutils.c:
              * gtk/gtktree.c:
              * gtk/gtkfontsel.c:
              * gtk/gtkmain.c:
              * gtk/gtkobject.c:
              * gtk/gtkpreview.c:
              * gtk/gtkselection.c:
              * gtk/gtktext.c:
              * gtk/gtktree.c:
              * gtk/gtktreeitem.c:
              did a global search&replace to substitute g_print() calls with
              g_message(). libraries shouldn't use printf(), g_print() or
              g_printerr() at all.
              a bunch of the replacements should probably be wrapped into the
              G{D|T}K_NOTE() macros, so they are special cased for debugging
              purposes in a sane way, avoiding all the nasty #ifdef DEBUG_MY_TEDDY
              things.
      
              * gdk/gdkrgb.c: left this out currently.
      
              * gdk/gdkdnd.c: added copyright notice.
      7f2909bb
  12. 10 Jul, 1998 1 commit
  13. 04 Jul, 1998 1 commit
  14. 28 Jun, 1998 1 commit
    • Tim Janik's avatar
      call the base class init fucntions from all parent types upon class · e63d08e4
      Tim Janik authored
      Sun Jun 28 04:29:10 1998  Tim Janik  <timj@gtk.org>
      
      	* gtk/gtktypeutils.c (gtk_type_class_init): call the base class init
      	fucntions from all parent types upon class initialization.
      
      	* gtk/gtkcontainer.c:
       	(gtk_container_get_type): announce gtk_container_base_class_init to
       	the type system.
      	(gtk_container_base_class_init): new function to feature base class
      	initialization.
      	(gtk_container_get_child_arg):
      	(gtk_container_set_child_arg): call the GtkContainerClass get_child_arg
      	and set_child_arg methods of the class indicated through the argument
      	name.
      
      	* gtk/gtkobject.c:
      	(gtk_object_base_class_init): new function to feature base class
       	initialization.
      	(gtk_object_init_type): announce gtk_object_base_class_init to the type
      	system.
      	(gtk_object_class_init): setup the get_arg and set_arg pointers for
      	GtkObjectClass.
      	(gtk_object_setv):
       	(gtk_object_getv): call the GtkObjectClass get_arg and set_arg methods,
       	instead of bothering the type system with this.
      
      	* gtk/gtkaccellabel.c:
      	* gtk/gtkbutton.c:
      	* gtk/gtkradiobutton.c:
      	* gtk/gtktable.c:
      	* gtk/gtktogglebutton.c:
      	* gtk/gtktipsquery.c:
      	* gtk/gtkbox.c:
      	* gtk/gtkpacker.c:
      	* gtk/gtkwidget.c:
      	* gtk/gtkwindow.c:
      	* gtk/gtkframe.c:
      	* gtk/gtkmisc.c:
      	* gtk/gtklabel.c: set the object_class->{g|s}et_arg pointers to the
      	corresponding gtk_*_{g|s]et_arg functions and updated the gtk_*_get_type
      	functions wrt GtkTypeInfo initialization. changed a lot of the set/get
      	arg functions to take a GtkObject argument.
      
      	gtk/gtkadjustment.c:
      	gtk/gtkalignment.c:
      	gtk/gtkarrow.c:
      	gtk/gtkaspectframe.c:
      	gtk/gtkbbox.c:
      	gtk/gtkbin.c:
      	gtk/gtkcheckbutton.c:
      	gtk/gtkcheckmenuitem.c:
      	gtk/gtkclist.c:
      	gtk/gtkcolorsel.c:
      	gtk/gtkcombo.c:
      	gtk/gtkctree.c:
      	gtk/gtkcurve.c:
      	gtk/gtkdata.c:
      	gtk/gtkdialog.c:
      	gtk/gtkdrawingarea.c:
      	gtk/gtkeditable.c:
      	gtk/gtkentry.c:
      	gtk/gtkeventbox.c:
      	gtk/gtkfilesel.c:
      	gtk/gtkfixed.c:
      	gtk/gtkfontsel.c:
      	gtk/gtkgamma.c:
      	gtk/gtkhandlebox.c:
      	gtk/gtkhbbox.c:
      	gtk/gtkhbox.c:
      	gtk/gtkhpaned.c:
      	gtk/gtkhruler.c:
      	gtk/gtkhscale.c:
      	gtk/gtkhscrollbar.c:
      	gtk/gtkhseparator.c:
      	gtk/gtkimage.c:
      	gtk/gtkinputdialog.c:
      	gtk/gtkitem.c:
      	gtk/gtkitemfactory.c:
      	gtk/gtklist.c:
      	gtk/gtklistitem.c:
      	gtk/gtkmenu.c:
      	gtk/gtkmenubar.c:
      	gtk/gtkmenuitem.c:
      	gtk/gtkmenushell.c:
      	gtk/gtknotebook.c:
      	gtk/gtkoptionmenu.c:
      	gtk/gtkpaned.c:
      	gtk/gtkpixmap.c:
      	gtk/gtkpreview.c:
      	gtk/gtkprogressbar.c:
      	gtk/gtkradiomenuitem.c:
      	gtk/gtkrange.c:
      	gtk/gtkruler.c:
      	gtk/gtkscale.c:
      	gtk/gtkscrollbar.c:
      	gtk/gtkscrolledwindow.c:
      	gtk/gtkseparator.c:
      	gtk/gtkspinbutton.c:
      	gtk/gtkstatusbar.c:
      	gtk/gtktext.c:
      	gtk/gtktoolbar.c:
      	gtk/gtktooltips.c:
      	gtk/gtktree.c:
      	gtk/gtktreeitem.c:
      	gtk/gtkvbbox.c:
      	gtk/gtkvbox.c:
      	gtk/gtkviewport.c:
      	gtk/gtkvpaned.c:
      	gtk/gtkvruler.c:
      	gtk/gtkvscale.c:
      	gtk/gtkvscrollbar.c:
      	gtk/gtkvseparator.c: updated the GtkTypeInfo initialization code to
      	match the modified GtkTypeInfo structure.
      e63d08e4
  15. 12 May, 1998 1 commit
    • Federico Mena Quintero's avatar
      The commit to the stable branch is on its way... · 2fa59370
      Federico Mena Quintero authored
      1998-05-11  Federico Mena Quintero  <federico@nuclecu.unam.mx>
      
      	* gtk/gtkpreview.c (gtk_preview_realize): Create the window using
      	GtkPreview's visual and colormap, otherwise things can BadMatch.
      
      	* gtk/testgtk.c (create_color_preview):
      	(create_gray_preview): Removed pushing/popping of visual/colormap
      	now that GtkPreview does things correctly.
      
      	* gtk/gtkcolorsel.c (gtk_color_selection_draw_wheel_frame):
      	(gtk_color_selection_draw_wheel): Pick the style from the correct
      	place (the colorsel->wheel_area widget) so that the GCs will match
      	with where we are going to paint to.
      
      	* gtk/testgtk.c (create_color_selection): Removed pushing/popping
      	of visual/colormap now that GtkColorSelection does things the
      	right way.
      2fa59370
  16. 04 May, 1998 1 commit
    • Owen Taylor's avatar
      Merges from the gtk-1-0 branch · d142827b
      Owen Taylor authored
      Sun May  3 14:55:34 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* docs/gtkfaq.sgml (CPPFLAGS): Added a FAQ entry about
      	"glibconfig.h" and another about writing another IRC
      	client.
      
      Sat May  2 00:14:05 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtkpreview.c (gtk_trim_cmap): Make sure the
      	parameters to log are doubles. Digital Unix apparently
      	is missing the argument in its prototype.
      
      Sun May  3 19:04:46 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtklabel.c (gtk_label_state_changed): Don't
      	force a clear until the widget is actually on
      	screen.
      
      Hopefully nothing else though CVS think there are a whole
      bunch more changed files.
      d142827b
  17. 03 May, 1998 1 commit
    • Owen Taylor's avatar
      configure.in acheader.h gdk/gdkwindow.c Check for Shape extension both on · 4851efe2
      Owen Taylor authored
      Sun May  3 13:38:22 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* configure.in acheader.h gdk/gdkwindow.c
      	Check for Shape extension both on the client and server
      	side. (And, more importantly, check for the shape extension
      	so we may include -lXext even when compiling with --disable-xshm)
      
      	Don't set override_redirect on all shaped windows. It isn't
      	necessary.
      
      	* gdk/gdkwindow.c: Set ->colormap to NULL for root
      	and foreign windows. Use this to check if we
      	need to get the colormap from X.
      
      Fri May  1 22:32:47 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtkbutton.c (gtk_button_paint): Draw the areas
      	between the default and the button always in GTK_STATE_NORMAL.
      
      	* gtk/gtkrange.c (gtk_range_style_set): Added a style_set
      	callback.
      
      Fri May  1 16:40:57 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gdk/gdkpixmap.c (gdk_pixmap_colormap_create_from_xpmp[_d]):
      	  Fix a buffer overflow on pixmaps that claim to have
      	  more than 31 characters per pixel.
      
      	  (gdk_pixmap_read_string): Don't wrap around strings longer
       	  than half of address space ;-)
      
      	* gtk/gtk[vh]ruler.c gtk/gtkinputdialog.c: Expand some buffers
      	that were used for printing integers.
      
      	* */* (almost):
      
      	Style: All
      	  int foo () { ... }
      	changed to
      	  int foo (void) { ... }
      
      ^^^^^^^ This is why some many files changed
      
      	Even where there were proper prototypes elsewhere.
      
      	* gdk/gxid.c (handle_claim_device): Some extra checks.
      	It isn't safe against being fed bad X id's, but at
      	least it should be safe against deleting all your
      	files.
      4851efe2
  18. 24 Apr, 1998 1 commit
    • Owen Taylor's avatar
      merging changes from owen: · 5647eeec
      Owen Taylor authored
      
      Wed Apr 15 20:42:46 1998  Owen Taylor  <otaylor@gtk.org>
      
              * gtk/gtkpreview.c (gtk_preview_get_visuals): Make sure
              that when we are running with a non-installed colormap,
              in 8-bit pseudo-color, we actually are using the system
              visual. (Fixes *Bad Match* errors on Digital Unix machines
              with multiple 8-bit pseudo-color visuals)
      
      -r HEAD and -r gtk-1-0 are in sync now!
      5647eeec
  19. 13 Apr, 1998 2 commits
    • PDT 1998 Shawn T. Amundson's avatar
      Changed LGPL address for FSF in all .h and .c files · 92006c8e
      PDT 1998 Shawn T. Amundson authored
      Sun Apr 12 18:54:29 PDT 1998 Shawn T. Amundson <amundson@gtk.org>
      
              * Changed LGPL address for FSF in all .h and .c files
      92006c8e
    • Owen Taylor's avatar
      Set a flag so instead of clearing the area in advance. That looked · e6af5d49
      Owen Taylor authored
      Sun Apr 12 20:09:40 1998  Owen Taylor  <owt1@cornell.edu>
      
      	* gtk/gtklabel.[ch] (gtk_label_expose): Set a flag so
      	instead of clearing the area in advance. That looked
      	_really_ bad.
      
      	* gtk/gtkcontainer.c (gtk_container_class_init): Changed
      	"focus" to RUN_LAST.
      
      	* gtk/gtkentry.c (gtk_entry_realize): Fixed place
      	where allocation was used where requisition was meant.
      	(Found by David J N Begley <david@avarice.nepean.uws.edu.au>)
      
      	* gtk/gtkwindow.c (gtk_window_set_default): Fixed
      	assertion in when setting default to NULL>
      	("Damon Chaplin" <DAChaplin@email.msn.com>)
      
      	* gtk/gtkwidget.c (gtk_widget_unparent): Unset the
      	default widget on the toplevel, if necessary.
      
      Sun Apr 12 02:04:21 1998  Owen Taylor  <owt1@cornell.edu>
      
      	* gtk/gtkpreview.c: Removed unecessary and harmful
      	htons/ntohs when storing properties. (X does the byte
      	swapping itself)
      e6af5d49
  20. 08 Mar, 1998 1 commit
  21. 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
  22. 28 Feb, 1998 1 commit
    • Tim Janik's avatar
      fix behavior of gtk_preview_put() with srcx/srcy != 0, · 8a19c2a1
      Tim Janik authored
      Sat Feb 28 15:18:36 1998  Tim Janik  <timj@gimp.org>
      
              * gtk/gtkpreview.c: fix behavior of gtk_preview_put() with
              srcx/srcy != 0, gtk-shige-980127-0.patch.gz by
              AOSASA Shigeru <aozasa@sakuranet.or.jp>.
      
              * gdk: applied gtk-roebling-980121-0.patch.gz, patch for region
              support in Gdk, by Robert Roebling <roebling@ruf.uni-freiburg.de>.
      8a19c2a1
  23. 12 Feb, 1998 1 commit
    • Federico Mena Quintero's avatar
      Fixed unrealize handler to comply with the documentation (which mentions · 9dee8ee4
      Federico Mena Quintero authored
      2018-02-11  Federico Mena Quintero  <federico@nuclecu.unam.mx>
      
      	* gtk/gtkclist.c:
      	* gtk/gtkentry.c:
      	* gtk/gtkfixed.c:
      	* gtk/gtkhandlebox.c:
      	* gtk/gtknotebook.c:
      	* gtk/gtkpaned.c:
      	* gtk/gtkpreview.c:
      	* gtk/gtkrange.c:
      	* gtk/gtkruler.c:
      	* gtk/gtktext.c:
      	* gtk/gtkviewport.c:
      	Fixed unrealize handler to comply with the
      	documentation (which mentions the right thing to do).
      9dee8ee4
  24. 30 Jan, 1998 1 commit
  25. 18 Jan, 1998 1 commit
    • Owen Taylor's avatar
      gtkbutton.c gtkclist.c gtkdrawingarea.c gtkentry.c gtkeventbox.c · 11d37c50
      Owen Taylor authored
      Sun Jan 18 09:57:00 1998  Owen Taylor  <owt1@cornell.edu>
      * gtkbutton.c gtkclist.c gtkdrawingarea.c gtkentry.c gtkeventbox.c
        gtkfixed.c gtkhandlebox.c gtkhscale.c gtkhscrollbar.c gtkitem.c
        gtklist.c gtkmenushell.c gtkmisc.c gtknotebook.c gtkpaned.c
        gtkpreview.c gtkprogressbar.c gtkruler.c gtktext.c gtktree.c
        gtkviewport.c gtkvscale.c gtkvscrollbar.c gtkwidget.{c,h}
      
        Added gtk_widget_set_parent and gtk_widget_get_parent. All
        widgets should use:
      
         gtk_widget_get_parent() instead of widget->parent->window.
      
        Any widget that wants to have children not in the parent window,
        should use gtk_widget_set_parent () in their realize() and
        add () routines.
      
        CList and Viewport widgets changed to do this. (Viewport
        widget using code from gtk-fortier-980117-0.patch.)
      11d37c50
  26. 16 Jan, 1998 1 commit
  27. 24 Nov, 1997 1 commit