1. 12 Nov, 2003 1 commit
  2. 10 Oct, 2003 1 commit
    • Kristian Rietveld's avatar
      Deprecate. Ditto. · e6100ecd
      Kristian Rietveld authored
      Fri Oct 10 19:10:12 2003  Kristian Rietveld  <kris@gtk.org>
      
      	* gtk/gtkcombo.h: Deprecate.
      	* gtk/gtkoptionmenu.h: Ditto.
      
      	* gtk/gtkcombobox.c (gtk_combo_box_size_request),
      	(gtk_combo_box_size_allocate): Rework, things behave better now. Still
      	needs some work on requesting enough size when taking the items in
      	the list into account.
      
      	* gtk/gtkfilesel.c: put gtkoptionmenu.h include inside "enable
      	deprecated" guards.
      	* gtk/gtkinputdialog.c: ditto.
      	* gtk/gtkitemfactory.c: ditto.
      	* gtk/gtkoptionmenu.c: ditto.
      
      	* demos/gtk-demo/menus.c: remove the option menu.
      	* demos/gtk-demo/sizegroup.c: replace the option menus with
      	GtkComboBox.
      	* demos/gtk-demo/textview.c: ditto.
      	(A general GtkComboBox demo will be added later on).
      e6100ecd
  3. 27 May, 2003 1 commit
    • Matthias Clasen's avatar
      Remove dubious bitfields of unspecified signedness. (#112919, Morten · 83c626bb
      Matthias Clasen authored
      2003-05-27  Matthias Clasen  <maclas@gmx.de>
      
      	* io-wbmp.c: Remove dubious bitfields of
      	unspecified signedness.  (#112919, Morten Welinder)gdk-p
      
      	* gdk-pixdata.c (gdk_pixdata_to_csource): Replace all occurances
      	of g_string_new ("") by g_string_new (NULL). (#106975, Morten Welinder)
      
      	* gtk/gtkwindow-decorate.c:
      	* gtk/gtktreeprivate.h:
      	* gtk/gtkdnd.c:
      	* gdk/win32/gdkwindow-win32.h:
      	* gdk/linux-fb/gdkprivate-fb.h:
      	* gdk/linux-fb/gdkkeyboard-fb.c: Remove dubious bitfields of
      	unspecified signedness.  (#112919, Morten Welinder)
      
      	* gtk/queryimmodules.c (escape_string):
      	* gtk/gtktextbtree.c (_gtk_text_btree_get_text):
      	* gtk/gtksettings.c (_gtk_settings_parse_convert):
      	* gtk/gtkrc.c (gtk_rc_parse_assignment):
      	* gtk/gtkinputdialog.c (gtk_input_dialog_set_key):
      	* gdk/x11/gdkdisplay-x11.c (escape_for_xmessage): Replace all
      	occurances of g_string_new ("") by g_string_new (NULL). (#106975,
      	Morten Welinder)
      83c626bb
  4. 15 Dec, 2002 1 commit
    • Matthias Clasen's avatar
      Use g_printf instead of system printf. (#99327) · 8ba71578
      Matthias Clasen authored
      2002-12-15  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkcalendar.c:
      	* gtk/gtkfilesel.c:
      	* gtk/gtkfontsel.c:
      	* gtk/gtkhruler.c:
      	* gtk/gtkinputdialog.c:
      	* gtk/gtkprogress.c:
      	* gtk/gtktreemodel.c:
      	* gtk/gtkvruler.c:
      	* gtk/queryimmodules.c:
      	* gtk/theme-bits/decompose-bits.c:
      	* gdk-pixbuf/gdk-pixbuf-csource.c:
      	* gdk-pixbuf/make-inline-pixbuf.c:
      	* gdk-pixbuf/queryloaders.c:
      	* gdk/gdkkeynames.c:
      	* gdk/gdkrgb.c:
      	* gdk/linux-fb/gdkfbmanager.c:
      	* gdk/win32/gdkevents-win32.c:
      	* gdk/win32/gdkmain-win32.c:
      	* gdk/win32/gdkproperty-win32.c:
      	* gdk/x11/gdkmain-x11.c: Use g_printf instead of system
      	printf.  (#99327)
      8ba71578
  5. 14 Dec, 2002 1 commit
    • Owen Taylor's avatar
      Handle the case where the pointer is moved between screens during a handle · 30b328e7
      Owen Taylor authored
      Fri Dec 13 21:35:12 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkhandlebox.c (gtk_handle_box_motion): Handle
              the case where the pointer is moved between screens
              during a handle box drag by resetting the original
              location. (#94562)
      
              * gtk/gtkinputdialog.c (gtk_input_dialog_get_private):
              Fix a leftover variable name from cut-and-paste.
      30b328e7
  6. 12 Nov, 2002 1 commit
  7. 11 Oct, 2002 1 commit
    • Manish Singh's avatar
      Deprecation cleanup · f18d5d35
      Manish Singh authored
      Fri Oct 11 15:56:20 2002  Manish Singh  <yosh@gimp.org>
      
              * gtk/gtkaccellabel.[ch] gtk/gtkaccessible.[ch] gtk/gtkbutton.[ch]
              gtk/gtkcheckbutton.[ch] gtk/gtkcolorseldialog.[ch] gtk/gtkdialog.[ch]
              gtk/gtkhandlebox.[ch] gtk/gtkinputdialog.[ch] gtk/gtkmessagedialog.[ch]
              gtk/gtktearoffmenuitem.[ch] gtk/gtktogglebutton.[ch]: Deprecation
              cleanup
      f18d5d35
  8. 08 Feb, 2002 2 commits
    • 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
    • Sven Neumann's avatar
      gtk/gtkfilesel.c gtk/gtkgamma.c use stock labels for dialog action · 0d18cf96
      Sven Neumann authored
      2002-02-08  Sven Neumann  <sven@gimp.org>
      
      	* gtk/gtkfilesel.c
      	* gtk/gtkgamma.c
      	* gtk/gtkinputdialog.c: use stock labels for dialog action buttons.
      0d18cf96
  9. 02 Feb, 2002 1 commit
  10. 18 Jan, 2002 1 commit
  11. 17 Nov, 2001 1 commit
    • Owen Taylor's avatar
      Make gtkmarshal.list/gtkmarshal.h only for compatibility with GTK+-1.2; · a036c6e5
      Owen Taylor authored
      Sat Nov 17 18:26:45 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/Makefile.am gtk/gtkmarshal.list gtk/gtkmarshalers.list
      	gtk/*.c gtk/gtksignal.h: Make gtkmarshal.list/gtkmarshal.h
      	only for compatibility with GTK+-1.2; and deprecate it;
      	put all marshalers we actually use into gtkmarshalers.list
      	and use the _gtk_marshal_ prefix for these marshalers.
      a036c6e5
  12. 15 Oct, 2001 1 commit
  13. 07 Sep, 2001 1 commit
    • Owen Taylor's avatar
      Make gdkx.h the only installed header from gdk/x11. All structures in · 1bbf2ac7
      Owen Taylor authored
      Fri Sep  7 11:51:44 2001  Owen Taylor  <otaylor@redhat.com>
      
            Make gdkx.h the only installed header from gdk/x11.
            All structures in gdk/x11 are opaque.
      
      	* gdk/x11/Makefile.am gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h:
      	Don't install gdk{drawable,pixmap,window}-x11.h.
      
      	* gdk/x11/{gdkcolormap-x11.c, gdkfont-x11.c, gdkx.h, gdkvisual-x11.c:
      	Move GdkColormapPrivateX11, GdkFontPrivateX GdkImagePrivateX11,
      	GdkVisualClass into C files.
      
      	* gdk/gdkpixmap-x11.[ch]: Make gdk_pixmap_impl_get_type() static.
      
      	* gdk/x11/{gdkcolor-x11.c, gdkcursor-x11.c, gdkdrawable-x11.c,
      	gdkfont-x11.c, gdkgc-x11.c, gdkx.h, gdkimage-x11,gdkvisual-x11.c}
      	Add public functions to replace previously exported direct
      	structure access.
      	gdk_x11_colormap_get_{xdisplay,xcolormap}
      	gdk_x11_cursor_get_{xdisplay,xcursor},
      	gdk_x11_drawable_get_{xdisplay,xcursor,gdk_x11_visual_get_xvisual,
      	gdk_x11_font_get_{xdisplay,xfont}, gdk_x11_image_get_{xdisplay,ximage},
      	gdk_x11_gc_get_{xdisplay,ximage}
      
      	* gdk/gdkprivate.h gdk/gdkinternals.h: Move GdkColorInfo,
      	GdkEventFilter, GdkClientFilter, GdkFontPrivate to gdkinternals.
      
            Fix a number of variables and functions that were exported
            "accidentally" from GDK.
      
      	* gdk/**.[ch]: gdk => _gdk for gdk_visual_init,
      	gdk_events_init, gdk_input_init, gdk_dnd_init, gdk_image_exit,
      	gdk_input_exit,	gdk_windowing_exit, gdk_event_func, gdk_event_data,
      	gdk_event_notify, gdk_queued_events, gdk_queued_tail,
      	gdk_event_new, gdk_events_queue, gdk_events_unqueue,
      	gdk_event_queue_find_first, gdk_event_queue_remove_link,
      	gdk_event_queue_append, gdk_event_button_generate,
      	gdk_debug_flags, gdk_default_filters, gdk_parent_root.
      
      	* gdk/x11/{gdkevents-x11.c, gdkglobals-x11.c, gdkimage-x11.c,
      	   gdkmain-x11.c, gdkprivate-x11.h, gdk/x11/gdkwindow-x11.c}:
      	gdk => _gdk for gdk_event_mask_table, gkd_nevent_masks,
      	gdk_wm_window_protocols, gdk_leader_window, gdk_xgrab_window,
      	gdk_use_xshm, gdk_input_ignore_core.
      
      	* gdk/x11/xsettings-common.h (xsettings_list_insert): Add
      	#defines to namespace functions into the private _gdk_
      	namespace.
      
      	* gdk/gdkwindow.[ch] gdk/x11/gdkx.h: Add gdk_get_default_root_window ()
      	to replace gdk_parent_root exported variable. Adjust and
      	deprecate GDK_ROOT_PARENT().
      
      	* demos/{testpixbuf-drawable.c,testpixbuf-save.c}: Fix
      	GDK_ROOT_PARENT usage, remove includes of port-specific
      	headers.
      
      	* gdk/{win32,x11,fb}/gdkinput*.[ch]: s/gdk/_gdk/ for
      	_gdk_input_gxid_host, _gdk_input_gxid_port, _gdk_input_ignore_core,
      	gdk_input_devices, _gdk_input_windows, gdk_init_input_core.
      
      	* gdk/x11/{gdkevents-x11.,c gdkglobals-x11.c, gdkmain-x11.c}
      	docs/Changes-2.0.txt: Remove gdk_wm_protocols,
      	gdk_wm_delete_window functions, gdk_wm_take_focus,
      	use gdk_atom_intern() instead.
      
      	* gdk/linux-fb/{gdkselection-fb.c, gdkmain-fb.c, gdkprivatefb.h}
      	  gdk/win32/{gdkselection-win32.c, gdkmgdkwin32.h, gdkprivate-win32.h}
      	  gdk/x11/{gdkselection-x11.c gdkx.h, gtkprivate-x11.h}
      	  gtk/gtkselection.c
              Unexport gdk_selection_property, just use
      	gdk_atom_intern ("GDK_SELECTION").
      
      	* gdk/x11/{gdkprivate-x11.h,gdkdrawable-x11h,gdkgc-x11.c,gdkx.h}:
      	Unexport gdk_drawable_impl_x11_get_type, gdk_gc_x11_get_type,
      	GDK_GC_X11 cast macros, GdkGCX11 structures, GdkCursorPrivate,
      	GdkVisualprivate, gdk_x11_gc_flush.
      
            Make a number of public exports of variables into functions
            to increase encapsulation.
      
      	* gdk/gdkinternals.h gdk/gdkinput.h gdk/gdkevents.h
      	gdk/linux-fb/gdkmouse-fb.c: gdk_core_pointer => _gdk_core_pointer,
      	move to gdkinternals.h. Add gdk_device_get_core_pointer ().
      
      	* gdk/gdkprivate.h gdk/gdkpango.c gdk/gdkinternals.h
      	docs/Changes-2.0.txt: Unexport gdk_parent_root, gdk_error_code,
      	gdk_error_warnings.
      
      	* gdk/x11/{gdkcolormap-x11.c, gdkmain-x11.c, gdkx.h}
      	  docs/Changes-2.0.txt:
      	s/gdk_screen/_gdk_screen/, add gdk_x11_get_default_screen()
      	s/gdk_root_window/_gdk_root_window/, add gdk_x11_get_default_root_xwindow()
      	Add gdk_x11_get_default_xdisplay().
      
      	* gdk/gdk.h gdk/gdk.c linux-fb/gdkfb.h linux-fb/gdkglobals-fb.c
      	win32/gdkwin32.h x11/gdkglobals-x11.c gdk/x11/gdkmain-x11.c
      	gdk/x11/gdkx.h: gdk/gdk.def: Add gdk_get/set_program_class,
      	Don't export gdk_progclass, move --class command line
      	option and handling to common portion of GDK.
      
            Miscellaneous fixes:
      
      	* gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): Fix
      	g_return_val_if_fail that should have been g_return_if_fail.
      
      	* gdk/gdkinternals.h gdk/gdkprivate.h: Move
      	gdk_synthesize_window_state() to the semi-public gdkprivate.h.
      
      	* gtk/gtkdnd.c (_gtk_drag_source_handle_event): Remove uneeded
      	X11 dependency.
      
      	* gdk/linux-fb/gdkmain-fb.c gdk/win32/gdkmain-win32.c gdk/TODO:
      	Remove unused gdk_key_repeat_disable/restore.
      
      	* linux-fb/gdkglobals-fb.c win32/gdkglobals-win32.c
      	x11/gdkglobals-x11.c x11/gdkprivate-x11.h gdk/gdk.def:
      	Remove unused gdk_null_window_warnings variable.
      
      	* gdk/Makefile.am (DIST_SUBDIRS) nanox/*: cvs remove nanox;
      	it can be retrieved from the repository; it is too far
      	from functional to be worth having people check out;
      	it would be easier to start from scratch, I suspect.
      
      	* gdk/x11/gdkpixmap-x11.c: Fix lvalue usage of GDK_PIXMAP_XID().
      
      	* gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c
      	gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c:
      	Fix some accidentally global variables and unused global variables.
      
      	* gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c
      	gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c:
      	Fix some accidentally global variables and unused global variables.
      
            Add some space for future expansion to multihead.
      
      	* gdk/gdkdrawable.h: Add four reserved function pointers
      	for future expansion of GdkDrawableClass.
      
      	* gtk/gtkwindow.h gtk/gtkinvisible.h: Add reserved pointer
      	where we can put a GdkScreen * later.
      1bbf2ac7
  14. 19 Jul, 2001 1 commit
    • Owen Taylor's avatar
      gtk/gtkaccellabel.c (gtk_accel_label_class_init) Use Shift/Ctrl instead of · e37def18
      Owen Taylor authored
      Thu Jul 19 14:56:33 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkaccellabel.c (gtk_accel_label_class_init)
      	* gtk/gtkinputdialog.c (gtk_input_dialog_set_key):
      	Use Shift/Ctrl instead of Shft/Ctl. (#53807)
      
      Thu Jul 19 11:41:00 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkcolorsel.c: Add propery support (roughly
      	based on patch from Lee Mallabone, #51014)
      
      	* gtk/gtkcolorsel.h: Mark gtk_color_selection_set_update_policy as
      	deprecated, since we already g_warning() on it.
      e37def18
  15. 24 Mar, 2001 1 commit
    • Havoc Pennington's avatar
      make this somewhat key-navigable · 207e3bb9
      Havoc Pennington authored
      2001-03-23  Havoc Pennington  <hp@pobox.com>
      
      	* gtk/gtkhsv.c: make this somewhat key-navigable
      
      	* gtk/gtkfontsel.c: mnemonics
      
      	* gtk/gtkgamma.c: mnemonics
      
      	* gtk/gtkcolorsel.c: add mnemonics to labels
      
      2001-03-22  Havoc Pennington  <hp@pobox.com>
      
      	Applied big patch from Seth Lytle to fix event handler return
      	values, slightly modified.
      
      	* gtk/gtkcalendar.c (gtk_calendar_button_press): return TRUE if
      	handled.
      	(gtk_calendar_key_press): return TRUE for GDK_space triggers
      	select_day
      
      	* gtk/gtkclist.c (gtk_clist_button_press): return TRUE if handled
      	(gtk_clist_button_release): return TRUE if handled
      
      	* gtk/gtkcolorsel.c (mouse_release):
      	(palette_activate):
      	(palette_press):
      	(palette_new):
      	(mouse_press):
      	(get_screen_color):
      	fixed return type (void to gboolean), return TRUE,
      	added GTK_SIGNAL_FUNC cast
      
      	* gtk/gtkcombo.c (gtk_combo_popup_button_press): fixed return type
      	(void to gboolean), and return TRUE
      	(gtk_combo_button_release): changed return value to TRUE after
      	gtk_grab_add on combo->popwin
      
      	* gtk/gtkctree.c (gtk_ctree_button_press): return TRUE if triggers a
      	collapse or expand
      
      	* gtk/gtkcurve.c (gtk_curve_graph_events): return TRUE for
      	button/motion
      
      	* gtk/gtkdnd.c (gtk_drag_source_event_cb): return TRUE for button
      	press/release and motion that trigger act
      
      	* gtk/gtkentry.c (gtk_entry_button_release): return TRUE
      
      	* gtk/gtkfontsel.c (gtk_font_selection_size_key_press): return TRUE
      	for GDK_Return
      
      	* gtk/gtklist.c (gtk_list_button_press): return TRUE mostly
      	(gtk_list_button_release): return TRUE if selection
      
      	* gtk/gtklistitem.c (gtk_list_item_button_press): return TRUE on
      	press
      
      	* gtk/gtkmenushell.c (gtk_menu_shell_button_press):
      	(gtk_menu_shell_button_release): chain parent_menu_shell retval
      
      	* gtk/gtknotebook.c (gtk_notebook_button_press): return FALSE if
      	nothing triggered
      	(gtk_notebook_button_release): return TRUE if we do anything
      
      	* gtk/gtkspinbutton.c (gtk_spin_button_button_press):
      	(gtk_spin_button_button_release): return TRUE or chained retval
      
      	* gtk/gtktext.c (gtk_text_button_press):
      	(gtk_text_button_release): return TRUE
      	(gtk_text_key_press): remove redundant retval code
      
      	* gtk/gtktreeitem.c (gtk_tree_item_button_press): return TRUE if button
      	and sensitive
      	(gtk_tree_item_subtree_button_click): changed type to gint, and return
      	TRUE if sensitive
      
      	* gtk/gtktooltips.c (gtk_tooltips_event_handler): deactivate implies
      	return TRUE
      207e3bb9
  16. 13 Dec, 2000 1 commit
    • Tim Janik's avatar
      doh, this was broken beyond believe. · 2c9eb3a5
      Tim Janik authored
      Tue Dec 12 23:46:44 2000  Tim Janik  <timj@gtk.org>
      
      	* gtk/stock-icons/Makefile.am: doh, this was broken beyond believe.
      
      	* gtk/gtkbox.c: change property types from (u)long to (u)int for
      	::position and ::padding.
      
      	* gtk/gtkcontainer.c: make ::border_width an INT property.
      
      	* gtk/gtkpacker.c: make ::position an INT property.
      
      	* gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed):
      	guard against NULL h/v scrollbars, since this is used at construction
      	time.
      
      	* gtk/gtkclist.[hc]: nuked gtk_clist_construct(), implemented
      	internal gtk_clist_constructor().
      
      	* gtk/gtkctree.[hc]: nuked gtk_ctree_construct(), implemented
      	gtk_ctree_constructor().
      
      	* gtk/gtkprogressbar.c (gtk_progress_bar_class_init): property
      	::pulse_step should use ARG_PULSE_STEP, not ARG_FRACTION.
      
      	* docs/reference/Makefile.am: fun stuff, disabled docs generation
      	again, gtk-scan.c needs to introspec paramspecs, not GtkAgs.
      
      	* gtk/gtkwidget.[hc]:
      	removed gtk_widget_setv(), gtk_widget_getv(), gtk_widget_newv()
      	and gtk_widget_get().
      	(gtk_widget_new): use g_object_new_valist().
      	(gtk_widget_set): use g_object_set_valist().
      
      	* gtk/gtkobject.[hc]:
      	removed gtk_object_arg_get_info(), gtk_object_getv(),
      	gtk_object_query_args(), gtk_object_newv(),
      	gtk_object_class_add_signals(),
      	gtk_object_class_user_signal_new(),
      	gtk_object_class_user_signal_newv(),
      	gtk_object_arg_set(), gtk_object_arg_get(),
      	gtk_object_args_collect(),
      	gtk_object_default_construct(),
      	gtk_object_constructed(),
      	GTK_CONSTRUCTED and GTK_OBJECT_CONSTRUCTED().
      	removed nsignals, signals and n_args members from GtkObjectClass.
      	(gtk_object_new): use g_object_new_valist().
      	(gtk_object_set): use g_object_set_valist().
      	(gtk_object_get): use g_object_get_valist().
      
      	* gtk/gtkcompat.h: define gtk_object_default_construct().
      
      	* gtk/gtktypeutils.c (gtk_type_new): create constructed objects via
      	g_object_new().
      
      	* gtk/*.c: removed gtk_object_class_add_signals() from class_init()
      	fucntions, cleaned up method assignments (make sure your structures
      	are setup properly before calling out). removed all GTK_CONSTRUCTED
      	hacks ;)
      2c9eb3a5
  17. 08 Nov, 2000 1 commit
    • Alexander Larsson's avatar
      Add note about GtkMenuPositionFunc API changes. · 814957b4
      Alexander Larsson authored
      2000-11-08  Alexander Larsson  <alexl@redhat.com>
      
      	* docs/Changes-2.0.txt: Add note about GtkMenuPositionFunc
      	API changes.
      
      	* gtk/gtkmenu.c: Add support for scrolling menus.
      	Remove gtk_menu_append/prepend/insert, these have been moved to
      	gtkcompat.h as #defines.
      
      	* gtk/gtkcompat.h.in:
      	Add compatibility #defines for gtk_menu_append/prepend/insert
      
      	* gtk/gtkmenu.h: Add data needed for scrolling menus.
      	GtkMenuPositionFunc gets an extra argument push_in.
      	gtk_menu_append/prepend/insert removed.
      
      	* gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Change menu
      	positioning behaviour to fit to scrolling menus.
      
      	* gtk/gtkmenuitem.c (gtk_menu_item_forall): Don't recurse
      	into menuitem->submeny. That is wrong, and broke torn
      	off submenus of torn off menus, since they were unrealized
      	when the first menu was unrealized.
      
      	* gtk/gtkmenushell.[ch]: Virtualize gtk_menu_shell_insert() and
      	gtk_menu_shell_select_item() since these need to be overridden in
      	GtkMenu.
      
      	* gtk/gtkoptionmenu.c (gtk_opttion_menu_position): Change menu
      	positioning behaviour to fit to scrolling menus.
      	(gtk_option_menu_key_press, gtk_option_menu_button_press): Select
      	the current item so that it is prelighted when the menu pops up.
      	This is a workaround to the fact that the menu doesn't get the
      	initial enter event (due to grabs).
      
      	* gtk/gtkfilesel.c, gtk/gtkinputdialog.c, gtk/testgtk.c:
      	s/gtk_menu_append/gtk_menu_shell_append/
      
      	* gtk/gtknotebook.c:
      	s/gtk_menu_insert/gtk_menu_shell_insert/
      
      	* gtk/testgtk.c (create_menu, create_menus):
      	Create the first menu with 50 items so that menu scrolling
      	can be tested.
      
      
      	Patch from Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtkmenuitem.[ch] (gtk_menu_item_toggle_size_request): new
      	system to handle size requests.  First, we ask what the size of
      	the toggle is.  Then, when allocating the size, we allocate the
      	toggle_size first.  This way we can have multiple menu-item
      	classes w/o needing a seperate class for each.
      
      	* gtk/gtkmenu.c (gtk_menu_size_request): Actually use the new system.
      	* gtk/gtkmenu.c (gtk_menu_size_allocate): Use the new system.
      
      	* gtk/gtkcheckmenuitem.c
      	(gtk_check_menu_item_toggle_size_request): New function to handle
      	the toggle size-request.
      814957b4
  18. 25 Oct, 2000 1 commit
    • Tim Janik's avatar
      urg, removed implementation of gtk_marshal_VOID__INT_INT_INT_INT. if · d69496c0
      Tim Janik authored
      Wed Oct 25 20:47:41 2000  Tim Janik  <timj@gtk.org>
      
              * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init): urg, removed
              implementation of gtk_marshal_VOID__INT_INT_INT_INT. if people do that,
              couldn't they at least give it a non-standard name?
      
              * gtk/gtktextlayout.c: arg! yet another implementation of
              gtk_marshal_VOID__INT_INT_INT_INT(), is this a conspiracy?
      
              * gtk/gtktextbuffer.c: gotcha! captured a vagabonding
              gtk_marshal_VOID__INT_POINTER_INT() implementation, braught it back
              home. now i know this _is_ a conspiracy.
      
              * gtk/gtkwidget.c (gtk_widget_class_init): marshaller fixups for
              ::state-changed.
      
              * gtk/gtkaccelgroup.c (gtk_accel_group_create_remove):
              (gtk_accel_group_create_add): marshaller signature fixups.
      
              * gtk/gtklistitem.c (gtk_list_item_class_init): signal creation fixups,
              pass in GTK_TYPE_SCROLL_TYPE instead of GTK_TYPE_ENUM.
      
              * gtk/gtkobject.[hc]: removed GTK_CONNECTED flag, it's not valid
              anymore.
      
      Tue Oct 24 23:59:21 2000  Tim Janik  <timj@gtk.org>
      
              * docs/reference/Makefile.am: disabled SUBDIRS for the moment, since
              due to the signal system changes, it wouldn't build currently. to
              be fixed soon.
      
              * docs/Changes-2.0.txt: GtkSignal/GSignal updates.
      
              * gtk/gtkwidget.c: ::direction_changed takes an enum as argument,
              so it needs gtk_marshal_VOID__ENUM() instead of
              gtk_marshal_NONE__UINT().
      
              * gdk/gdk*.c: adapted type registration functions.
      
              * gtk/gtkbindings.c:
              * gtk/gtkaccelgroup.c: operate on GSignalQuery, GtkSignalQuery is
              gone.
      
              * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType.
      
              * gtk/gtkobject.c:
              (gtk_object_destroy):
              (gtk_object_shutdown): fixed recursion guards. basically we have to
              catch the case where any of GObject.shutdown() or gtk_object_destroy()
              is called during ::destroy, and avoid recursion there.
      
              * gtk/gtktypeutils.c:
              * gtk/maketypes.awk: awk-script hackup to provide gtk_type_init() with
              boxed_copy/boxed_free. this needs a more general solution based on a
              publically installed code-generator utility.
      
              * gtk/gtktypeutils.[hc]: compat aliased GTK_TYPE_BOXED to G_TYPE_BOXED,
              glib's gobject has support for that now.
              define GtkSignalMarshaller in terms of GSignalCMarshaller.
      
      
      Mon Oct 23 09:36:42 2000  Tim Janik  <timj@gtk.org>
      
              * gtk/gtksignal.[hc]:
              * gtk/gtkmarshal.[hc]:
              * gtk/Makefile.am: generate marshallers with glib-genmarshal and don't
              compile gtkmarshal.c on its own anymore, just include it in gtksignal.c.
              removed #include <gtkmarshal.h>s all over the place, gtksignal.h takes
              care of that.
      
              * *.c: marshaller name fixups.
      
              * gtk/gtkmarshal.list: added a comment briefing the format.
      
      Sun Oct 22 23:14:39 2000  Tim Janik  <timj@gtk.org>
      
              * gtk/gtksignal.[hc]: nuked old implementation. we mostly have
              compatibility macros here now. more specifically, most of
              the API is preserved (yes, _most_, nonwithstanding the
              following exceptions listed, the API is stil lHUGE ;)
              things that got removed completely:
              GtkSignalQuery, gtk_signal_query(), gtk_signal_n_emissions(),
              gtk_signal_n_emissions_by_name(), gtk_signal_handlers_destroy(),
              gtk_signal_set_funcs(), gtk_signal_handler_pending_by_id(),
              gtk_signal_add_emission_hook(), gtk_signal_add_emission_hook_full(),
              gtk_signal_remove_emission_hook().
              non-functional functions variants:
              gtk_signal_add_emission_hook(), gtk_signal_remove_emission_hook().
              the GtkCallbackMarshal argument to gtk_signal_connect_full() is
              not supported anymore.
              (gtk_signal_compat_matched): new internal function to aid
              implementation of the compatibility macros, it  provides
              functionality to block/unblock/disconnect handlers based
              on func/data.
      
              * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType,
      
              * *.c: adaptions to new type registration API signatures.
      
      
      Fri Oct 20 15:26:33 2000  Tim Janik  <timj@gtk.org>
      
              * gtk/gtktypeutils.[hc]: removed G_TYPE_GTK_POINTER cludge.
      d69496c0
  19. 26 Jul, 2000 1 commit
  20. 03 Jul, 2000 1 commit
    • Owen Taylor's avatar
      Ignore calls with <= width or height. · 01212ce1
      Owen Taylor authored
      Mon Jul  3 14:24:16 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkwidget.c (gtk_widget_draw): Ignore calls with
      	<= width or height.
      
      	* gtk/gtktable.c (gtk_table_attach): Fix missed merge
      	from 1.2 for parent/child states.
      
      	* gdk/gdkgc.c (gdk_gc_set_rgb_fg/bg_color): Fix a couple
      	of typos.
      
      	* gdk/gdkevents.[ch]: Remove press/xtilt/ytilt fields of
      	event structures, replace with a generic axes field. Replace
      	deviceid/source with GdkDevice *device.
      
      	* gdk/gdkevents.[ch] (gdk_event_get_axis): Add function
      	to extract particular axis use value from event. (Also
      	can be used for normal X/Y.)
      
      	* gdk/gdkinput.h gdk/x11/gdkinput*: Major revision;
      	allow for arbitrary number of axes, namespace everything
      	as gdk_device_*. Replace guint32 deviceid with GdkDevice *
      	everywhere.
      
      	* gdk/x11/{gdkmain-x11.c,gdkevent-x11.c,gdkinput*}:
      	Get rid of the gdk_input_vtable setup if favor of simply
      	defining the functions in gdkinput-none/gxi/xfree.c in
      	a similar fashion to the way that the port structure is
      	done.
      
      	* gtk/gtkdnd.c: Fix fields of synthesized button press event
      	for new event structures.
      
      	* gtk/gtkinputdialog.c gtk/testinput.c: Revise to match
      	new device interfaces.
      01212ce1
  21. 12 May, 2000 1 commit
    • Tim Janik's avatar
      documented necessary changes for 1.4 transition. · 9595c551
      Tim Janik authored
      Fri May 12 17:13:32 2000  Tim Janik  <timj@gtk.org>
      
      	* docs/Changes-1.4.txt: documented necessary changes for 1.4 transition.
      
      	* gtk/gtktext.c: made the adjustments no-construct args, simply
      	provide default adjustments.
      	(gtk_text_destroy): release adjustments.
      
      	* gtk/gtkprogressbar.c (gtk_progress_bar_class_init): made the
      	adjustment argument non-construct.
      
      	* gtk/gtkprogress.c (gtk_progress_destroy): release adjustment here,
      	instead of in finalize.
      	(gtk_progress_get_text_from_value):
      	(gtk_progress_get_current_text):
      	(gtk_progress_set_value):
      	(gtk_progress_get_percentage_from_value):
      	(gtk_progress_get_current_percentage):
      	(gtk_progress_set_percentage):
      	(gtk_progress_configure): ensure an adjustment is present.
      
      Thu May 11 01:24:08 2000  Tim Janik  <timj@gtk.org>
      
      	* gtk/gtkcolorsel.[hc]:
      	* gtk/gtkcolorseldialog.[hc]:
      	* gtk/gtkhsv.[hc]: major code cleanups, destroy handlers need to chain
      	their parent implementation, use bit fields for boolean values, don't
      	create unused widgets, usage of glib types, braces go on their own
      	lines, function argument alignment, #include directives etc. etc. etc..
      
      	* gtk/Makefile.am (gtk_public_h_sources): install gtkhsv.h.
      
      Wed May 10 23:29:52 2000  Tim Janik  <timj@gtk.org>
      
      	* gtk/gtktoolbar.c (gtk_toolbar_destroy): don't unref a NULL tooltips.
      
      	* gtk/gtkfilesel.c (gtk_file_selection_destroy): don't free a cmpl_state
      	of NULL.
      
      	* gtk/gtkcombo.c (gtk_combo_item_destroy): don#t keep references
      	to freed data.
      	(gtk_combo_destroy): don't keep a pointer to a destroyed window.
      
      	* gtk/gtkmenu.c (gtk_menu_init): reset the menu's toplevel pointer
      	to NULL when the toplevel is getting destroyed.
      	(gtk_menu_set_tearoff_state): same here for the tearoff_window.
      	(gtk_menu_destroy):
      	(gtk_menu_init): store the information of whether we have to
      	readd the initial child ref_count during destruction in a new
      	GtkMenu field needs_destruction_ref_count.
      
      	* gtk/gtkviewport.c: SHAME! ok this one is tricky, so i note it
      	here, those reading: learn from my mistake! ;)
      	in order for set_?adjustment to support a default adjustemnt if
      	invoked with an adjustment pointer of NULL, the code read (pseudo):
      	if (v->adjustment) unref (v->adjustment);
      	if (!adjustment) adjustment = adjustment_new ();
      	if (v->adjustment != adjustment) v->adjustment = ref (adjustment);
      	now imagine the first unref to actually free the old adjustment and
      	adjustment_new() creating a new adjustment from the very same memory
      	portion. here, the latter comparision will unintendedly fail, and
      	all hell breaks loose.
      	(gtk_viewport_set_hadjustment):
      	(gtk_viewport_set_vadjustment): reset viewport->?adjustment to NULL
      	after unreferencing it.
      
      	* gtk/gtkcontainer.[hc]: removed toplevel registration
      	functions: gtk_container_register_toplevel(),
      	gtk_container_unregister_toplevel() and
      	gtk_container_get_toplevels() which had wrong semantics
      	anyways: it didn't reference and copy the list.
      
      	* gtk/gtkwindow.c: we take over the container toplevel registration
      	bussiness now. windows are registered across multiple destructions,
      	untill they are finalized. the initial implicit reference count
      	users are holding on windows is removed with the first destruction
      	though.
      	(gtk_window_init): ref & sink and set has_user_ref_count, got
      	rid of gtk_container_register_toplevel() call. add window to
      	toplevel_list.
      	(gtk_window_destroy): unref the window if has_user_ref_count
      	is still set, got rid of call to
      	gtk_container_unregister_toplevel().
      	(gtk_window_finalize): remove window from toplevel list.
      	(gtk_window_list_toplevels): new function to return a newly
      	created list with referenced toplevels.
      	(gtk_window_read_rcfiles): use gtk_window_list_toplevels().
      
      	* gtk/gtkhscale.c (gtk_hscale_class_init): made the GtkRange
      	adjustment a non-construct arg.
      	* gtk/gtkvscale.c (gtk_vscale_class_init): likewise.
      	* gtk/gtkhscrollbar.c (gtk_vscrollbar_class_init): likewise.
      	* gtk/gtkvscrollbar.c (gtk_vscrollbar_class_init): likewise.
      
      	* gtk/gtkrange.c: added some realized checks.
      	(gtk_range_destroy): get rid of the h/v adjustments in the
      	destroy handler instead of finalize. remove timer.
      	(gtk_range_get_adjustment): demand create adjustment.
      
      	* gtk/gtkviewport.c: made h/v adjustment non-construct args.
      	we simply create them on demand now and get rid of them in
      	the destroy handler.
      	(gtk_viewport_destroy): get rid of the h/v adjustments in the
      	destroy handler instead of finalize.
      	(gtk_viewport_get_hadjustment):
      	(gtk_viewport_get_vadjustment):
      	(gtk_viewport_size_allocate): demand create h/v adjustment
      	if required.
      
      	* gtk/gtkwidget.c (gtk_widget_finalize): duplicate part of the
      	gtk_widget_real_destroy () functionality.
      	(gtk_widget_real_destroy): reinitialize with a new style, instead
      	of setting widget->style to NULL.
      
      Fri May  5 13:02:09 2000  Tim Janik  <timj@gtk.org>
      
      	* gtk/gtkcalendar.c:
      	* gtk/gtkbutton.c: ported _get_type() implementation over to
      	GType, either to preserve memchunks allocation facilities,
      	or because Gtk+ 1.0 GtkTypeInfo was still being used.
      
      	* gtk/gtkobject.[hc]: derive from GObject. ported various functions
      	over. prepare for ::destroy to be emitted multiple times.
      	removed reference tracer magic. chain into GObjectClass.shutdown()
      	to emit ::destroy signal.
      
      	* gtk/gtksignal.c: removed assumptions about GTK_TYPE_OBJECT being
      	fundamental.
      
      	* gtk/gtkmain.c: removed gtk_object_post_arg_parsing_init()
      	cludge.
      
      	* gtk/gtksocket.c:
      	* gtk/gtkplug.c:
      	* gtk/gtklayout.c:
      	* gtk/gtklabel.c:
      	* gtk/gtkargcollector.c:
      	* gtk/gtkarg.c: various fixups to work with GTK_TYPE_OBJECT
      	not being a fundamental anymore, and to work with the new
      	type system (nuked fundamental type varargs clutter).
      
      	* gtk/*.c: install finalize handlers in the GObjectClass
      	part of the class structure.
      	changed direct GTK_OBJECT()->klass accesses to
      	GTK_*_GET_CLASS().
      	changed direct object_class->type accesses to GTK_CLASS_TYPE().
      
      	* gtktypeutils.[hc]: use the reserved fundamental ids provided by
      	GType. made most of the GTK_*() type macros and Gtk* typedefs
      	simple wrappers around macros and types provided by GType.
      	most notably, a significant portion of the old API vanished:
      	GTK_TYPE_MAKE(),
      	GTK_TYPE_SEQNO(),
      	GTK_TYPE_FLAT_FIRST, GTK_TYPE_FLAT_LAST,
      	GTK_TYPE_STRUCTURED_FIRST, GTK_TYPE_STRUCTURED_LAST,
      	GTK_TYPE_ARGS,
      	GTK_TYPE_CALLBACK,
      	GTK_TYPE_C_CALLBACK,
      	GTK_TYPE_FOREIGN,
      	GtkTypeQuery,
      	gtk_type_query(),
      	gtk_type_set_varargs_type(),
      	gtk_type_get_varargs_type(),
      	gtk_type_check_object_cast(),
      	gtk_type_check_class_cast(),
      	gtk_type_describe_tree(),
      	gtk_type_describe_heritage(),
      	gtk_type_free(),
      	gtk_type_children_types(),
      	gtk_type_set_chunk_alloc(),
      	gtk_type_register_enum(),
      	gtk_type_register_flags(),
      	gtk_type_parent_class().
      	replacements, where available are described in ../docs/Changes-1.4.txt.
      	implemented compatibility functions for the remaining API.
      
      	* configure.in: depend on glib 1.3.1, use gobject module.
      9595c551
  22. 24 Feb, 1999 1 commit
  23. 14 Dec, 1998 1 commit
    • Owen Taylor's avatar
      Added gettext-10.35 · 7facb75c
      Owen Taylor authored
      Mon Dec 14 12:24:13 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* HACKING: Added gettext-10.35
      
      	* autogen.sh: Run gettextize.
      
      Wed Dec  9 16:29:06 1998  Owen Taylor  <otaylor@redhat.com>
      
              Applied gtk-egger-981010-[12]
      	[ Daniel.Egger@t-online.de (Daniel Egger) ]
      
      	* gtk/gtkintl.h: New file - defines for localization.
      
      	* gtk/gtkfilesel.c gtk/gtkinputdialog.c: Mark strings
      	for internationalization.
      
      	* gtk/gtkmain.c: call bindtextdomain
      
      	* po/ - directory for translations. Initially includes
      	German translation.
      7facb75c
  24. 07 Dec, 1998 1 commit
  25. 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
  26. 28 Nov, 1998 2 commits
    • Tim Janik's avatar
      changed scrolled window inheritance, it inherits from GtkBin now. · 238ede33
      Tim Janik authored
      Sat Nov 28 03:13:42 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkscrolledwindow.h:
              * gtk/gtkscrolledwindow.c: changed scrolled window inheritance,
              it inherits from GtkBin now.
      
              * gtk/gtkbin.c (gtk_bin_unmap): removed superfluous check for
              visibility of child.
              (gtk_bin_draw): removed superfluous check for GTK_WIDGET_DRAWABLE().
              added check so a child gets only drawn if it's visible.
      
              * gtk/gtkwidget.h:
              * gtk/gtkwidget.c: removed gtk_widget_draw_children().
      
              * gtk/gtkstyle.h:
              * gtk/gtkstyle.c: rmoved gtk_reset_widget_shapes.
      
              * gtk/gtkwidget.h:
              * gtk/gtkwidget.c: removed crufty relict: gtk_widget_is_child().
              added internal function gtk_widget_reset_shapes() from gtkstyle.c.
      
              * gtk/gtkrc.h:
              * gtk/gtkrc.c: (gtk_rc_find_pixmap_in_path): removed bogus gscanner
              argument, changed callers.
      
              * gtk/gtkmenufactory.c: GtkMenuFactory is deprecated for a long time,
              it will issue a warning now.
      
              * gtk/gtkcompat.h: new file to #define aliases for historic
              function names.
      
              * changed 8 function names for consistency and provided aliases to keep
              source compatibility in gtkcompat.h:
              (gtk_accel_label_get_accel_width): renamed from gtk_accel_label_accelerator_width
              (gtk_container_set_border_width): renamed from gtk_container_border_width
              (gtk_notebook_get_current_page): renamed from gtk_notebook_current_page
              (gtk_packer_configure): renamed from gtk_packer_set_child_packing
              (gtk_paned_set_gutter_size): renamed from gtk_paned_gutter_size
              (gtk_paned_set_handle_size): renamed from gtk_paned_handle_size
              (gtk_scale_get_value_width): renamed from gtk_scale_value_width
              (gtk_window_set_position): renamed from gtk_window_position
      
              * renamed a few recently added funtions for consistency:
              (gtk_notebook_get_tab_label): renamed from gtk_notebook_query_tab_label.
              (gtk_notebook_get_menu_label): renamed from gtk_notebook_query_menu_label.
              (gtk_progress_configure): renamed from gtk_progress_reconfigure.
      238ede33
    • Tim Janik's avatar
      deprecated gtk_widget_freeze_accelerators and · 58af2b56
      Tim Janik authored
      Sat Nov 28 00:06:49 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkwidget.h:
              * gtk/gtkwidget.c: deprecated gtk_widget_freeze_accelerators and
              gtk_widget_thaw_accelerators, we provide gtk_widget_lock_accelerators
              and gtk_widget_unlock_accelerators.
      
              * gtk/gtklayout.h:
              * gtk/gtklayout.c: implemented incremental freezing facility.
      
              * gtk/gtktext.h:
              * gtk/gtktext.c: implemented incremental freezing facility.
      
              * gtk/gtkenums.h:
              * gtk/gtkaccelgroup.h: moved enum GtkAccelFlags into this place.
      
              * gtk/gtkentry.h:
              * gtk/gtkentry.c:
              deprecated gtk_entry_adjust_scroll().
      
              * random GtkType, macro and indentation fixes.
      
      Fri Nov 27 22:50:15 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkclist.h:
              * gtk/gtkclist.c: implemented incremental freezing facility, added
              a new class member (*refresh)() which takes over the thaw
              functionality. the clist FROZEN flag got removed on the way.
              * gtk/gtkctree.c: adaptions to feature the clist refresh functionality
              and incremental freezing.
      
              * gtk/gtkcalendar.c: implemented incremental freezing facility.
      58af2b56
  27. 21 Jul, 1998 1 commit
    • Elliot Lee's avatar
      Use common marshalling routines instead of having widget-private ones. It · 7c30f2a1
      Elliot Lee authored
      
      
      Use common marshalling routines instead of having widget-private ones.
      It compiles & links.
      
      testgtk segfaults. I'm convinced that is Somebody Else's Problem
      (marshalling routine gets func_data=0x0 and blithely passes it on) but the
      fact that it happens now & not before makes me wrong :-)
      7c30f2a1
  28. 04 Jul, 1998 1 commit
  29. 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
  30. 13 May, 1998 1 commit
    • Owen Taylor's avatar
      Fixed up a stat() that Sopwith missed when changing stat => lstat. · 43dfe74c
      Owen Taylor authored
      Tue May 12 19:37:55 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtkrc.c (gtk_rc_parse_file): Fixed up a stat()
      	that Sopwith missed when changing stat => lstat.
      
      Tue May 12 19:19:29 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtkinputdialog.c gtk/gtkgamma.c gtk/gtkrc.c
      	  gtk/gtkcolorsel.c gtk/gtkclist.c gtk/testgtk.c: Use
      	GPOINTER_TO_INT/GINT_TO_POINTER macros where appropriate.
      
      	* gdk/gdk.c: Print sizeof() results
      	as g_print("%ld", (glong)sizeof(foo)), to deal with
      	sizeof() being long on Alpha's.
      
      	* gtk/testgtk.c: include <string.h> for strlen
      
      Tue May 12 19:22:58 1998  Owen Taylor  <otaylor@gtk.org>
      
       	* glib/glib.h: Added macros G[U]INT_TO_POINTER() and
      	GPOINTER_TO_[U]INT for storing small integers integers
      	inside pointers.
      
      	* glib/testglib.c: Print sizeof() results
      	as g_print("%ld", (glong)sizeof(foo)), to deal with
      	size_t being long on Alpha's.
      43dfe74c
  31. 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
  32. 13 Apr, 1998 1 commit
  33. 09 Mar, 1998 1 commit
    • Tim Janik's avatar
      made the <widget>_signals[] arrays of type guint rather than gint. made · d1871831
      Tim Janik authored
      Mon Mar  9 15:48:10 1998  Tim Janik  <timj@gimp.org>
      
              * Signal signedness and naming corrections, plus GtkType fixes:
      
              * gtk/gtkadjustment.c:
              * gtk/gtkbutton.c:
              * gtk/gtkcheckmenuitem.c:
              * gtk/gtkclist.c:
              * gtk/gtkcolorsel.c:
              * gtk/gtkcontainer.c:
              * gtk/gtkcurve.c:
              * gtk/gtkdata.c:
              * gtk/gtkeditable.c:
              * gtk/gtkentry.c:
              * gtk/gtkhandlebox.c:
              * gtk/gtkinputdialog.c:
              * gtk/gtkitem.c:
              * gtk/gtklist.c:
              * gtk/gtkmenuitem.c:
              * gtk/gtkmenushell.c:
              * gtk/gtknotebook.c:
              * gtk/gtkstatusbar.c:
              * gtk/gtktoolbar.c:
              * gtk/gtktree.c:
              * gtk/gtktreeitem.c:
              * gtk/gtkwidget.c:
              * gtk/gtktogglebutton.c:
              * gtk/gtkwindow.c:
              made the <widget>_signals[] arrays of type guint rather than gint.
              * gtk/gtkwidget.c (gtk_widget_get_ancestor): made widget_type a GtkType.
      
              * gtk/gtkcombo.h:
              handler ids need to be of type guint (entry_change_id, list_change_id).
      
              * gtk/gtkaccelerator.c:
              changed signal_num to signal_id and typed it guint.
      
              * gtk/gtkmain.c: made gtk_ndebug_keys a guint.
      
              * gtk/gtkmenu.h:
              * gtk/gtkmenu.c:
              (gtk_menu_popup): made button a guint.
              (gtk_menu_set_active): made index a guint.
      
              * gtk/gtkmenuitem.h:
              * gtk/gtkmenuitem.c:
              made accelerator_signal a guint.
      
              * gtk/gtkoptionmenu.h:
              * gtk/gtkoptionmenu.c:
              (gtk_option_menu_set_history): made index a guint.
      
              * gtk/gtksignal.h:
              * gtk/gtksignal.c:
              * gtk/gtkobject.h:
              * gtk/gtkobject.c: changed a bunch of prototypes to take guints rather
              than gints. also made some conversions from guint to GtkType, left over
              from when the fundamental-types system was introduced.
      
              * gtk/gtkobject.h:
              * gtk/gtkobject.c: made object_data_id_index and obj_count guints.
              made *signals and nsignals guints in GtkObjectClass.
      d1871831
  34. 13 Feb, 1998 1 commit
  35. 30 Jan, 1998 1 commit
  36. 16 Jan, 1998 1 commit
  37. 18 Dec, 1997 1 commit
  38. 24 Nov, 1997 1 commit