1. 17 Aug, 1998 1 commit
  2. 16 Aug, 1998 1 commit
    • Tim Janik's avatar
      fatal warning option is split up now, "--g-fatal-warnings" causes fatal · 31de6ff4
      Tim Janik authored
      Sun Aug 16 20:51:59 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkmain.c (gtk_init): fatal warning option is split up now,
              "--g-fatal-warnings" causes fatal warnings in GLib,
              "--gdk-fatal-warnings" causes fatal warnings in Gdk,
              "--gtk-fatal-warnings" causes fatal warnings in Gtk.
      
              * gtk/Makefile.am: define G_LOG_DOMAIN for gtk.
              * gdk/Makefile.am: define G_LOG_DOMAIN for gdk.
      
              * gtk/testgtk.c:
              * gdk/gxid.c:
              we need ugly #undef G_LOG_DOMAIN at the start of these files currently,
              since automake doesn't support per target _CFLAGS yet.
      
              * configure.in: require GLib 1.1.3.
      31de6ff4
  3. 12 Aug, 1998 1 commit
    • Owen Taylor's avatar
      Added gdk_text/string_extents() - too calculate all the metrics at once of · 4af7480f
      Owen Taylor authored
      Tue Jul 21 12:42:01 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdk.h gdk/gdkfont.c: Added gdk_text/string_extents() -
      	  too calculate all the metrics at once of a string, including
      	  things which weren't calculated before.
      
      	* gtk/Makefile.am gtk/gtk.h gtk/gtktearoffmenu.[ch]: New
      	  MenuItem type, that when put as the first thing in a
      	  menu, makes the menu tearoff. Currently drawn as a
      	  dashed line.
      
      	* gtk/gtkmenuitem.h gtk/gtkcheckmenuitem.c: Added a flag
      	  "hide_on_activate" to the MenuItem class structure to allow
      	  check and radio buttons to be changed with <Space> without
      	  hiding the menu.
      
      	* gtk/gtkaccellabel.[ch]: Added new capabilities to set
      	  a underline_group and underline_mods for the label -
      	  accelerators added in the underline group matching
      	  underline_mods will be displayed as an underline character.
      
      	  This doesn't work - Save As needs to be underlined
      	  as Save _As.
      
      	* gtk/gtkitemfactory.c:
      	  - Create a AccelGroup for each MenuShell we create.
      	  - If an '&' appears before a  character 'c' in the path,
      	    then make 'c' an accelerator in the menu's accel group,
      	    and if the menuitem is menubar <alt>C an accelerator
      	    in the itemfactory's accel group.
      
      	* gtk/gtklabel.[ch]: Add support for a pattern arg -
                which is a string. If an '_' appears in this string,
      	  the corresponding position in the label is underlined.
      
                Add gtk_label_parse_uline() convenience function which
      	  takes a string with embedded underlines, sets the
      	  pattern and label, and returns the accelerator keyval.
      
      	* gtk/gtkmenu.[ch]: Make menus no longer a toplevel widget.
      	  Instead, they create a GtkWindow and add themselves
      	  to that. (When torn off, another new feature, they
      	  create another GtkWindow to hold the torn off menu)
      
      	  New function gtk_menu_set_tearoff_state()
      
      	* gtk/gtkenums.h gtk/gtkmenushell.[ch] gtk/gtkenums.h:
      	  Added action signals  for keyboard navigation of menus.
      
      	* gtk/gtkmenushell.c: Key press handler which activates
                bindings for navigation, and accelerators, for handling
      	  underline accelerators. Exported functions to select
      	  and activate menu items in a menushell.
      
      	* gtk/testgtk.c: Added a new "Item Factory" test which
      	  tests GtkItemFactory and the new keyboard navigation
      	  of menus.
      4af7480f
  4. 11 Aug, 1998 1 commit
    • Owen Taylor's avatar
      Removed has_cursor, set the cursor beginning of Text when creating the · ca7082a0
      Owen Taylor authored
      Tue Aug 11 15:04:52 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtktext.[ch]: Removed has_cursor, set the cursor
      	  beginning of Text when creating the Text widget.
      
      	* gtk/testgtk.c: Grab the focus on the text widget so
      	  as to test out the above.
      
      Tue Aug 11 14:55:00 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkeditable.c: Reverted part of timj's change of Jul 16.
      	  ::changed is a notification signal and should have no default
      	  handler. A complete redraw of the Text widget does _not_ need to
      	  be done on every text insertion.
      
      Tue Aug 11 13:07:29 1998  Owen Taylor  <otaylor@redhat.com>
      	(gtk-abilleira-072198-patch)
      
      	* gtk/gtkwindow.[ch]:
      	  Add gtk_window_set_modal() which sets a flag; when
      	  set the window does a gtk_grab_add() when the window
      	  is shown, and a gtk_grab_remove() when the window
      	  is hidden.
      
      	* gtk/gtkfilesel.[ch]: Test if it is running in modal form and in
      	  that case will run "Create Dir","Delete File" and "Rename File"
      	  dialogs as modal too.
      
      	* gtk/testgtk.c: Added a button with an example of creating modal
      	  dialog boxes. Including file selection and color selection standard
      	  dialogs.
      
      Tue Aug 11 00:44:47 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkhscrollbar.c gtk/gtkvscrollbar.c gtk/gtktoolbar.c:
      	  Removed CAN_FOCUS by default from scrollbars, button
      	  children of toolbar. (But not GDK_TOOLBAR_CHILD_WIDGET children)
      	  (Scrollbar definitely good change, toolbar bit more questionable)
      ca7082a0
  5. 05 Aug, 1998 1 commit
    • Stefan Jeske's avatar
      new enum GtkSortType. · c8df83a2
      Stefan Jeske authored
      Wed Aug  5 21:12:37 1998  Stefan Jeske  <stefan@gtk.org>
      
      	* gtk/gtkenums.h: new enum GtkSortType.
      
      	* gtk/gtkclist.h:
      	* gtk/gtkclist.c:
      	Added sorting capabilities to GtkCList. New APIs :
      	gtk_clist_set_compare_func, gtk_clist_set_sort_column,
      	gtk_clist_set_sort_type, gtk_clist_sort, gtk_clist_set_auto_sort.
      	New internal functions : default_compare, merge, mergesort.
      
      	(gtk_clist_append): This is just a wrapper for gtk_clist_insert now.
      
      	(gtk_clist_insert): Modified to handle gtk_clist_append and the
      	auto sort flag. Changed the return value from void to gint to
      	return the row number where the element was actually inserted.
      
      	(gtk_clist_swap_rows): Return immediately if auto sort flag is set.
      
      	* gtk/gtkctree.h:
      	* gtk/gtkctree.c:
      	Removed the auto_sort flag, replaced ctree->node_compare with
      	clist->compare all over the place, modified default_compare to
      	match clist's needs. Removed APIs : gtk_ctree_set_auto_sort,
      	gtk_ctree_set_compare_func. Removed GtkCTreeCompareFunc typedef.
      
      	* gtk/testgtk.c: Modified clist/ctree samples to demonstrate
      	sorting. The lists can be sorted by a column by clicking the
      	corresponding title button.
      c8df83a2
  6. 31 Jul, 1998 1 commit
    • Lars Hamann's avatar
      Few fixes for column resize. Store resize column in clist->drag_pos. · 8ad52d10
      Lars Hamann authored
      Fri Jul 31 20:45:07 1998  Lars Hamann  <lars@gtk.org>
      
              * gtk/gtkclist.c (gtk_clist_button_press) (gtk_clist_motion)
              (gtk_clist_button_release) (new_column_width): Few fixes for
              column resize. Store resize column in clist->drag_pos.
      
      Thu Jul 31 15:18:36 1998  Lars Hamann  <lars@gtk.org>
      
              * gtk/gtkctree.h
              * gtk/gtkctree.c
              * gtk/testgtk.c : New typedef GtkCTreeNode, changed all GList *node
              to GtkCTreeNode *node.
      
              * gtk/gtklist.h : added extended selection mode and auto scrolling.
              (struct _GtkList): removed unneeded variables timer, button,
              selection_start_pos, selection_end_pos, scroll_direction, have_grab.
              Added new variables undo_selection, undo_unselection, last_focus_child,
              undo_focus_child, htimer, vtimer, anchor, drag_pos, anchor_state,
              drag_selection, add_mode.
      
              New functions :
              (gtk_list_extend_selection), (gtk_list_start_selection),
              (gtk_list_end_selection), (gtk_list_select_all),
              (gtk_list_unselect_all), (gtk_list_scroll_horizontal),
              (gtk_list_scroll_vertical), (gtk_list_toggle_add_mode),
              (gtk_list_toggle_focus_row), (gtk_list_toggle_row),
              (gtk_list_undo_selection), (gtk_list_end_drag_selection)
      
              * gtk/gtklist.c :
              (gtk_list_enter_notify): removed, because auto scrolling now works
              with gtk_list_motion_notify
      
              New functions, needed for auto scrolling :
              (gtk_list_motion_notify) (gtk_list_move_focus_child)
      
              New functions for extended selection support :
              (gtk_list_set_anchor), (gtk_list_fake_unselect_all),
              (gtk_list_fake_toggle_row), (gtk_list_update_extended_selection),
              (gtk_list_focus_lost)
      
              (gtk_list_set_focus_child): modified gtk_container_set_focus_child
              function to support auto scrolling, and avoid out-of-sync errors in
              case auf GTK_SELECTION_BROWSE
              (gtk_list_focus): modified gtk_container_focus function to avoid out
              off sync errors in case auf GTK_SELECTION_EXTENDED
      
              * gtk/gtklistitem.h
              * gtk/gtklistitem.c :
              New signal functions for key binding support :
              (toggle_focus_row), (select_all), (list_item), (unselect_all)
              (list_item), (undo_selection), (start_selection), (end_selection)
              (extend_selection), (scroll_horizontal), (scroll_vertical),
              (toggle_add_mode)
              (gtk_list_item_realize): added  GDK_KEY_PRESS_MASK |
              GDK_KEY_RELEASE_MASK
              (gtk_list_item_draw_focus): modify gc if parent has add_mode set.
      
              * gtk/gtkcombo.c :
              (gtk_combo_popup_button_press):  grab pointer for combo->list
              (gtk_combo_button_release): ungrab only if combo->popwin HAS_GRAB
              (gtk_combo_list_key_press): take care of which child HAS_GRAB
              (gtk_comb_init): don't connect combo->button with button_release_event
      8ad52d10
  7. 26 Jul, 1998 1 commit
  8. 22 Jul, 1998 1 commit
    • Tim Janik's avatar
      introduce testbindings on C-1 for buttons, to check out binding · 8c56db61
      Tim Janik authored
      Thu Jul 23 00:11:39 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/testgtkrc: introduce testbindings on C-1 for buttons,
              to check out binding priorities. someone should really write
              gtkrc-mode for emacs.
      
              * gtk/gtkwidget.c (gtk_widget_class_init): remove ugly bindings test.
              * gtk/testgtk.c (main): and move it here ;). this test says something
              on release of C-9. (this works only if the mouse pointer is on a
              spinbutton and there is no focus widget).
      
              * gtk/gtkrc.h:
              * gtk/gtkrc.c:
              export gtk_rc_parse_color, gtk_rc_parse_state and a new function
              gtk_rc_parse_priority to parse path priority types.
              export rc tokens.
              feature binding parsing.
      
      Wed Jul 22 23:41:17 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkbindings.h:
              * gtk/gtkbindings.c: new function gtk_binding_parse_binding() to
              feature binding parsing in rc files.
              * gtk/gtkbindings.c (gtk_binding_set_new): bug fix.
              * gtk/gtkbindings.c (gtk_binding_pattern_compare): bug fix, we used to
              order the bindings with lowest priority first.
      8c56db61
  9. 21 Jul, 1998 1 commit
    • Stefan Jeske's avatar
      Fixed wrong size of activity indicator. It is settable now as a fraction · dbfe3d39
      Stefan Jeske authored
      Tue Jul 21 06:32:43 1998  Stefan Jeske  <stefan@gtk.org>
      
      	* gtk/gtkprogressbar.{c,h} gtk/testgtk.c: Fixed wrong size of
       	activity indicator. It is settable now as a fraction of the
      	total width/height using gtk_progress_bar_set_activity_blocks.
      	Renamed gtk_progress_bar_set_number_of_blocks to
      	gtk_progress_bar_set_discrete_blocks.
      dbfe3d39
  10. 19 Jul, 1998 3 commits
    • Lars Hamann's avatar
      fix for vertical scrolling in case of GTK_CLIST_ADD_MOD changed pixmap · bfa2ec27
      Lars Hamann authored
      * gtk/gtkclist.c (scroll_vertical): fix for vertical scrolling in case
        of GTK_CLIST_ADD_MOD
      * gtk/testgtk.c (add1000_clist): changed pixmap
      bfa2ec27
    • Tim Janik's avatar
      export gtk_binary_age and gtk_interface_age. · c1c8caa2
      Tim Janik authored
      Sat Jul 18 22:59:04 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkmain.h:
              * gtk/gtkmain.c: export gtk_binary_age and gtk_interface_age.
      
              * gtk/gtktypeutils.h:
              * gtk/gtkitemfactory.h: remove "void" from prototypes again.
      
      Sat Jul 18 00:54:01 1998  Lars Hamann  <lars@gtk.org>
      
              * gtk/gtknotebook.c (gtk_notebook_set_child_arg): added support for
              CHILD_ARG_MENU_LABEL, CHILD_ARG_TAB_LABEL
              (gtk_notebook_get_child_arg): added support for CHILD_ARG_MENU_LABEL,
              CHILD_ARG_POSITION
              (gtk_notebook_reorder_child): new funktion to change position of a
              notebook page
              (gtk_notebook_draw_arrow): draw left/right arrow with
              GTK_SHADOW_ETCHED_IN if focus_tab is first/last tab.
      
              * gtk/gtkstyle.c (gtk_default_draw_arrow):
              added GTK_SHADOW_ETCHED_IN/OUT
      c1c8caa2
    • Stefan Jeske's avatar
      Introduced generic GtkProgress widget. Derived GtkProgressBar from · b43c4557
      Stefan Jeske authored
      Sun Jul 19 12:19:16 1998  Stefan Jeske  <stefan@gtk.org>
      
      	* gtk/gtkprogress.c gtk/gtkprogress.h gtk/gtkprogressbar.c
      	  gtk/gtkprogressbar.h gtk/Makefile.am gtk/gtk.h gtk/testgtk.c:
      	Introduced generic GtkProgress widget. Derived GtkProgressBar from
      	GtkProgress. Made GtkProgressBar much more flexible (see testgtk).
      b43c4557
  11. 15 Jul, 1998 1 commit
    • Lars Hamann's avatar
      Added focus handling, horizontal and vertical autoscrolling, extended · 8b9b7b9d
      Lars Hamann authored
      * gtk/gtkctree.h :
      * gtk/gtkctree.c :
        Added focus handling, horizontal and vertical autoscrolling,
        extended Selection Mode, key bindings
        Added gtk_ctree_toggle_expansion & gtk_ctree_toggle_expansion_recursive
        Changed gtk_ctree_scroll_to to gtk_ctree_moveto.
        Removed gtk_ctree_clear.
      
      * gtk/gtkclist.h :
      * gtk/gtkclist.c :
        Added focus handling, horizontal and vertical autoscrolling,
        extended Selection Mode, key bindings
      8b9b7b9d
  12. 14 Jul, 1998 1 commit
    • Tim Janik's avatar
      display the current cursor name. · da355fee
      Tim Janik authored
      Tue Jul 14 06:25:46 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/testgtk.c (create_cursors): display the current cursor name.
      
              * gtk/gtktypeutils.h:
              * gtk/gtktypeutils.c (gtk_type_init_builtin_types): cleanups to
              the fundamental type definition. the GtkArg union now only covers
              the required storage types for argument values. adapted the GTK_VALUE_*
              macro set. handle GTK_TYPE_UCHAR. definiton of type set bounds macros.
      
              * gtk/gtkargcollector.c (gtk_arg_collect_value): clean ups of the
              code, fixed int/float collection. fixed a bug in the sanity checking
              code for GtkObjects.
      
              * gtk/gtkbindings.c (gtk_binding_entry_add_signal): fixups of the
              argument collection code.
      
              * gtk/gtksignal.c (gtk_signal_collect_params): use the type set bounds
              macros when distinguishing the return type.
      da355fee
  13. 09 Jul, 1998 1 commit
    • Tim Janik's avatar
      deleted most of the argument handling code, since that is now implemented · 347efc33
      Tim Janik authored
      Fri Jul 10 00:02:04 1998  Tim Janik  <timj@gtk.org>
      
      	* gtk/gtkcontainer.h:
      	* gtk/gtkcontainer.c: deleted most of the argument handling code, since
      	that is now implemented in gtkarg.c. similar to gtk_object_args_collect,
      	we now export a new function gtk_container_child_args_collect().
      	for consistency with the object arguments, a few functions got renamed:
      	gtk_container_child_arg_get -> gtk_container_child_get,
      	gtk_container_child_arg_set -> gtk_container_child_set,
      	gtk_container_child_arg_getv -> gtk_container_child_getv,
      	gtk_container_child_arg_setv -> gtk_container_child_setv,
      	gtk_container_add_with_argv -> gtk_container_addv.
      	note, gtk_container_add_with_args() remained, because its equivalent
      	would be gtk_container_add(,, ...) which would break all existing code.
      	(gtk_container_add_child_arg_type): similar to gtk_object_add_arg_type,
      	we expect the `arg_name' argument to be a const static string now.
      	(gtk_container_get_child_arg_type): function removed.
      
      Thu Jul  9 07:03:04 1998  Tim Janik  <timj@gtk.org>
      
      	* gtk/gtkargcollector.c: new file which holds gtk_arg_collect_value().
      	this is a static inline function that collects command line arguments
      	from a va_list. this file can just be included in all places that
      	need this functionality.
      
      	* gtk/gtkarg.h:
      	* gtk/gtkarg.c: new files which implement most of the argument
      	handling stuff from gtkobject.c. also collected a few more
      	gtk_arg_* utility functions from else places.
      
      	* gtk/gtkobject.h:
      	* gtk/gtkobject.c: moved most of the argument handling code into
       	gtkarg.c. we now export gtk_object_args_collect() as a non-public
      	method with a blind va_list pointer.
      	(gtk_object_add_arg_type): the `arg_name' argument is required to be a
      	const static string now.
      	(gtk_object_get_arg_type): function got removed.
      
      	* gtk/gtkwidget.c:
      	(gtk_widget_set):
      	(gtk_widget_new): adaptions for gtk_object_args_collect().
      
      	* gtk/gtktypeutils.c (gtk_type_init_builtin_types): changed the internal
       	fundamental type name so as to have a valid prefix, e.g. "bool"->
      	"gboolean", "string"->"GtkString" and somesuch, left "void" as is,
      	though that should probably be something like GtkNone since the
      	type itself is called GTK_TYPE_NONE.
      	even the internal type names need to avoid name clashes and must live
      	in their own namespace, several code portions rely on that.
      	we should relly have typedefs such as typedef gchar* GtkString; so the
      	fundamental type names can be used for code dumpers just like with all
      	the Gtk/Gdk types.
      347efc33
  14. 28 Jun, 1998 1 commit
  15. 24 Jun, 1998 2 commits
    • Tim Janik's avatar
      new function gtk_container_child_arg_set, similar to · 9860caa5
      Tim Janik authored
      Wed Jun 24 14:14:32 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkcontainer.c: new function gtk_container_child_arg_set, similar
              to gtk_container_child_arg_setv, but takes a variable argument list.
              new function gtk_container_get_child_arg_type, which is needed by
              gtk_object_collect_args.
      
              * gtk/gtkobject.c: changed prototype for gtk_object_collect_args, to
              take a function pointer to figure the argument type.
              adapted callers to pass gtk_object_get_arg_type.
              * gtk/gtkwidget.c: adapted gtk_object_collect_args callers to pass
              gtk_object_get_arg_type..
      
              * gtk/gtkpacker.h:
              * gtk/gtkpacker.c:
              (gtk_packer_reorder_child): new function to change the packing order
              of a child.
              (gtk_packer_size_request):
              (gtk_packer_size_allocate): take container->border_width into acount.
      
              * gtk/gtkpacker.c: implemented widget arguments:
              "GtkPacker::spacing", "GtkPacker::border_width", "GtkPacker::pad_x",
              "GtkPacker::pad_y", "GtkPacker::ipad_x", "GtkPacker::ipad_y".
              implemented child arguments:
              "GtkPacker::side", "GtkPacker::anchor", "GtkPacker::expand",
              "GtkPacker::fill_x", "GtkPacker::fill_y", "GtkPacker::use_default",
              "GtkPacker::border_width", "GtkPacker::pad_x", "GtkPacker::pad_y",
              "GtkPacker::ipad_x", "GtkPacker::ipad_y", "GtkPacker::position".
      
              * gtk/gtkmisc.c (gtk_misc_set_arg): for padding args, set the padding,
              not the alignment.
      
              * gtk/gtkeventbox.h:
              * gtk/gtkeventbox.c: GtkType and macro fixups.
      
              * gtk/testgtk.c (entry_toggle_sensitive): new function to toggle
              sensitivity of an entry.
      
              * gtk/gtkstyle.c (gtk_style_new): support normal grey as default color
              for insensitive base.
      
              * gtk/gtkentry.c (gtk_entry_realize): set the window backgrounds
              widget state dependent.
              (gtk_entry_style_set): likewise.
              (gtk_entry_state_changed): set background color on state changes.
              (gtk_entry_draw_text): for non selected text, use state dependent
              colors.
      
              * gtk/gtktogglebutton.c: support for widget arguments
              "GtkToggleButton::active" and "GtkToggleButton::draw_indicator".
      9860caa5
    • Tim Janik's avatar
      added a frame with radio buttons to select the resize_mode for the · dbce6083
      Tim Janik authored
      Wed Jun 24 07:47:29 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/testgtk.c (create_idle_test): added a frame with radio buttons
              to select the resize_mode for the idle-labels container.
      
              * gtk/gtkframe.h:
              * gtk/gtkframe.c: GtkType and macro corrections.
      
              * gtk/gtkradiobutton.c (gtk_radio_button_set_arg): new function to
              support radio grouping.
      
      Tue Jun 23 08:01:09 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkcontainer.c (gtk_container_set_resize_mode): queue a resize
              unconditionally if resize_mode has changed.
      
              * gtk/gtkscrolledwindow.c (gtk_scrolled_window_init): set
              GTK_RESIZE_QUEUE on the scrolled window.
              (gtk_scrolled_window_construct): set GTK_RESIZE_PARENT for the vieport.
      
      Tue Jun 23 04:20:30 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkcontainer.h:
              * gtk/gtkcontainer.c:
              (GTK_IS_RESIZE_CONTAINER): new macro to find out if
              a given gtkobject is a container with resize_mode==GTK_RESIZE_PARENT.
              (gtk_container_queue_resize): new function to queue a container for
              a *size* reallocation (doesn't affect its position, and thus its
              parent is left untouched usually).
              (gtk_container_get_resize_container): new function to retrive the next
              most resize container which is not itself queued for a resize.
              (gtk_container_idle_sizer): new function to carefully process the
              container_resize_queue since it can change during invokation of
              gtk_container_check_resize().
              (gtk_container_resize_children): total rework of this function to
              properly handle resize containers. makes a lot of assumptions whitch
              are stated in the comments.
      
              * gtk/gtkcontainer.c:
              (gtk_container_real_check_resize): only requeue ourselves if we are not
              a resize container.
              (gtk_container_clear_resize_widgets): care for automatic deletion of our
              resize_widgets list on size_allocate through a handler connection.
      
              * gtk/gtkwindow.c (gtk_window_shutdown): new functionm to reset the
              focus and default widget of a window, so to take the burden from
              gtk_widget_unparent.
      
              * gtk/gtkviewport.c: removed gtk_viewport_check_resize, which tried
              to be clever, but actually messed up the resize_children logic and
              caused unneccessary allocations on its whole branch. besides this,
              it messed up the display by not invoking a redraw after the allocation.
      
              * gtk/gtktable.c (gtk_table_set_child_arg): reverted recent change, so
              that it is the child again that is queued for a resize.
              (gtk_table_attach): likewise.
              (gtk_table_remove): likewise.
      dbce6083
  16. 22 Jun, 1998 1 commit
  17. 19 Jun, 1998 2 commits
    • Stefan Jeske's avatar
      - Bug fix for precision problem causing occasional double emission of · 1ae617e3
      Stefan Jeske authored
      	* gtk/gtkspinbutton.h gtk/gtkspinbutton.c gtk/testgtk.c:
              - Bug fix for precision problem causing occasional double emission
      	  of "value_changed" signal (hopefully works now).
              - API change (should be binary compatible) :
      	  new enum GtkSpinType; modified gtk_spin_button_spin to use it.
      	  Modified cursor example appropriately.
      	  To spin by something other than step_/page_increment, use
      	  gtk_spin_button_spin (spin, GTK_SPIN_USER_DEFINED, increment).
      	- Made GTK_SHADOW_NONE the default. ;)
      	- Fixed casting of GtkAdjustment* to GtkWidget* in
      	  gtk_spin_button_value_changed.
      1ae617e3
    • Owen Taylor's avatar
      Remove --g-fatal-warnings flag from argv. · 913831b2
      Owen Taylor authored
      Thu Jun 18 21:13:54 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtkmain.c (gtk_init): Remove --g-fatal-warnings flag
      	  from argv.
      
      Thu Jun 18 20:22:28 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/genmarshal.pl: Modified to be more idiomatic Perl,
      	  to be more readable perl, to spit out stuff that looks
      	  more like readable C, and to pipe output through indent
      	  so output looks a lot like readable C. No functional
      	  changes.
      
      Thu Jun 18 17:43:31 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtkpixmap.[ch] (gtk_pixmap_set): Clear the background if
      	  necessary when switching to a masked pixmap. (Based on a patch
      	  from Ullrich Hafner <hafner@informatik.uni-wuerzburg.de>)
      
      Thu Jun 18 16:18:10 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtkeditable.[ch]: Added action signals for keyboard
         	  bindings. (move_cursor, kill_word, etc, etc, etc).
      
                removed the time argument from
      	  gtk_editable_cut/copy/paste_clipboard (source but not
                binary incompatible...) Instead get time from
      	  gtk_get_current_event ().
      
      	* gtk/gtktext.c gtk/gtkentry.c: Support the new editable
      	  signals.
      
      Thu Jun 18 02:52:09 1998  Owen Taylor  <otaylor@gtk.org>
      
      	Patches from Damon Chaplin <DAChaplin@email.msn.com>:
      
              gtk/gtkfontsel.h: Fixed GtkFontSelectionClass - I forgot to change
      	     parent class to GtkNotebookClass when splitting the widget in
      	     two.  Also updated some comments.
      
              gtk/gtkfontsel.c: Fixed bug when toggling 'Allow scaled bitmaps'
                     button without a font selected.
      
                   Fixed bug in set_font_name - I hadn't updated the code to
                     search for the style in the font_style clist - it was
                     still assuming the style row was equal to its index,
                     but it isn't any more.
      
                   Changed 'Reset' button on filter page to 'Clear Filter'.
                   Deleted old code relating to the old 'Filter Fonts' toggle
                   Updated some comments.
                   Cleared 'Actual Fontname' if no font is set.
      
              gtk/testgtk.c: Fixed problem when 'OK' button is pressed - it was
      	     destroying the GtkFontSelection instead of the
                   GtkFontSelectionDialog.
      
      Thu Jun 18 02:15:31 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtkmain.c (gtk_init): Added --g-fatal-warnings
      	  flag to make all warnings fatal errors.
      
      	* gtk/testthreads.c: moved <pthreads.h> include inside
      	  #ifdef USE_PTHREADS
      
      Thu Jun 18 01:37:31 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtkenums.h gtk/gtkcontainer.[ch] gtk/gtkwidget.c
      	  gtk/gtkmenu.c gtk/gtkviewport.c gtk/gtkwindow.c:
      
      	- Added new function gtk_container_set_resize_mode() for
      	  fine-grained control of where resize-queueing is done.
      
      	- Removed GtkContainer::need_resize and GtkWindow::move_resize
      	- Added GtkContainer::check_resize to replace need_resize.
      
      	- Added function gtk_container_check_resize() to trigger
      	  queued resizes, and gtk_container_resize_children() to
      	  Figure which children need to be size-allocated. (logic
      	  moved from gtkwindow.c)
      
      	- Reorganized code in gtkwindow.c
      
      	- Set the resize-mode for viewports so that resizes within
      	  a viewport don't propagate out of it.
      913831b2
  18. 18 Jun, 1998 1 commit
    • Tim Janik's avatar
      yeppers, accelerator changes to fix the gimp. commit message dedicated to · f83d57e9
      Tim Janik authored
      
      yeppers, accelerator changes to fix the gimp.
      commit message dedicated to sopwith ;)
      
      Thu Jun 18 03:30:06 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkaccellabel.h:
              * gtk/gtkaccellabel.c: new function gtk_accel_label_accelerator_width to
              request the size of the accelerator portion of an accel label.
              (gtk_accel_label_size_request): don't request for the accelerators size.
              (gtk_accel_label_expose_event): only draw the accelerator if we got
              enough extra space.
      
              * gtk/gtkmenuitem.c (gtk_menu_item_size_request): request accelerator
              width from children.
      
              * gtk/gtkmenu.c (gtk_menu_key_press): when adding an accelerator to an
              object (after removal has been requested) check if there is still an
              accelerator remaining to avoid adding two accelerators on an object.
              this can happen for locked accelerators (or accelerator-frozen widgets).
              (gtk_menu_size_request): feature childrens accelerator width in size
              requests.
      
              * gtk/gtknotebook.c (gtk_notebook_menu_item_create): use
              gtk_widget_freeze_accelerators() for dynamically created menu items.
      
              * gtk/gtksignal.h:
              * gtk/gtksignal.c: new function gtk_signal_handler_pending_by_func()
              which will return a handler_id > 0 if the specified function is pending
              for `signal_id'.
      
              * gtk/gtkwidget.h:
              * gtk/gtkwidget.c: remove gtk_widget_stop_accelerator, which was just
              a signal handler function to stop accelerator addition.
              added gtk_widget_freeze_accelerators and gtk_widget_thaw_accelerators
              which will prevent (undo) any accelerators from being added to or
              removed from a widget.
      f83d57e9
  19. 17 Jun, 1998 1 commit
  20. 15 Jun, 1998 1 commit
    • Owen Taylor's avatar
      gdk/gdktypes.h gdk/gdkprivate.h gtk/gtk*.h gtk/Makefile.am gtk/makenums.pl · 48a9f44f
      Owen Taylor authored
      Mon Jun 15 16:29:45 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gdk/gdktypes.h gdk/gdkprivate.h gtk/gtk*.h
      	  gtk/Makefile.am gtk/makenums.pl
      
      	Removed out the G_ENUM/FLAGS mechanism in favor
      	of a perl script that parses the standard headers
      	(with occasional /*< nick=foo >*/ style overrides)
      	and extracts the enumerations.
      
      	  gtk/maketypes.awk: Small improvments to the
      	  translation of names. (Avoid splitting gc into
      	  g_c_.)
      
      Mon Jun 15 16:25:44 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/Makefile.am gtk/gtk.h gtk/gtkfontsel.[ch] gtk/testgtk.c:
      	Damon Chaplin's <DAChaplin@email.msn.com> Font selection widget,
              and a simple example for testgtk.
      
      Mon Jun 15 15:58:34 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtkentry.c:
      	- Restored gtk_entry_adjust_scroll to static
      	- Changed text positioning code so that we always
      	  display as large a portion of the text as possible.
      
      Mon Jun 15 15:42:12 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtktext.c (gtk_text_finalize): Free internal
      	structures of text widget. Also, unreference pixmaps
      	when unrealizing.
      
      Sat Jun 13 19:14:39 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gdk/gdkinputcommon.h (gdk_input_device_new): Change
      	3.3.1 bug workaround to number keys starting at 1.
      
      Sat Jun 13 11:56:57 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* docs/gtk_tut.sgml: Fixed urls for complete example
      	source for scribble+widget-writing examples.
      48a9f44f
  21. 13 Jun, 1998 1 commit
  22. 08 Jun, 1998 1 commit
    • Tim Janik's avatar
      wrapped enum definitions with glib macros. · 207eecc4
      Tim Janik authored
      Mon Jun  8 02:52:37 1998  Tim Janik  <timj@gtk.org>
      
              * gdk/gdkprivate.h:
              * gdk/gdktypes.h:
              * gtk/gtkprivate.h:
              * gtk/gtkwidget.h:
              * gtk/gtkobject.h: wrapped enum definitions with glib macros.
      
              * reworked enum value array generation code. gtk.defs is a generated
              file now.
      207eecc4
  23. 02 Jun, 1998 1 commit
  24. 22 May, 1998 1 commit
    • Owen Taylor's avatar
      Added style_set handler. · 57985643
      Owen Taylor authored
      Fri May 22 03:02:40 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtkhandlebox.c: Added style_set handler.
      
      Fri May 22 02:55:57 1998  Owen Taylor  <otaylor@gtk.org>
       [ From: Chris Lahey  <clahey@umich.edu> ]
      
      	* gtk/gtkeditable.c, gtk/gtkeditable.h,
      	  gtk/gtktext.c, gtk/gtkentry.c: Added get_position,
      	  and set_position functions to get and set the cursor position.
      
              * gtk/gtkeditable.c: Restored "insert_text" and "delete_text" to
      	  signal status. Make GtkText do user-controlled insertion
      	  and deletion through the Editable widget so that these
      	  signals are properly emitted.
      
      	* gtk/gtkentry.c: Changed gtk_entry_set_visibility to
      	  display asterisks instead of empty space when visible = FALSE)
      57985643
  25. 16 May, 1998 1 commit
    • Owen Taylor's avatar
      Basic thread-awareness: · 45714833
      Owen Taylor authored
      Fri May 15 21:16:54 1998  Owen Taylor  <otaylor@gtk.org>
      
      	Basic thread-awareness:
      
      	* acconfig.h configure.in: New option --with-threads=[yes/posix/no]
      
      	* gdk/Makefile.am gdk/gdkthreads.c: Added new functions
      	gdk_threads_[init/enter/leave] for applications, plus
      	gdk_threads_wake to wake the mainloop thread out of
      	the select().
      
      	* gtk/Makefile.am: gtk/testthreads.c: Test program for threads
      
      Fri May 15 12:08:48 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/testgtk.c (list_clear): Account for the fact
      	that gtk_list_clear_items is not inclusive. (Clears
      	[start, end))
      45714833
  26. 13 May, 1998 2 commits
    • Owen Taylor's avatar
      A few more GPOINTER_TO_UINT fixes. · 4283c9de
      Owen Taylor authored
      Wed May 13 00:53:52 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtktypeutils.c gtk/gtksignal.c: A few more
      	  GPOINTER_TO_UINT fixes.
      
      	* gtk/gtksignal.c: Include <string.h> for memset.
      
      Tue May 12 23:10:53 1998  Owen Taylor  <otaylor@gtk.org>
      	(Maximilian Bisani <bisani@kawo2.rwth-aachen.de>: gtk-bisani-980320-0)
      
      	* gtk/gtkvruler.c gtk/gtkhruler.c gtk/gtkruler.h:
      	Cleanups, comments and the ability to have rulers with
      	a reversed direction.
      4283c9de
    • 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
  27. 12 May, 1998 2 commits
    • Owen Taylor's avatar
      (James A <jamesa@demon.net> : gtk-jamesa-980511-4.patch) · c9e78a10
      Owen Taylor authored
      Tue May 12 16:54:15 1998  Owen Taylor  <otaylor@gtk.org>
      	(James A <jamesa@demon.net> : gtk-jamesa-980511-4.patch)
      
      	* glib.h gstring.c gmessages.c: Added some missing
      	const to arguments.
      
      	* gutils.c (g_strsignal.c): Added missing return statements.
      
      Tue May 12 16:56:35 1998  Owen Taylor  <otaylor@gtk.org>
      	(James A <jamesa@demon.net> : gtk-jamesa-980511-4.patch)
      
      	* gtk/gtkbbox.h gtk/gtkcolorsel.h gtk/gtkvbbox.h:
      	Changed #include "gtkfoo.h" to #include <gtk/gtkfoo.h>
      
      	* gtk/gtkwindow.[ch]: Added const to gtk_window_set_wmclass
      
      Tue May 12 15:16:10 1998  Owen Taylor  <otaylor@gtk.org>
      	(From: Christopher James Lahey <clahey@umich.edu>)
      
      	* gtk/gtkbutton.[ch] gtk/gtkenums.h gtk/gtktoolbar.[ch]
      	  gtk/testgtk.c:
      
      	Added 'relief' for buttons - they can be either GTK_RELIEF_NORMAL
      	(old style), or GTK_RELIEF_NONE - no relief in the NORMAL
      	state. Added gtk_toolbar_{set,get}_button_relief, which set/get
      	the default relief for the toolbars buttons. Added an
      	toggle for the toolbar test in testgtk.c.
      c9e78a10
    • 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
  28. 11 May, 1998 1 commit
    • Tim Janik's avatar
      preserve automake CFLAGS. · e8df8ce1
      Tim Janik authored
      Mon May 11 09:56:45 1998  Tim Janik  <timj@gtk.org>
      
              * configure.in (cflags_set): preserve automake CFLAGS.
      
              * Makefile.am: fully rename the created libraries to libgtk-1.1.la
              and libgdk-1.1.la. this means we need to change certain portions of
              the Makefile.am on major/minor version bumps.
      
              * ltmain.sh: the -release option is not required anymore.
      
              * gtk/gtkobject.h (gtk_trace_referencing): compile time check the type
              of the first argument to be of type GtkObject. unconditionally compile
              this function. removed __GNUC__ dependancy of the gtk_object_ref and
              gtk_object_unref macro wrappers for this function.
      
      Mon May 11 09:53:43 1998  Tim Janik  <timj@gtk.org>
      
              * configure.in: preserve automake CFLAGS.
      
              * Makefile.am: fully rename the created library to libglib-1.1.la.
              this means we need to change certain portions of the Makefile.am on
              major/minor version bumps.
      
              * ltmain.sh: the -release option is not required anymore.
      
              * glib.h: provide G_GNUC_FUNCTION and G_GNUC_PRETTY_FUNCTION to
              avoid conditionals. unconditionally define NULL, TRUE, FALSE, MAX,
              MIN, ABS and CLAMP, these macros might be screwed from other headers.
      e8df8ce1
  29. 10 May, 1998 2 commits
    • Stefan Jeske's avatar
      Started documentation of GtkCTree. · cb12593d
      Stefan Jeske authored
      cb12593d
    • Owen Taylor's avatar
      Try to figure out if this is Digital Unix and we need -std1 to get the · f75d8b0c
      Owen Taylor authored
      Sat May  9 20:11:20 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* configure.in (LIBS): Try to figure out if this
      	is Digital Unix and we need -std1 to get the
      	right prototypes.
      
      Sat May  9 20:08:12 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* glib/gmem.c: Experimentally restore GMemChunk
      	to its primeval state - where mem areas are
      	freed incrementally instead of searching the tree
      	every time a mem area is completely empty. Also,
      	always keep one mem chunk around. (Reduced calls
      	to malloc() a lot, but doesn't really improve
      	performance significiantly)
      
      Fri May  8 21:31:50 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtkwidget.c (gtk_widget_queue_draw): Free the
      	draw-queue when we are done.
      
      	(gtk_widget_queue_draw/_queu_resize): Always return
      	FALSE and avoid having two idles at the same time.
      
      Fri May  8 21:04:00 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtktext.c: Various fixes to make sure cache
      	lines are freed if line_start_cache doesn't point to the
      	beginning of the cache.
      
      Thu May  7 09:44:22 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* style_set improvements for GtkText and GtkEntry
      
      Tue May  5 19:49:27 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gdk/gdkpixmap.c: Patches from Gordon Matzigkeit
      	to speed things up and remove code duplication.
      
      	Reintegrated buffer overflow patches, and added
      	some extra paranoia.
      
      Tue May  5 17:04:14 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gdk/gdk.c (gdk_event_translate): A guint * was
      	being passed where X expected a Keysym *, and
      	keysyms are long's on Alpha Linux. This was causing
      	segfaults in Xlib, apparently because of alignment.
      	(Bug located by Juergen Haas <haas@forwiss.uni-passau.de>)
      
      Tue May  5 19:11:27 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtkdrawingarea.c (gtk_drawing_area_realize): Always
      	set GDK_EXPOSURE_MASK for DrawingAreas
      
      Tue May  5 14:32:37 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtkwidget.[ch]: removed gtk_widge_propagate_default_style
      	(superceded by RC file reparsing capabilities)
      
      	* gtk/gtkwindow.c: Add handling for _GDK_READ_RFCILES client
      	events. (Shouldn't be sent to the InputOnly leader, which
      	it is now by gdk_event_send_clientmessage_toall
      
      	* gtk/testgtk.c: Added extra button to rcfiles test
      	to send out _GDK_READ_RCFILES events.
      
      Tue May  5 11:03:00 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtkselection.c (gtk_selection_clear): Fixed
      	reversed conditionals that caused segfault on some
      	platforms.
      
      Tue May  5 00:44:47 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtkcontainer.c (gtk_container_set_focus_[hv]adjustment):
      	cast to GTK_OBJECT for gtk_object_ref.
      f75d8b0c
  30. 07 May, 1998 1 commit
  31. 06 May, 1998 1 commit
  32. 05 May, 1998 1 commit
  33. 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