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: + require gtk210; + /* -*- C -*- */ + class GTK2.RecentManager; + inherit G.Object;    -  + void create(mapping(string:mixed)|int|GDK2.Screen void props_or_def) + //! Create a new GTK2.RecentManager. + { +  pgtk2_verify_not_inited(); +  pgtk2_verify_setup(); +  if (args) { +  if (Pike_sp[-args].type==PIKE_T_MAPPING) +  INIT_WITH_PROPS(GTK_TYPE_RECENT_MANAGER); +  else { +  INT_TYPE def; +  GtkRecentManager *grm; +  struct object *o1; +  +  if (Pike_sp[-args].type==PIKE_T_INT) { +  get_all_args("create",args,"%i",&def); +  if (def) +  grm=gtk_recent_manager_get_default(); +  else +  grm=gtk_recent_manager_new(); +  } else { +  get_all_args("create",args,"%o",&o1); +  grm=gtk_recent_manager_get_for_screen(GDK_SCREEN(get_gobject(o1))); +  } +  THIS->obj=G_OBJECT(grm); +  } +  pgtk2_pop_n_elems(args); +  } else { +  GtkRecentManager *ga; +  ga=gtk_recent_manager_new(); +  THIS->obj=G_OBJECT(ga); +  } +  pgtk2__init_this_object(); + } +  + /* + void set_screen(GDK2.Screen screen); + //! Sets the screen for a recent manager; the screen is used to track the + //! user's currently configured recently used documents storage. + */ +  + int add_item(string uri); + //! Adds a new resource, pointed by uri, into the recently used + //! resources list. +  + int remove_item(string uri) + //! Removes a resource pointed by uri from the recently used resources list + //! handled by a recent manager. + { +  pgtk2_verify_inited(); +  { +  struct pike_string *t; +  GError *error; +  int res; +  +  get_all_args("remove_item",args,"%T",&t); +  ref_push_string(t); +  f_string_to_utf8(1); +  res=gtk_recent_manager_remove_item(GTK_RECENT_MANAGER(THIS->obj), +  CGSTR0(t),&error); +  pop_stack(); +  pgtk2_pop_n_elems(args); +  push_int(res); +  } + } +  + mapping lookup_item(string uri) + //! Searches for a URI inside the recently used resources list, and returns + //! a structure containing information about the resource like its MIME type, + //! or its display name. + { +  pgtk2_verify_inited(); +  { +  struct pike_string *t; +  GError *error; +  GtkRecentInfo *gri; +  +  get_all_args("lookup_item",args,"%T",&t); +  ref_push_string(t); +  f_string_to_utf8(1); +  gri=gtk_recent_manager_lookup_item(GTK_RECENT_MANAGER(THIS->obj), +  CGSTR0(t),&error); +  pop_stack(); +  pgtk2_pop_n_elems(args); +  push_gobjectclass(gri,pgtk2_recent_info_program); +  } + } +  + int has_item(string uri); + //! Checks whether there is a recently used resource registered with uri + //! inside the recent manager. +  + int move_item(string uri, string new_uri) + //! Changes the location of a recently used resource from uri to new_uri. + { +  pgtk2_verify_inited(); +  { +  struct pike_string *t,*t1; +  GError *error; +  int res; +  +  get_all_args("move_item",args,"%T%T",&t,&t1); +  ref_push_string(t); +  f_string_to_utf8(1); +  ref_push_string(t1); +  f_string_to_utf8(1); +  res=gtk_recent_manager_move_item(GTK_RECENT_MANAGER(THIS->obj), +  CGSTR0(Pike_sp[-2].u.string), +  CGSTR0(Pike_sp[-1].u.string),&error); +  pgtk2_pop_n_elems(2); +  pgtk2_pop_n_elems(args); +  push_int(res); +  } + } +  + int get_limit(); + //! Gets the maximum number of items that the get_items() function + //! should return. +  + void set_limit(int limit); + //! Sets the maximum number of item that the get_items() function should + //! return. If limit is set to -1, then return all the items. +  + array get_items() + //! Gets the list of recently used resources. + { +  pgtk2_verify_inited(); +  pgtk2_pop_n_elems(args); +  { +  GList *gl,*g1; +  int i; +  +  gl=g1=gtk_recent_manager_get_items(GTK_RECENT_MANAGER(THIS->obj)); +  i=0; +  while (g1) { +  push_gobjectclass(g1->data,pgtk2_recent_info_program); +  i++; +  g1=g_list_next(g1); +  } +  if (gl) { +  f_aggregate(i); +  g_list_free(gl); +  } else +  push_int(0); +  } + } +  + int purge_items(null); + //! Purges every item from the recently used resources list. + endrequire;   Newline at end of file added.