1. 18 Nov, 1998 1 commit
    • Lars Hamann's avatar
      return the nth GtkCTreeNode in row_list. (from Samuel Solon · 73513270
      Lars Hamann authored
      Thu Nov 19 00:15:27 1998  Lars Hamann  <lars@gtk.org>
      
      	* gtk/gtkctree.c (gtk_ctree_node_nth): return the nth GtkCTreeNode
      	in row_list. (from Samuel Solon <ssolon@usa.net>)
      
      	* gtk/gtkclist.c (gtk_clist_get_column_title): return column title
      	(gtk_clist_get_column_widget): return column widget
      73513270
  2. 11 Nov, 1998 1 commit
    • Lars Hamann's avatar
      added ARG_WINDOW_PLACEMENT · f164436f
      Lars Hamann authored
      Wed Nov 11 19:54:58 1998  Lars Hamann  <lars@gtk.org>
      
              * gtk/gtkscrolledwindow.c (gtk_scrolled_window_class_init)
              (gtk_scrolled_window_set_arg) (gtk_scrolled_window_get_arg):
              added ARG_WINDOW_PLACEMENT
      
              * gtk/gtkclist.c (size_allocate_columns): resize column if column
              button > column width and auto_resize is set
              (real_clear) (column_auto_resize) (gtk_clist_optimal_column_width):
              consider column button width of auto resized columns
              (gtk_clist_parent_set): removed
      
              * gtk/gtkctree.c (gtk_ctree_insert_node): call column_auto_resize.
              (auto_resize_columns): auto_resize all columns
              (real_tree_collapse) (gtk_ctree_remove_node): call auto_resize_columns
              (column_auto_resize): respect column button width of auto resized
              columns
      f164436f
  3. 04 Nov, 1998 1 commit
  4. 22 Oct, 1998 1 commit
  5. 19 Oct, 1998 1 commit
    • Lars Hamann's avatar
      rearranged some functions (gtk_clist_set_column_auto_resize): new · e45890a6
      Lars Hamann authored
      Mon Oct 19 23:44:41 1998  Lars Hamann  <lars@gtk.org>
      
      	* gtk/gtkclist.c: rearranged some functions
      	(gtk_clist_set_column_auto_resize): new function. toggle auto_resize
       	flag of column
      	(gtk_clist_set_column_resizeable): if resizeable disable auto_resize
      	(gtk_clist_set_border): deprecated function, use
       	gtk_clist_set_shadow_type instead.
      	(gtk_clist_set_shadow_type): replacement for gtk_clist_set_border
       	(adjust_scrollbars): some cleanups
      	(select_row) (unselect_row): removed. replaced by equivalent
      	gtk_signal_emit calls
      	(add_style_data): removed, use gtk_clist_style_set instead
      	(gtk_clist_style_set): fill in size data, after style was set.
       	(set_cell_contents) (gtk_clist_set_shift) (gtk_clist_set_row_style)
       	(gtk_clist_set_cell_style): auto_resize columns if needed
      	(column_auto_resize): resize column if needed for auto_resize
      	(real_clear): disable auto_resize while list destroy
      	(resize_column): removed
      
      	* gtk/gtkctree.c : (gtk_ctree_remove_node)
      	(gtk_ctree_set_line_style) (gtk_ctree_set_expander_style)
      	(gtk_ctree_node_set_row_style) (gtk_ctree_node_set_cell_style)
       	(set_cell_contents) (gtk_ctree_node_set_shift) (gtk_ctree_set_spacing)
      	(real_tree_move) (gtk_ctree_set_indent) (gtk_ctree_insert_node)
      	(real_tree_collapse) (real_tree_expand) (column_auto_resize):
       	auto_resize columns if needed
      	(gtk_ctree_collapse_recursive) (gtk_ctree_collapse_to_depth)
      	(real_clear): disable auto_resize while processing the tree
      
      	* gtk/testgtk.c (create_clist) (create_ctree): set auto_resize
      	for one column
      e45890a6
  6. 16 Oct, 1998 1 commit
    • Lars Hamann's avatar
      change a few cell styles of inserted row (change_style): change style of · eff33964
      Lars Hamann authored
      Fri Oct 16 15:59:02 1998  Lars Hamann  <lars@gtk.org>
      
      	* gtk/testgtk.c (insert_row_clist) (create_clist): change a few cell
      	styles of inserted row
      	(change_style): change style of focus_row
      
      	* gtk/gtkclist.c (gtk_clist_get_row_style) (gtk_clist_set_row_style)
      	(gtk_clist_get_cell_style) (gtk_clist_set_cell_style): new functions
      	to set/get row/cell styles.
      	(gtk_clist_realize): attach row and cell style, allocate row colors.
      	(gtk_clist_unrealize): detach row and cell styles.
      	(get_cell_style): new function. get correct cell style.
      	(draw_cell_pixmap): new function.
      	(draw_row): draw cells with row or cell styles.
      	(row_new): set cell and row styles to NULL.
      	(row_delete): detach & unref cell and row styles.
      
      	* gtk/gtkctree.c (ctree_detach_styles) (ctree_attach_styles):
      	new functions to attach/detach styles and allocate colors.
      	(gtk_ctree_realize) (gtk_ctree_unrealize): attach/detach cell and row
      	styles of invisible nodes.
      	(draw_cell_pixmap): new function.
      	(get_cell_style):  new function. get correct cell style.
      	(gtk_ctree_draw_expander): new function. draw tree expander.
      	(gtk_ctree_draw_lines): new function.draw tree lines.
      	(draw_row): draw cells with row or cell styles.
      	(row_new): set cell and row styles to NULL.
      	(row_delete): detach & unref cell and row styles.
      	(gtk_ctree_node_get_row_style) (gtk_ctree_node_set_row_style)
      	(gtk_ctree_node_get_cell_style) (gtk_ctree_node_set_cell_style):
      	Analogons of GtkCList functions
      	(gtk_ctree_set_spacing): new function. set spacing between
      	tree expander and cell contents
      	(gtk_ctree_set_expander_style): new function. set expander style
      	of ctree.
      	(ctree_is_hot_spot): few changes due to draw_row modifications.
      eff33964
  7. 07 Oct, 1998 2 commits
    • Lars Hamann's avatar
      removed xor_gc, use clists xor_gc instead removed · 28cd4d61
      Lars Hamann authored
      Wed Oct  7 20:27:28 1998  Lars Hamann  <lars@gtk.org>
      
              * gtk/gtkctree.h (struct _GtkCTree): removed xor_gc, use clists
              xor_gc instead
              * gtk/gtkctree.c (create_xor_gc): removed
              (gtk_ctree_button_press): set correct line_attributes for
              clist->xor_gc on drag start
              (gtk_ctree_button_release): reset clist->xor_gc
      28cd4d61
    • Lars Hamann's avatar
      new signal GtkCList::resize_column. don't draw invisible columns · a2951281
      Lars Hamann authored
      Wed Oct  7 00:59:46 1998  Lars Hamann  <lars@gtk.org>
      
              * gtk/gtkclist.h: new signal GtkCList::resize_column.
              * gtk/gtkclist.c (draw_row): don't draw invisible columns
              (size_allocate_title_buttons) (size_allocate_columns):
              skip invisible columns
              (new_column_width): take min/max_width into account
              (gtk_clist_button_release) (gtk_clist_motion):
              changes due to changed new_column_width function
              (LIST_WIDTH): changed define to inline function.
              (real_resize_column): class function for resize_column signal
              (gtk_clist_motion): fixed autoscrolling for column resizes
              (gtk_clist_set_column_visibility): don't hide last visible column,
              changed visible arg to gboolean
              (gtk_clist_set_column_min_width)(gtk_clist_set_column_max_width):
              new functions : set min/max width of a column
              (gtk_clist_set_column_resizeable): new function : enable/disable
              column resize operations by mouse
      
              * gtk/gtkctree.c (draw_row): don't draw invisible columns
              (ctree_is_hot_spot): return FALSE if tree_column is invisible
              (draw_xor_line)  (draw_xor_rect): draw full rectangle/line if
              tree_column is invisible
              (gtk_ctree_find_all_by_row_data)
              (gtk_ctree_find_all_by_row_data_custom):  new function from
              Ronan Bourlier <ronan@radioss.com>. Returns a GList of all
              GtkCTreeNodes with row->data == data.
      a2951281
  8. 02 Oct, 1998 1 commit
    • Lars Hamann's avatar
      fixes for assignment errors with GTK_CTREE_NODE_NEXT/PREV · 879683b6
      Lars Hamann authored
      Sat Oct  3 01:25:24 1998  Lars Hamann  <lars@gtk.org>
      
          * gtk/gtkctree.c (gtk_ctree_insert_gnode) (real_tree_collapse)
          (gtk_ctree_link) (gtk_ctree_unlink) (real_tree_expand):
          fixes for assignment errors with GTK_CTREE_NODE_NEXT/PREV
      
          (real_tree_expand) (real_tree_collapse):
          don't expand/collapse a leaf
      879683b6
  9. 11 Sep, 1998 1 commit
    • Lars Hamann's avatar
      new function to set/unset the selectable flag of a single row. · cb7c4d6c
      Lars Hamann authored
      * gtk/gtkclist.c (gtk_clist_set_selectable): new function
        to set/unset the selectable flag of a single row.
        (gtk_clist_get_selectable): new function
        to get the state of the selectable flag
      
      * gtk/gtkctree.c (gtk_ctree_node_set_selectable)
        (gtk_ctree_node_get_selectable): clist analogons
      cb7c4d6c
  10. 03 Sep, 1998 1 commit
    • Tim Janik's avatar
      `const' fixups. · 0f0d9509
      Tim Janik authored
      Thu Sep  3 07:16:54 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkctree.h:
              * gtk/gtkctree.c: `const' fixups.
      
              * gtk/gtkclist.h:
              * gtk/gtkclist.c: `const' fixups and some coding style adaptions.
      
              * gtk/gtkctree.c (gtk_ctree_insert_node): don't dereference *text
              if it is passed as NULL.
      0f0d9509
  11. 17 Aug, 1998 2 commits
    • Lars Hamann's avatar
      new class methods: (sort_list) (insert_row) (remove_row) · 17d141c8
      Lars Hamann authored
      Tue Aug 18 00:29:13 1998  Lars Hamann  <lars@gtk.org>
      
              * gtk/gtkclist.h:
              (struct _GtkCListClass): new class methods:
              (sort_list) (insert_row) (remove_row) (set_cell_contents)
      
              * gtk/gtkclist.c :
              (cell_empty) (cell_set_text) (cell_set_pixmap) (cell_set_pixtext):
              removed and replaced by (set_cell_contents)
              (set_cell_contents): function for class method set_cell_contents
              (real_insert_row): function for class method insert_row
              (real_remoce_row): function for class method remove_row
              (real_sort_list): function for class method sort_list
              (default_compare): fix to avoid problems with cell types != CELL_TEXT
      
              * gtk/gtkctree.h :
              (gtk_ctree_export_to_gnode): new function to export a ctree as gnode
              (gtk_ctree_node_is_visible): new function to return visibility state
              of a node
      		(gtk_ctree_show_stub): new function to set visibility of root stub
      
              renamed functions :
              (gtk_ctree_insert) -> (gtk_ctree_insert_node)
              (gtk_ctree_remove) -> (gtk_ctree_remove_node)
              (gtk_ctree_find_glist_ptr) -> (gtk_ctree_find_node_ptr)
              (gtk_ctree_set_text) -> (gtk_ctree_node_set_text)
              (gtk_ctree_set_pixmap) -> (gtk_ctree_node_set_pixmap)
              (gtk_ctree_set_pixtext) -> (gtk_ctree_node_set_pixtext)
              (gtk_ctree_set_shift) -> (gtk_ctree_node_set_shift)
              (gtk_ctree_get_cell_type) -> (gtk_ctree_node_get_cell_type)
              (gtk_ctree_get_text) -> (gtk_ctree_node_get_text)
              (gtk_ctree_get_pixmap) -> (gtk_ctree_node_get_pixmap)
              (gtk_ctree_get_pixtext) -> (gtk_ctree_node_get_pixtext)
              (gtk_ctree_set_foreground) -> (gtk_ctree_node_set_foreground)
              (gtk_ctree_set_background) -> (gtk_ctree_node_set_background)
              (gtk_ctree_set_row_data) -> (gtk_ctree_node_set_row_data)
              (gtk_ctree_set_row_data_full) -> (gtk_ctree_node_set_row_data_full)
              (gtk_ctree_get_row_data) -> (gtk_ctree_node_get_row_data)
              (gtk_ctree_moveto) -> (gtk_ctree_node_moveto)
              (gtk_ctree_sort) -> (gtk_ctree_sort_node)
      		(gtk_ctree_is_visibe) -> (gtk_ctree_is_viewable)
      
              * gtk/gtkctree.c :
              (cell_empty) (cell_set_text) (cell_set_pixmap) (cell_set_pixtext):
              removed and replaced by (set_cell_contents)
              (set_cell_contents): function for class method set_cell_contents
              (real_insert_row): function for class method insert_row
              (real_remoce_row): function for class method remove_row
              (real_sort_list): function for class method sort_list
              (default_compare): removed. CTree now also compares two GtkCTreeRows
              instead of two GtkCTreeNodes.
              (gtk_ctree_unlink): call gtk_ctree_collapse if parent is empty after
              unlinking the node
              (real_tree_expand) (real_tree_collapse): fix for refcounting of
              node pixmaps
              (set_node_info): call gtk_ctree_node_set_pixtext instead of
              manipulating the row itself
      
              * gtk/testgtk.c: use renamed functions of GtkCTree.
              new sample to show gtk_ctree_export_to_gnode and gtk_ctree_insert_gnode
              at work.
      17d141c8
    • Tim Janik's avatar
      removed gtk_input_add_interp. · 47215ba4
      Tim Janik authored
      Mon Aug 17 15:31:38 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkmain.c: removed gtk_input_add_interp.
      
              * gtk/gtkeditable.c (gtk_editable_set_position): fixed bogus "return"
              keyword.
              (gtk_editable_get_event_time): fix default: case.
      
              * gtk/gtkclist.c (gtk_clist_swap_rows): fixes for lvalue casts.
      
              * gdk/gdkpixmap.c: made a bunch of unexported functions static.
      
              * gdk/gdkcolor.c:
              * gdk/gdkvisual.c: include "gdkx.h", since it exports prototypes
              of our functions.
      
              * various minor compilation cleanups, such as bogus commas in
              enums and similar things.
      
      M
      47215ba4
  12. 15 Aug, 1998 1 commit
    • John Ellis's avatar
      New function to set a callback to test if a node in drag can be dropped · db85d915
      John Ellis authored
      Sat Aug 15 03:19:30 1998  John Ellis  <johne@bellatlantic.net>
      
              * gtk/gtkctree.[ch] (gtk_ctree_set_drag_compare_func): New function
              to set a callback to test if a node in drag can be dropped onto
              it's currrent location.
              * gtk/gtkctree.c (set_mouse_cursor),(check_cursor): New functions
              to change the pointer when a drag destination is not allowed.
      db85d915
  13. 05 Aug, 1998 2 commits
    • 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
    • Lars Hamann's avatar
      changed to return a gboolean (gtk_ctree_insert_gnode): new function for · e3b8e185
      Lars Hamann authored
      Wed Aug  5 02:57:20 1998  Lars Hamann  <lars@gtk.org>
      
              * gtk/gtkctree.h:
              * gtk/gtkctree.c:
              (gtk_ctree_find): changed to return a gboolean
              (gtk_ctree_insert_gnode): new function for recursive insertion of a
              GNode tree.
              (gtk_ctree_real_select_recursive): fix for extended selection
              (gtk_ctree_sort_recursive): in case node == NULL, sort root nodes too.
              (gtk_ctree_set_node_info) (set_node_info): few fixes for expanded flag
      e3b8e185
  14. 03 Aug, 1998 1 commit
  15. 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
  16. 27 Jul, 1998 1 commit
    • Tim Janik's avatar
      fixup, so that enum values are looked up. · fc7c7f46
      Tim Janik authored
      Mon Jul 27 03:11:20 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkbindings.c (binding_compose_params): fixup, so that enum
              values are looked up.
      
              * gtk/gtktypeutils.h:
              * gtk/gtktypeutils.c: new functions gtk_type_flags_find_value and
              gtk_type_enums_find_value to lookup enum values.
      
              * gtk/gtkctree.h:
              * gtk/gtkctree.c: change enum name from GtkCTreeExpansion to
              GtkCTreeExpansionType. fixed signal creations to pass the enum
              types not just the base type GTK_TYPE_ENUM.
      
              * gtk/gtkclist.h:
              * gtk/gtkclist.c: fixed signal creations to pass the real enum
              types not just the base type GTK_TYPE_ENUM.
      fc7c7f46
  17. 26 Jul, 1998 2 commits
    • Lars Hamann's avatar
      little fix to avoid warnings · 656061cb
      Lars Hamann authored
      * gtk/gtkclist.c gtk/gtkctree.c : little fix to avoid warnings
      656061cb
    • Lars Hamann's avatar
      fix for pointer grab · 65044ace
      Lars Hamann authored
      * gtk/gtkclist.c (gtk_clist_button_press) (gtk_clist_button_release)
        (abort_column_resize) (gtk_clist_key_press): fix for pointer grab
      
      * gtk/gtkctree.c (real_tree_select): added check to avoid double
        selected rows
        (gtk_ctree_button_press)
        (gtk_ctree_button_release): fix for pointer grab
      65044ace
  18. 25 Jul, 1998 1 commit
    • Lars Hamann's avatar
      test for node != NULL (gtk_ctree_is_visible) (gtk_ctree_realize) · 165fab76
      Lars Hamann authored
      * gtk/gtkctree.c (gtk_ctree_sort_recursive)
        (gtk_ctree_sort_recursive): test for node != NULL
        (gtk_ctree_is_visible) (gtk_ctree_realize) (gtk_ctree_unrealize)
        (gtk_ctree_last) : added sanity checks
      * gtk/gtkclist.c (gtk_clist_button_press): removed "no_focus_row"
      165fab76
  19. 22 Jul, 1998 1 commit
    • Lars Hamann's avatar
      few fixes for gtk_signal_emits · aa1bf581
      Lars Hamann authored
      * gtk/gtkctree.c (tree_select/unselect) (tree_expand/collapse)
        (tree_toggle_expansion) (real_select/unselect_row)
        (gtk_ctree_select/unselect) : few fixes for gtk_signal_emits
      aa1bf581
  20. 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
  21. 20 Jul, 1998 1 commit
    • Lars Hamann's avatar
      new functions, recursive process tree to specified depth · cebb7bfc
      Lars Hamann authored
      * gtk/gtkctree.c (gtk_ctree_post_recursive_to_depth)
        (gtk_ctree_pre_recursive_to_depth): new functions, recursive process
        tree to specified depth
        (gtk_ctree_expand_to_depth): expand tree to specified depth
        (gtk_ctree_collapse_to_depth): collapse all nodes with level >= depth
      cebb7bfc
  22. 16 Jul, 1998 2 commits
    • Lars Hamann's avatar
      fix for sigsegv in case of drag_target == NULL fix for · 8f733319
      Lars Hamann authored
      * gtk/gtkctree.c (gtk_ctree_button_release): fix for sigsegv in
        case of drag_target == NULL
      * gtk/gtkclist.c (gtk_clist_button_press): fix for GTK_2/3BUTTON_PRESS.
        Clist did not emit an select_row signal in case of GTK_2/3BUTTON_PRESS.
      * gtk/gtkfilesel.c (gtk_file_selection_file_button,
        gtk_dir_selection_file_button): fix due to changes in clist's
        select_row signal.
      8f733319
    • Tim Janik's avatar
      handle negative values similar to gtk_widget_set_uposition(). that is: · af24aef7
      Tim Janik authored
      Thu Jul 16 01:27:15 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkwidget.h:
              * gtk/gtkwidget.c (gtk_widget_set_usize): handle negative values
              similar to gtk_widget_set_uposition(). that is: -1=unspecified,
              -2=leave untouched. changed the width/height field of GtkWidgetAuxInfo
              to be gint16s rather than guint16s, since that's what the code expected
              (for a long time actually).
      
              * gtk/gtkviewport.c:
              added support for object arguments: GtkViewport::shadow_type,
              GtkViewport::vadjustment and GtkViewport::hadjustment.
              (gtk_viewport_add): chain gtk_bin_add.
      
              * gtk/gtkscrolledwindow.c:
              added support for object argument: GtkScrolledWindow::hscrollbar_policy,
              GtkScrolledWindow::vscrollbar_policy and GtkScrolledWindow::viewport.
      
              * gtk/gtkadjustment.h:
              * gtk/gtkadjustment.c:
              * gtk/gtkctree.h:
              * gtk/gtkclist.h:
              * gtk/gtkctree.c:
              * gtk/gtkclist.c:
              * gtk/gtkscrolledwindow.h:
              * gtk/gtkscrolledwindow.c:
              * gtk/gtkviewport.h:
              * gtk/gtkviewport.c:
              GtkType and macro fixups.
      af24aef7
  23. 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
  24. 04 Jul, 1998 1 commit
  25. 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
  26. 22 Jun, 1998 1 commit
  27. 10 Jun, 1998 1 commit
    • Lars Hamann's avatar
      adapted clist pixmap clipping · 6b61461a
      Lars Hamann authored
              * gtk/gtkctree.c (draw_row): adapted clist pixmap clipping
      
              * gtk/gtknotebook.h (struct _GtkNotebookClass):
              * gtk/gtknotebook.c (gtk_real_notebook_switch_page):
              added missing argument (according to Joseph Coleman's bug report)
      
              * gtk/gtknotebook.c (gtk_notebook_set_focus_child): new class
              function to fix notebook focus handling
      6b61461a
  28. 07 Jun, 1998 1 commit
    • Tim Janik's avatar
      fixed an assertment. · a391196b
      Tim Janik authored
      Sat Jun  6 06:01:24 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtksignal.c (gtk_signal_emitv): fixed an assertment.
      
              * gtk/makeenums.awk: a script to generate the GtkEnumValue arrays from,
              this should eventually be done by gentypeinfo.el somewhen.
              * gtk/gtkenumvalues.c: new generated file to hold GtkEnumValue arrays.
      
              * gtk/gtktypeutils.h: new function gtk_enum_values() to retrive all the
              enum values of an enum type.
      
              * gtk/gtk.defs:
              * gtk/gtkcurve.h:
              * gtk/gtkobject.h:
              * gtk/gtkprivate.h:
              * gtk/gtkwidget.h:
              * gtk/gtkenums.h:
              brought enum/flags definitions in sync, added a few more enum
              definitions for bindings and pattern matching.
      
              * some more macro and GtkType fixups in various places.
      
              * gdk/gdktypes.h (enum): added a new value GDK_AFTER_MASK, which is used
              as a key-release modifier for the binding system.
      
      Fri Jun  5 06:06:06 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkmenu.h (struct _GtkMenu): removed GList*children, since it
              was a stale list pointer that is already present in GtkMenuShell.
      
              * gtk/gtkmenushell.h (struct _GtkMenuShellClass): added a signal
              GtkMenuShell::selection_done which is emitted after the menu shell
              poped down again and all possible menu items have been activated.
      
      Thu Jun  4 02:20:42 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkmenushell.c (gtk_menu_shell_button_release): flush the x-queue
              before activation of the menuitem, so the menu is actually taken off the
              screen prior to any menu item activation.
      
              * gtk/gtkctree.c (gtk_ctree_get_row_data): allow function invokation
              for NULL nodes.
      
              * gtk/gtkwidget.h:
              * gtk/gtkwidget.c: new function gtk_widget_stop_accelerator to stop
              the emission of the "add-accelerator" signal on a widget. this is
              usefull to prevent accelerator installation on certain widgets.
      
              * gtk/gtknotebook.c (gtk_notebook_menu_item_create): keep the menu
              labels left justified, by setting their alignment. stop accelerator
              installation for the menu items, since we use dynamic menus.
      
      Wed Jun  3 06:41:22 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkmenufactory.c: adaptions to use the new accel groups. people
              should *really* use GtkItemFactory. this is only for preserving source
              compatibility where possible, use of GtkMenuFactory is deprecated as of
              now.
      
              * gtk/gtkobject.h (gtk_object_class_add_user_signal): new function
              to create user signals of type GTK_RUN_NO_RECURSE. don't know why i
              missed this possibility when i added gtk_object_class_add_user_signal
              in late january.
      
              * gtk/gtkmain.c (gtk_init): ignore subsequent function calls.
      
      Sun May 31 07:31:09 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkaccelgroup.h:
              * gtk/gtkaccelgroup.c: new implementation of the accelerator concept.
      
              * gtk/gtkaccellabel.h:
              * gtk/gtkaccellabel.c: new widget derived from GtkLabel whitch features
              display of the accelerators associated with a certain widget.
      
              * gtk/gtkitemfactory.h:
              * gtk/gtkitemfactory.c: new widget, item factory with automatic rc
              parsing and accelerator handling.
      
              * gtk/gtkmenu.c (gtk_menu_reposition): new function to care for
              positioning a menu.
              (gtk_menu_map): removed the allocation code.
              (gtk_menu_size_allocate): care for redrawing of children and resize
              our widget->window correctly.
              (gtk_menu_key_press): feature the new accelerator groups.
      
              * gtk/gtkmenuitem.c (gtk_menu_item_size_allocate): reposition the
              submenu if neccessary.
      
              * gtk/gtkmenuitem.c:
              * gtk/gtkcheckmenuitem.c:
              * gtk/gtkradiomenuitem.c: use GtkAccelLabel in the *_new_with_label()
              function variants.
      
              * gdk/gdk.c:
              (gdk_keyval_from_name):
              (gdk_keyval_name): new functions for keyval<->key-name associations.
              (gdk_keyval_to_upper):
              (gdk_keyval_to_lower):
              (gdk_keyval_is_upper):
              (gdk_keyval_is_lower): new functions to check/translate keyvalues with
              regards to their cases.
      
      Wed May 27 00:48:10 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkwidget.c (gtk_widget_class_path): new function to calculate a
              widget's class path.
              (gtk_widget_path): new function to calculate a widget's name path.
      
              * gtk/gtkrc.c: newly introduced GtkPatternSpec structures to speed up
              pattern matching, features reversed pattern matches.
      a391196b
  29. 10 May, 1998 1 commit
  30. 05 May, 1998 1 commit
  31. 04 May, 1998 1 commit
  32. 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
  33. 01 May, 1998 2 commits