summaryrefslogtreecommitdiff
path: root/gtk/gtktreeselection.c
Commit message (Collapse)AuthorAgeFilesLines
* Now we test we can unselect nodes before selecting new ones.Jonathan Blandford2002-01-101-4/+24
| | | | | | | | | Wed Jan 9 19:10:07 2002 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreeselection.c (_gtk_tree_selection_internal_select_node): Now we test we can unselect nodes before selecting new ones. (gtk_tree_selection_real_select_node): be careful comparing booleans.
* Rename gtk_tree_view_queue_draw_node to _gtk_tree_view_queue_draw_node.Anders Carlsson2002-01-021-2/+2
| | | | | | | | | | | | | | | | 2002-01-03 Anders Carlsson <andersca@gnu.org> * gtk/gtktreeview.c: Rename gtk_tree_view_queue_draw_node to _gtk_tree_view_queue_draw_node. (gtk_tree_view_row_has_child_toggled): Only redraw one node. * gtk/gtktreesortable.c (gtk_tree_sortable_set_sort_func): sort_column_id can be 0. * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node): Only redraw one the node being selected. * gtk/gtktreeprivate.h: Add _gtk_tree_view_queue_draw_node.
* Make gtkmarshal.list/gtkmarshal.h only for compatibility with GTK+-1.2;Owen Taylor2001-11-171-1/+2
| | | | | | | | | | 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.
* Fix reorder_fixup, #59583Jonathan Blandford2001-11-021-1/+2
| | | | | | | | | | Thu Nov 1 19:11:35 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtkrbtree.c (gtk_rbtree_reorder_fixup): Fix reorder_fixup, #59583 * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): fix warning.
* Add GTK_SELECTION_NONE enum, #61695Jonathan Blandford2001-10-311-10/+29
| | | | | | | | | | | | | | | | | | Wed Oct 31 14:45:08 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtkenums.h (enum): Add GTK_SELECTION_NONE enum, #61695 * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Handle new GTK_SELECTION_NONE enum. (_gtk_tree_selection_internal_select_node): ditto * gtk/gtkcellrenderer.h (struct _GtkCellRendererClass): add constness. * gtk/gtkcellrenderertoggle.c: more yummy constness. * gtk/gtkclist.c (gtk_clist_set_selection_mode): g_return_if_fail if mode == GTK_SELECTION_NONE
* Fix docs. (#61976)Matthias Clasen2001-10-181-1/+1
| | | | | | | | | * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Fix docs. (#61976) * gtk/gtkplug.c (gtk_plug_get_id) : Fix docs. (#62144) * gtk/gtkliststore.c: Fix docs. (#61672, #61675)
* new function, #61923 (gtk_tree_selection_path_is_selected): DittoJonathan Blandford2001-10-101-0/+65
| | | | | | | | Wed Oct 10 01:19:04 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreeselection.c (gtk_tree_selection_iter_is_selected): new function, #61923 (gtk_tree_selection_path_is_selected): Ditto
* remove unused enumHavoc Pennington2001-10-081-1/+5
| | | | | | | | | | 2001-10-08 Havoc Pennington <hp@pobox.com> * demos/gtk-demo/stock_browser.c: remove unused enum * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node): pass the current selection state of the node in to the user selection func
* only start editing when you select with a keyboard.Jonathan Blandford2001-09-271-1/+1
| | | | | | | | | | | Thu Sep 27 16:46:36 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): only start editing when you select with a keyboard. (gtk_tree_view_button_press_event): much more graceful now. * gtk/gtkstyle.c: Draw togglebutton better.
* Write documentation Write documentationJonathan Blandford2001-09-081-1/+9
| | | | | | | | | Sat Sep 8 14:19:49 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtkliststore.c: Write documentation * gtk/gtktreestore.c: Write documentation Quick Documentation cleanup pass.
* Use the GTK selection types rather than GtkTreeSelectionMode.Jonathan Blandford2001-08-271-28/+27
| | | | | | | | | Mon Aug 27 15:18:14 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Use the GTK selection types rather than GtkTreeSelectionMode. * docs/Changes-2.0: Add comment about selection change.
* Fix selection. I think it's all dandy now. We check the current event forJonathan Blandford2001-08-221-23/+7
| | | | | | | | Wed Aug 22 18:25:46 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreeview.c: Fix selection. I think it's all dandy now. We check the current event for modifiers rather than try to trap all presses.
* Use correct marshaller.Jonathan Blandford2001-08-201-1/+1
| | | | | | | Mon Aug 20 11:39:44 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreeselection.c (gtk_tree_selection_class_init): Use correct marshaller.
* Fix up warnings, #58928.Jonathan Blandford2001-08-191-1/+1
| | | | | | | | | | | | | Sun Aug 19 03:22:59 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtkliststore.c: Fix up warnings, #58928. * gtk/gtktreeselection.h: Change signal prototype, #58647 * gtk/gtktreeview.c (_gdk_tree_view_find_node): Make more robust, #59221. * gtk/gtkstyle.c: Actually prelight arrow, #50981
* const correct string parameter.Tim Janik2001-08-171-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fri Aug 17 17:30:34 2001 Tim Janik <timj@gtk.org> * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): const correct string parameter. * gtk/gtkoptionmenu.c (gtk_option_menu_set_menu): connect to GtkMenuShell::selection_done, now that we have it, instead of ::deactivate so we're not tearing the menu apart and notify the user prematurely. Thu Aug 16 05:22:01 2001 Tim Janik <timj@gtk.org> * gtk/gtkwindow.c (gtk_window_move_resize): if we actually move our window, clear window->need_default_position to avoid infinite loops. some comment fixups and GTK_RESIZE_IMMEDIATE fixups. Wed Aug 15 12:36:55 2001 Tim Janik <timj@gtk.org> * gtk/gtktreeview.c (gtk_tree_view_set_model): move all model setup code into this place. get rid of GTK_TREE_VIEW_MODEL_SETUP usage. (gtk_tree_view_set_property): don't cast possible NULL objects. (gtk_tree_view_destroy): reset the model to NULL. * gtk/gtktreeselection.c (gtk_tree_selection_finalize): chain parent_class handler.
* Remove strict checking for rows.Jonathan Blandford2001-08-131-2/+5
| | | | | | | Mon Aug 13 13:17:32 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreeselection.c (gtk_tree_selection_select_all): (gtk_tree_selection_select_all): Remove strict checking for rows.
* Patch from Matthias Clasen to remove remove all instances ofOwen Taylor2001-07-181-14/+0
| | | | | | | | | Wed Jul 18 19:28:46 2001 Owen Taylor <otaylor@redhat.com> * gtk/*.c: Patch from Matthias Clasen to remove remove all instances of g_return_if_fail (foo != NULL); that are immediately before a g_return_if_fail (GTK_IS_FOO (foo)); since the second check catches the NULL anyways.
* add path argument to selection callbacks.Jonathan Blandford2001-06-291-11/+19
| | | | | | | Fri Jun 29 03:14:16 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach): add path argument to selection callbacks.
* Fix stupid error introduced last night that was making things decidedlyOwen Taylor2001-06-241-2/+19
| | | | | | | | | | | | | | | | | | | | | | | | Sun Jun 24 11:29:35 2001 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkimage-x11.c (gdk_image_new): Fix stupid error introduced last night that was making things decidedly not work. * gtk/*.[ch]: Patch from Kristian Rietveld adding 80 getters so that we have getter/setter pairing everywhere it makes sense. (#55767) * gtk/gtkradiobutton.[ch] gtk/gtktoolbar.c tests/testgtk.: Rename gtk_radio_button_group to gtk_radio_button_get_group, add a deprecated compat macro. (#55516) * gtk/gtklabel.[ch]: Add functions gtk_label_set/get_use_underline(), gtk_label_set/get_use_markup(), gtk_label_set_label(), which mirror the property API for GtkLabel. Make gtk_label_get_attributes() only reflect the attributes set by gtk_label_set_attributes. * gtk/gtknotebook.c (gtk_notebook_set_current_page) gtk/gtkcompat.h: Rename from gtk_notebook_set_page().
* further justify gtk_tree_model_get_flags by adding a second flag for atk.Jonathan Blandford2001-06-121-1/+0
| | | | | | | | | | Tue Jun 12 12:41:27 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreemodel.h (GTK_TREE_MODEL_LIST_ONLY): further justify gtk_tree_model_get_flags by adding a second flag for atk. * gtk/gtktreemodel.c: make cursor behavior interact better with mouse presses.
* Now it's a GObject instead of a GtkObject. TheJonathan Blandford2001-06-071-12/+12
| | | | | | | | | | | | | | Thu Jun 7 18:25:42 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreeselection.c: Now it's a GObject instead of a GtkObject. The GtkTreeSelection::selection_changed signal is now the GtkTreeSelection::changed signal. * gtk/gtktreeview.c: Modified to deal with new GtkTreeSelection object. * tests/gtktree*.c: Modified to deal with new GtkTreeSelection object.
* add missing '}' that got munched by #endif.Jonathan Blandford2001-04-231-2/+2
| | | | | | | | | | | | | | | | | | | Mon Apr 23 18:57:03 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtksocket.c (gtk_socket_filter_func): add missing '}' that got munched by #endif. * gtk/Makefile.am (gtk_plug_c_sources): add missing '\' * gtk/gtktreeview.c: Refactored code to clean up a number of events. * gtk/gtktreemodel.c (gtk_tree_path_compare): Switched return values to make consistent with other functions. Spotted by Jeff Franks <jcf@tpg.com.au>. * gtk/gtktreeview.h (struct _GtkTreeViewClass): Fixes to signal declaration spotted by Jeff Franks <jcf@tpg.com.au>.
* removed set_sort_column, as it was moved to the GtkTreeSortable interface.Jonathan Blandford2001-04-031-0/+7
| | | | | | | | | | Tue Apr 3 15:04:45 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreemodelsort.h: removed set_sort_column, as it was moved to the GtkTreeSortable interface. * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach): Make more efficient (fixes #50262).
* Make select_all not work if you're in SINGLE mode (it doesn't make thatJonathan Blandford2001-03-101-50/+18
| | | | | | | | | | | | | | | | | | | Fri Mar 9 20:36:21 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreeselection.c (gtk_tree_selection_select_all): Make select_all not work if you're in SINGLE mode (it doesn't make that much sense, anyway.) * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value): handle types more sanely. (_gtk_tree_data_list_value_to_node): handle types more sanely. (_gtk_tree_data_list_node_copy): handle types more sanely. * gtk/gtkliststore.c (gtk_list_store_set_cell): fix to work with GValue better. Converts the type as well. * gtk/gtktreestore.c (gtk_tree_store_set_cell): fix to work with GValue better. Converts the type as well.
* Sanitize GtkRowReference.Jonathan Blandford2001-02-281-47/+44
| | | | | | | Wed Feb 28 16:36:46 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreemodel.c (gtk_tree_row_reference_*): Sanitize GtkRowReference.
* Proxy out to _gtk_tree_row_reference_deleted. (inserted_callback): ProxyJonathan Blandford2001-02-281-56/+115
| | | | | | | | | | | | | | | | | | | | | | | | Tue Feb 27 19:32:53 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreemodel.c (deleted_callback): Proxy out to _gtk_tree_row_reference_deleted. (inserted_callback): Proxy out to _gtk_tree_row_reference_inserted. (_gtk_tree_row_reference_new_from_view): Somewhat yukky hack to get around signal emission ordering problem. * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all): fix to work with SINGLE (_gtk_tree_selection_internal_select_node): Major sanitization on selections. SINGLE now seems to work. * tests/Makefile.am: add testtreecolumn.c: * tests/testtreecolumn.c: New test. Mostly points out selection bugs currently, but will test columns later. * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Fix really nasty selection bug. I hate touching this code -- it's scary.
* remove validation idleHavoc Pennington2001-02-081-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-02-08 Havoc Pennington <hp@redhat.com> * gtk/gtktextview.c (gtk_text_view_destroy_layout): remove validation idle * demos/gtk-demo/main.c (create_tree): adjust to changes in text cell renderer * demos/pixbuf-demo.c (timeout): remove deprecated gtk_widget_draw * demos/testpixbuf-save.c (main): remove deprecated gtk_drawing_area_size * gtk/gtktreeview.c (gtk_tree_view_size_allocate): allocate buttons even if the model isn't setup. gtk_tree_view_check_dirty() at the start of the allocation. (gtk_tree_view_check_dirty): handle column->button == NULL, handle unsetup or NULL model. * gtk/gtkstyle.c (gtk_default_draw_flat_box): drawing for the even/odd/sorted cells in the tree view. * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all): bugfixes * gtk/gtktreeview.c: assorted bugfixy stuff. Draw the row backgrounds with draw_flat_box using different detail for even/odd rows. * gtk/gtkrbtree.c, gtkrbtree.h: Keep track of the parity of each row, so we can draw the alternating colors thing * gtk/gtktexttag.c (gtk_text_tag_set_property): if we change a property from a synonym property, notify for the synonym. Also, nuke the background_gdk_set and foreground_gdk_set synonyms (gtk_text_tag_get_property): Always return the font, even if all its fields aren't set * gtk/gtkcellrenderertext.h (struct _GtkCellRendererText): don't store the attr list; it leaves us with no way to change attributes in _render according to the render flags, and no way to implement get_property. Instead store all the specific text attributes. Separate whether an attribute is enabled from its value. Sync all properties with GtkTextTag, make them all consistent, etc. * gtk/gtkcellrenderer.h: Add a flag GTK_CELL_RENDERER_SORTED so renderers can highlight the sort row/column * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_property): use accessor functions to get values; this has the side effect of showing up which accessor functions were missing. Added those. * gtk/gtktreeviewcolumn.h: Replace set_justification with set_alignment, to be consistent with GtkLabel, GtkMisc * gtk/gtktreeviewcolumn.c: Added code to display sort indicator arrow. * gtk/Makefile.am (gtk_public_h_sources): add gtktreesortable.h * gtk/gtktreesortable.h: updates in here
* Fix stupid typo pointed out by Kristian Rietveld <kristian@planet.nl>.Jonathan Blandford2001-01-271-2/+2
| | | | | | | | Sat Jan 27 15:52:02 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreeselection.c (gtk_tree_selection_unselect_iter): Fix stupid typo pointed out by Kristian Rietveld <kristian@planet.nl>. (gtk_tree_selection_select_iter): The same as above.
* add GtkTreeRowReference which holds a handle to a specific row (particularHavoc Pennington2001-01-271-28/+88
| | | | | | | | | | | | 2001-01-26 Havoc Pennington <hp@redhat.com> * gtk/gtktreemodel.c, gtk/gtktreemodel.h: add GtkTreeRowReference which holds a handle to a specific row (particular set of values in the model, i.e. pointer-identity row). * gtk/gtktreeview.c, gtk/gtktreeprivate.h, gtk/gtktreeselection.c: use GtkTreeRowReference for anchor, cursor, and drag_dest_row. Still need to use it for the src/dest row saved on the drag context.
* add thisHavoc Pennington2001-01-041-0/+8
| | | | | | | | | | | | | | | | | | | 2001-01-04 Havoc Pennington <hp@redhat.com> * gtk/gtktreeselection.c (gtk_tree_selection_get_tree_view): add this * gtk/gtktreemodel.h (struct _GtkTreeIter): rename fields to user_data instead of tree_node * gtk/gtktreeprivate.h (TREE_VIEW_COLUMN_WIDTH): rename from TREE_VIEW_COLUMN_SIZE * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): rename "size" field to "width" finishes bug 40061 * gtk/gtkcellrenderer.h: Use GtkCellRendererState instead of guint for bitfields, bug 40268
* Rename some stuff:Havoc Pennington2001-01-041-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-01-04 Havoc Pennington <hp@redhat.com> Rename some stuff: s/gtk_tree_view_column_set_size/gtk_tree_view_column_set_width/g; s/GtkModelSimple/GtkTreeModelSimple/g; s/GTK_MODEL_SIMPLE/GTK_TREE_MODEL_SIMPLE/g; s/gtk_model_simple/gtk_tree_model_simple/g; s/gtkmodelsimple/gtktreemodelsimple/g; s/gtk_tree_view_column_set_header_active/gtk_tree_view_column_set_header_clickable/g; s/GtkTreeViewColumnType/GtkTreeViewColumnSizing/g; s/column_set_col_type/column_set_sizing/g; s/GtkTreeSelectionType/GtkTreeSelectionMode/g; s/gtk_tree_selection_set_type/gtk_tree_selection_set_mode/g; s/GtkCellRendererType/GtkCellRendererState/g; * gtk/gtkcellrenderertoggle.c: remove _ macro, include gtkintl.h (gtk_cell_renderer_toggle_class_init): change "state" property to "active", to match GtkToggleButton (gtk_cell_renderer_toggle_get_active): new function, bug 40269 (gtk_cell_renderer_toggle_set_active): new function (gtk_cell_renderer_toggle_set_property): route changes to toggle state through gtk_cell_renderer_set_active
* Adapt to GtkTreeSelection changesHavoc Pennington2001-01-011-49/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-01-01 Havoc Pennington <hp@redhat.com> * gtk/gtktreeview.c: Adapt to GtkTreeSelection changes * gtk/gtktreeselection.c (_gtk_tree_selection_set_tree_view): don't fill in tree_view->priv->selection, kind of an unexpected side effect * gtk/gtkcellrenderertext.c: Remove definition of _ and include gtkintl.h * gtk/gtkcellrenderer.c: Remove definition of _ and include gtkintl.h (gtk_cell_renderer_get_property): remove calls to g_value_init * gtk/gtkcellrendererpixbuf.c: Remove definition of _ and include gtkintl.h * gtk/gtkcellrenderertextpixbuf.c: Remove definition of _ macro and include gtkintl.h (gtk_cell_renderer_text_pixbuf_class_init): remove spaces from property names * gtk/gtktreeselection.c (_gtk_tree_selection_new): rename, return GtkTreeSelection (_gtk_tree_selection_new_from_with_view): rename, return GtkTreeSelection (_gtk_tree_selection_set_tree_view): rename with uscore (gtk_tree_selection_get_selected): fill in the "model" out param first, so it gets filled in even if we return at the top of the function (gtk_tree_selection_real_select_all): add a comment and an else{} to clarify this a bit (gtk_tree_selection_real_unselect_all): add the same else{} * gtk/gtktreeselection.h: Rename new, new_with_tree_view, and set_tree_view to have underscore prefixes, move them to the private header, fix return type of new_with_tree_view (struct _GtkTreeSelection): mark struct fields private * gtk/gtktreemodel.c (gtk_tree_model_get_flags): return GtkTreeModelFlags, not a guint (gtk_tree_path_prev): return gboolean not gint (gtk_tree_path_up): return gboolean not gint * gtk/gtktreemodel.h (struct _GtkTreeModelIface): make get_flags return GtkTreeModelFlags, not a guint * gtk/gtktreemodelsort.c (gtk_tree_model_sort_finalize): check that child model is non-null before unrefing it (g_value_int_compare_func): make this a qsort compare func, not a boolean predicate * gtk/gtktreemodelsort.h: rename gtk_tree_model_set_sort_column, (add -umn to the end), and mark it unimplemented (gtk_tree_model_sort_resort): remove, this wasn't implemented, and I don't see what it's for - doesn't the model always sort itself? (gtk_tree_model_sort_set_compare): this had the wrong signature * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_attributes): Fix the docs to say that it destructively replaces existing attributes (previously said that it added attributes). (gtk_tree_view_column_set_visible): canonicalize bool before equality testing. Also, check for realization before hiding/showing the tree_column->window; if this window could exist before realization, then it's busted and needs fixing, we can't create GDK resources pre-realization. Also, remove superfluous queue_resize(), since set_size() does that for us. (gtk_tree_view_column_set_col_type): check realization before using tree_column->window * gtk/gtktreedatalist.c: fix filename in copyright notice
* doh, this was broken beyond believe.Tim Janik2000-12-131-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 ;)
* Changed to have the list become non-italic when the demo window isJonathan Blandford2000-11-181-0/+1
| | | | | | | | | | | | | | | | | | | Sat Nov 18 18:00:17 2000 Jonathan Blandford <jrb@redhat.com> * demos/gtk-demo/main.c: Changed to have the list become non-italic when the demo window is destroyed through an external event (like a close button). Doing so found three bugs in the widget. * demos/gtk-demo/*.c (do_*): Changed to return the toplevel window. * gtk/gtkliststore.c (gtk_list_store_set_cell): emit "change" when we actually set the cell. * gtk/gtktreestore.c (gtk_tree_store_set_cell): ditto * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node): free a leaked path. Thanks memprof.
* added more fields to allow more interesting iterators. Also, made theJonathan Blandford2000-11-091-4/+9
| | | | | | | | | | | | | Thu Nov 9 11:23:22 2000 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreemodel.h (struct _GtkTreeIter): added more fields to allow more interesting iterators. Also, made the lifecycle of iterators more explicit. * gtk/gtktreemodelsort.[ch]: New model for sorting. * gtk/gtk-boxed.defs (GtkTreeIter, GtkTreePath): Added two boxed types.
* New function.Jonathan Blandford2000-10-301-2/+2
| | | | | | | | | | | | | | | | | | Mon Oct 30 19:23:50 2000 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreeview.c (gtk_tree_view_expand_row): New function. * gtk/gtktreeview.c (gtk_tree_view_collapse_row): New function. * gtk/gtktreeview.c, gtk/gtktreemodel.c, gtk/gtktreeselection.c gtk/gtktreestore.h, gtk/gtktreeview.h, gtk/gtktreeviewcolumn.c, gtk/gtktreeviewcolumn.h: Fixed inline docs. * docs/reference/gtk/tree_widget.sgml: Proto intro to the tree widget. Needs writing someday. * docs/reference/gtk/tmpl/gtktree*sgml: Added the tree widget to the docs.
* Got rid of GtkTreeNode, and changed it to GtkTreeIter. Added iteratorsJonathan Blandford2000-10-261-39/+52
| | | | | | | | | | | | | | | | | | | | | | | Wed Oct 25 20:40:25 2000 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreemodel.h: Got rid of GtkTreeNode, and changed it to GtkTreeIter. Added iterators everywhere. * gtk/gtktreeviewcolumn.c: Changed to use the iterators. * gtk/gtktreeviewselection.c: Changed to use the iterators. * gtk/gtktreestore.c: Changed to use the iterators. * gtk/gtkliststore.c: Commented out the code. Will convert to iterators tomorrow. * gtk/gtkmodelsimple.c: Commented out the code. Will convert to iterators tomorrow. * gtk/treestoretest.c: Changed to use iterators. * demos/testgtk/main.c: Moved to use the new iterator system.
* urg, removed implementation of gtk_marshal_VOID__INT_INT_INT_INT. ifTim Janik2000-10-251-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Add API documentation to all public functions.Jonathan Blandford2000-10-161-1/+126
| | | | | | | 2000-10-16 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreeselection.c: Add API documentation to all public functions.
* Fix GtkTreeNode *node ->GtkTreeNode node issue.52000-10-151-5/+5
| | | | | | | | | | | 2000-10-15 <jrb@redhat.com> * gtk/gtktreeview.c, gtk/gtktreeview.h, gtk/gtktreestore.h, gtk/gtktreestore.c, gtk/gtkliststore.h, gtk/gtkliststore.c, gtk/gtkmodelsimple.c, gtk/gtkmodelsimple.h, gtk/gtktreedatalist.c, gtk/gtktreemodel.h, gtk/gtktreeselection.c, gtk/gtktreeselection.h: Fix GtkTreeNode *node ->GtkTreeNode node issue.
* Added values other then G_TYPE_STRING. Minor commenting updates. FormatJonathan Blandford2000-10-131-0/+2
| | | | | | | | | 2000-10-12 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreedatalist.[ch] (gtk_tree_data_list_value_to_node): Added values other then G_TYPE_STRING. * gtk/gtktreeselection.c: Minor commenting updates. * gtk/gtktreeview.c: Format updates.
* Replaced with GTK_TREE_SELECTION_OLD to prevent conflict withJonathan Blandford2000-10-061-111/+172
| | | | | | | | | | | 2000-10-05 Jonathan Blandford <jrb@redhat.com> * gtk/gtktree.h (GTK_TREE_SELECTION): Replaced with GTK_TREE_SELECTION_OLD to prevent conflict with gtktreeselection.c * gtk/testgtk.c: s/GTK_TREE_SELECTION/GTK_TREE_SELECTION_OLD/ * gtk/gtktreeselection.[ch]: Replaced "node_selected"/"node_unselected" signal with "selection_changed" signal.
* Checked in initial draft of the new tree widget.42000-10-051-0/+702
2000-10-04 <jrb@redhat.com> * gtk/gtk{tree,cell}?*.[ch]: Checked in initial draft of the new tree widget.