Branch: Tag:

2006-08-03

2006-08-03 16:47:20 by Lance Dillon <riffraff169@yahoo.com>

added new widgets for GTK 2.10
conditionally removed obselete widgets
made changes so inherited widgets get returned properlly

Rev: src/post_modules/GTK2/source/constants.pre:1.5
Rev: src/post_modules/GTK2/source/ginitiallyunowned.pre:1.1
Rev: src/post_modules/GTK2/source/gladexml.pre:1.10
Rev: src/post_modules/GTK2/source/gnomedruid.pre:1.4
Rev: src/post_modules/GTK2/source/gnomedruidpage.pre:1.4
Rev: src/post_modules/GTK2/source/gnomedruidpageedge.pre:1.8
Rev: src/post_modules/GTK2/source/gnomedruidpagestandard.pre:1.8
Rev: src/post_modules/GTK2/source/gtkaboutdialog.pre:1.7
Rev: src/post_modules/GTK2/source/gtkaccellabel.pre:1.5
Rev: src/post_modules/GTK2/source/gtkaction.pre:1.7
Rev: src/post_modules/GTK2/source/gtkactiongroup.pre:1.6
Rev: src/post_modules/GTK2/source/gtkassistant.pre:1.1
Rev: src/post_modules/GTK2/source/gtkbin.pre:1.3
Rev: src/post_modules/GTK2/source/gtkbutton.pre:1.11
Rev: src/post_modules/GTK2/source/gtkcelllayout.pre:1.2
Rev: src/post_modules/GTK2/source/gtkcellrendereraccel.pre:1.1
Rev: src/post_modules/GTK2/source/gtkcellrendererspin.pre:1.1
Rev: src/post_modules/GTK2/source/gtkcellrenderertext.pre:1.5
Rev: src/post_modules/GTK2/source/gtkcellrenderertoggle.pre:1.5
Rev: src/post_modules/GTK2/source/gtkcellview.pre:1.10
Rev: src/post_modules/GTK2/source/gtkclipboard.pre:1.4
Rev: src/post_modules/GTK2/source/gtkcolorbutton.pre:1.9
Rev: src/post_modules/GTK2/source/gtkcombobox.pre:1.7
Rev: src/post_modules/GTK2/source/gtkcontainer.pre:1.5
Rev: src/post_modules/GTK2/source/gtkdialog.pre:1.5
Rev: src/post_modules/GTK2/source/gtkentry.pre:1.8
Rev: src/post_modules/GTK2/source/gtkentrycompletion.pre:1.8
Rev: src/post_modules/GTK2/source/gtkexpander.pre:1.7
Rev: src/post_modules/GTK2/source/gtkfilechooser.pre:1.4
Rev: src/post_modules/GTK2/source/gtkfilechooserbutton.pre:1.8
Rev: src/post_modules/GTK2/source/gtkframe.pre:1.8
Rev: src/post_modules/GTK2/source/gtkiconview.pre:1.6
Rev: src/post_modules/GTK2/source/gtkimage.pre:1.8
Rev: src/post_modules/GTK2/source/gtkimagemenuitem.pre:1.7
Rev: src/post_modules/GTK2/source/gtkinvisible.pre:1.5
Rev: src/post_modules/GTK2/source/gtklabel.pre:1.8
Rev: src/post_modules/GTK2/source/gtklayout.pre:1.6
Rev: src/post_modules/GTK2/source/gtklinkbutton.pre:1.1
Rev: src/post_modules/GTK2/source/gtkliststore.pre:1.14
Rev: src/post_modules/GTK2/source/gtkmenu.pre:1.4
Rev: src/post_modules/GTK2/source/gtkmenuitem.pre:1.8
Rev: src/post_modules/GTK2/source/gtkmenutoolbutton.pre:1.6
Rev: src/post_modules/GTK2/source/gtkmessagedialog.pre:1.3
Rev: src/post_modules/GTK2/source/gtknotebook.pre:1.6
Rev: src/post_modules/GTK2/source/gtkobject.pre:1.3
Rev: src/post_modules/GTK2/source/gtkpagesetup.pre:1.1
Rev: src/post_modules/GTK2/source/gtkpagesetupunixdialog.pre:1.1
Rev: src/post_modules/GTK2/source/gtkpaned.pre:1.3
Rev: src/post_modules/GTK2/source/gtkpapersize.pre:1.1
Rev: src/post_modules/GTK2/source/gtkprintbackend.pre:1.1
Rev: src/post_modules/GTK2/source/gtkprintcontext.pre:1.1
Rev: src/post_modules/GTK2/source/gtkprinter.pre:1.1
Rev: src/post_modules/GTK2/source/gtkprintjob.pre:1.1
Rev: src/post_modules/GTK2/source/gtkprintoperation.pre:1.1
Rev: src/post_modules/GTK2/source/gtkprintoperationpreview.pre:1.1
Rev: src/post_modules/GTK2/source/gtkprintsettings.pre:1.1
Rev: src/post_modules/GTK2/source/gtkprintunixdialog.pre:1.1
Rev: src/post_modules/GTK2/source/gtkradioaction.pre:1.8
Rev: src/post_modules/GTK2/source/gtkradiobutton.pre:1.9
Rev: src/post_modules/GTK2/source/gtkradiomenuitem.pre:1.6
Rev: src/post_modules/GTK2/source/gtkrange.pre:1.3
Rev: src/post_modules/GTK2/source/gtkrecentchooser.pre:1.1
Rev: src/post_modules/GTK2/source/gtkrecentchooserdialog.pre:1.1
Rev: src/post_modules/GTK2/source/gtkrecentchoosermenu.pre:1.1
Rev: src/post_modules/GTK2/source/gtkrecentchooserwidget.pre:1.1
Rev: src/post_modules/GTK2/source/gtkrecentfilter.pre:1.1
Rev: src/post_modules/GTK2/source/gtkrecentmanager.pre:1.1
Rev: src/post_modules/GTK2/source/gtkscale.pre:1.5
Rev: src/post_modules/GTK2/source/gtkscrolledwindow.pre:1.8
Rev: src/post_modules/GTK2/source/gtksettings.pre:1.5
Rev: src/post_modules/GTK2/source/gtksizegroup.pre:1.6
Rev: src/post_modules/GTK2/source/gtkstatusicon.pre:1.1
Rev: src/post_modules/GTK2/source/gtktextattributes.pre:1.6
Rev: src/post_modules/GTK2/source/gtktextbuffer.pre:1.10
Rev: src/post_modules/GTK2/source/gtktextchildanchor.pre:1.4
Rev: src/post_modules/GTK2/source/gtktextiter.pre:1.9
Rev: src/post_modules/GTK2/source/gtktexttagtable.pre:1.3
Rev: src/post_modules/GTK2/source/gtktextview.pre:1.8
Rev: src/post_modules/GTK2/source/gtktoggleaction.pre:1.5
Rev: src/post_modules/GTK2/source/gtktoolbar.pre:1.6
Rev: src/post_modules/GTK2/source/gtktoolbutton.pre:1.6
Rev: src/post_modules/GTK2/source/gtktoolitem.pre:1.5
Rev: src/post_modules/GTK2/source/gtktreedragsource.pre:1.3
Rev: src/post_modules/GTK2/source/gtktreemodel.pre:1.5
Rev: src/post_modules/GTK2/source/gtktreemodelfilter.pre:1.1
Rev: src/post_modules/GTK2/source/gtktreemodelsort.pre:1.1
Rev: src/post_modules/GTK2/source/gtktreeselection.pre:1.8
Rev: src/post_modules/GTK2/source/gtktreesortable.pre:1.3
Rev: src/post_modules/GTK2/source/gtktreestore.pre:1.13
Rev: src/post_modules/GTK2/source/gtktreeview.pre:1.8
Rev: src/post_modules/GTK2/source/gtktreeviewcolumn.pre:1.9
Rev: src/post_modules/GTK2/source/gtkuimanager.pre:1.6
Rev: src/post_modules/GTK2/source/gtkviewport.pre:1.6
Rev: src/post_modules/GTK2/source/gtkwidget.pre:1.12
Rev: src/post_modules/GTK2/source/gtkwindow.pre:1.8

1: + /* -*- C -*- */ + class GTK2.TreeModelSort; + inherit G.Object; + inherit GTK2.TreeModel; + inherit GTK2.TreeDragSource; + inherit GTK2.TreeSortable;    -  + //! Properties: + //! GTK2.TreeModel model +  + void create(GTK2.TreeModel model) + //! Create a new GTK2.TreeModel, with model as the child model. + { +  pgtk2_verify_not_inited(); +  pgtk2_verify_setup(); +  { +  struct object *o1; +  GtkTreeModel *gtm; +  +  get_all_args("create",args,"%o",&o1); +  gtm=gtk_tree_model_sort_new_with_model(GTK_TREE_MODEL(get_gobject(o1))); +  THIS->obj=G_OBJECT(gtm); +  } +  pgtk2_pop_n_elems(args); +  pgtk2__init_this_object(); + } +  + +GTK2.TreeModel get_model(); + //! Return the model this ModelSort is sorting. +  + +GTK2.TreePath convert_child_path_to_path(GTK2.TreePath child_path) + //! Converts child_path to a path relative to this model. That is, + //! child_path points to a path in the child mode. The returned path will + //! point to the same row in the sorted model. + { +  pgtk2_verify_inited(); +  { +  struct object *o1; +  GtkTreePath *gtp; +  +  get_all_args("convert_child_path_to_path",args,"%o",&o1); +  gtp=gtk_tree_model_sort_convert_child_path_to_path( +  GTK_TREE_MODEL_SORT(THIS->obj), +  (GtkTreePath *)get_pg2object(o1,pgtk2_tree_path_program)); +  pgtk2_pop_n_elems(args); +  push_gobjectclass(gtp,pgtk2_tree_path_program); +  } + } +  + +GTK2.TreeIter convert_child_iter_to_iter(GTK2.TreeIter child_iter) + //! Returns an iter pointing to the row in this model that corresponds + //! to the row pointed at by child_iter. + { +  pgtk2_verify_inited(); +  { +  struct object *o1; +  GtkTreeIter *gti,*gt2; +  +  get_all_args("convert_child_iter_to_iter",args,"%o",&o1); +  gt2=g_malloc(sizeof(GtkTreeIter)); +  if (gt2==NULL) +  SIMPLE_OUT_OF_MEMORY_ERROR("convert_child_iter_to_iter",sizeof(GtkTreeIter)); +  gtk_tree_model_sort_convert_child_iter_to_iter( +  GTK_TREE_MODEL_SORT(THIS->obj),gt2, +  (GtkTreeIter *)get_pg2object(o1,pgtk2_tree_iter_program)); +  pgtk2_pop_n_elems(args); +  push_gobjectclass(gt2,pgtk2_tree_iter_program); +  } + } +  + +GTK2.TreePath convert_path_to_child_path(GTK2.TreePath sorted_path) + //! Converts sorted_path to a path on the child model. + { +  pgtk2_verify_inited(); +  { +  struct object *o1; +  GtkTreePath *gtp; +  +  get_all_args("convert_path_to_child_path",args,"%o",&o1); +  gtp=gtk_tree_model_sort_convert_path_to_child_path( +  GTK_TREE_MODEL_SORT(THIS->obj), +  (GtkTreePath *)get_pg2object(o1,pgtk2_tree_path_program)); +  pgtk2_pop_n_elems(args); +  push_gobjectclass(gtp,pgtk2_tree_path_program); +  } + } +  + +GTK2.TreeIter convert_iter_to_child_iter(GTK2.TreeIter sorted_iter) + //! Returns an iter pointing to the row in this model that corresponds + //! to the row pointed at by sorted_iter. + { +  pgtk2_verify_inited(); +  { +  struct object *o1; +  GtkTreeIter *gti,*gt2; +  +  get_all_args("convert_iter_to_child_iter",args,"%o",&o1); +  gt2=g_malloc(sizeof(GtkTreeIter)); +  if (gt2==NULL) +  SIMPLE_OUT_OF_MEMORY_ERROR("convert_iter_to_child_iter",sizeof(GtkTreeIter)); +  gtk_tree_model_sort_convert_iter_to_child_iter( +  GTK_TREE_MODEL_SORT(THIS->obj),gt2, +  (GtkTreeIter *)get_pg2object(o1,pgtk2_tree_iter_program)); +  pgtk2_pop_n_elems(args); +  push_gobjectclass(gt2,pgtk2_tree_iter_program); +  } + } +  + void reset_default_sort_func(); + //! This resets the default sort function to be in the 'unsorted' state. + //! That is, it is in the same order as the child model. It will re-sort the + //! model to be in the same order as the child model only if this model + //! is in 'unsorted' state. +    Newline at end of file added.