Branch: Tag:

2005-11-03

2005-11-03 13:49:47 by Lance Dillon <riffraff169@yahoo.com>

Updated to latest version 2.17 of the GTK2 module.
Includes gtksourceview, gtkdatabox, and libglade support.

Rev: src/post_modules/GTK2/Makefile.in:1.3
Rev: src/post_modules/GTK2/acconfig.h:1.5
Rev: src/post_modules/GTK2/build_pgtk.pike:1.3
Rev: src/post_modules/GTK2/configure.in:1.11
Rev: src/post_modules/GTK2/options.in:1.3
Rev: src/post_modules/GTK2/pgtk.h:1.5
Rev: src/post_modules/GTK2/source/common_draw.inc:1.2
Rev: src/post_modules/GTK2/source/constants.pre:1.3
Rev: src/post_modules/GTK2/source/encode_truecolor.c:1.2
Rev: src/post_modules/GTK2/source/gdkbitmap.pre:1.2
Rev: src/post_modules/GTK2/source/gdkcolor.pre:1.2
Rev: src/post_modules/GTK2/source/gdkdisplay.pre:1.2
Rev: src/post_modules/GTK2/source/gdkdragcontext.pre:1.2
Rev: src/post_modules/GTK2/source/gdkdrawable.pre:1.2
Rev: src/post_modules/GTK2/source/gdkevent.pre:1.2
Rev: src/post_modules/GTK2/source/gdkgc.pre:1.2
Rev: src/post_modules/GTK2/source/gdkimage.pre:1.2
Rev: src/post_modules/GTK2/source/gdkpixbuf.pre:1.2
Rev: src/post_modules/GTK2/source/gdkpixbufanimation.pre:1.3
Rev: src/post_modules/GTK2/source/gdkpixbufanimationiter.pre:1.3
Rev: src/post_modules/GTK2/source/gdkpixmap.pre:1.2
Rev: src/post_modules/GTK2/source/gdkrectangle.pre:1.2
Rev: src/post_modules/GTK2/source/gdkregion.pre:1.2
Rev: src/post_modules/GTK2/source/gdkwindow.pre:1.2
Rev: src/post_modules/GTK2/source/gladexml.pre:1.2
Rev: src/post_modules/GTK2/source/global.pre:1.2
Rev: src/post_modules/GTK2/source/gnomecanvas.pre:1.2
Rev: src/post_modules/GTK2/source/gnomeclient.pre:1.2
Rev: src/post_modules/GTK2/source/gnomedruidpageedge.pre:1.2
Rev: src/post_modules/GTK2/source/gnomedruidpagestandard.pre:1.2
Rev: src/post_modules/GTK2/source/gobject.pre:1.3
Rev: src/post_modules/GTK2/source/gtkaboutdialog.pre:1.2
Rev: src/post_modules/GTK2/source/gtkaccelgroup.pre:1.2
Rev: src/post_modules/GTK2/source/gtkaccellabel.pre:1.2
Rev: src/post_modules/GTK2/source/gtkaction.pre:1.2
Rev: src/post_modules/GTK2/source/gtkactiongroup.pre:1.2
Rev: src/post_modules/GTK2/source/gtkadjustment.pre:1.2
Rev: src/post_modules/GTK2/source/gtkalignment.pre:1.2
Rev: src/post_modules/GTK2/source/gtkarrow.pre:1.2
Rev: src/post_modules/GTK2/source/gtkaspectframe.pre:1.2
Rev: src/post_modules/GTK2/source/gtkbutton.pre:1.2
Rev: src/post_modules/GTK2/source/gtkcalendar.pre:1.2
Rev: src/post_modules/GTK2/source/gtkcellrenderer.pre:1.3
Rev: src/post_modules/GTK2/source/gtkcellrenderercombo.pre:1.2
Rev: src/post_modules/GTK2/source/gtkcellrendererpixbuf.pre:1.2
Rev: src/post_modules/GTK2/source/gtkcellrendererprogress.pre:1.2
Rev: src/post_modules/GTK2/source/gtkcellrenderertext.pre:1.2
Rev: src/post_modules/GTK2/source/gtkcellrenderertoggle.pre:1.2
Rev: src/post_modules/GTK2/source/gtkcellview.pre:1.2
Rev: src/post_modules/GTK2/source/gtkcheckbutton.pre:1.2
Rev: src/post_modules/GTK2/source/gtkcheckmenuitem.pre:1.2
Rev: src/post_modules/GTK2/source/gtkcolorbutton.pre:1.2
Rev: src/post_modules/GTK2/source/gtkcolorselection.pre:1.2
Rev: src/post_modules/GTK2/source/gtkcolorselectiondialog.pre:1.2
Rev: src/post_modules/GTK2/source/gtkcombobox.pre:1.2
Rev: src/post_modules/GTK2/source/gtkcomboboxentry.pre:1.2
Rev: src/post_modules/GTK2/source/gtkcontainer.pre:1.2
Rev: src/post_modules/GTK2/source/gtkdialog.pre:1.2
Rev: src/post_modules/GTK2/source/gtkdrawingarea.pre:1.2
Rev: src/post_modules/GTK2/source/gtkeditable.inc:1.2
Rev: src/post_modules/GTK2/source/gtkentry.pre:1.2
Rev: src/post_modules/GTK2/source/gtkentrycompletion.pre:1.2
Rev: src/post_modules/GTK2/source/gtkeventbox.pre:1.2
Rev: src/post_modules/GTK2/source/gtkexpander.pre:1.2
Rev: src/post_modules/GTK2/source/gtkfilechooser.inc:1.2
Rev: src/post_modules/GTK2/source/gtkfilechooserbutton.pre:1.2
Rev: src/post_modules/GTK2/source/gtkfilechooserdialog.pre:1.2
Rev: src/post_modules/GTK2/source/gtkfilechooserwidget.pre:1.2
Rev: src/post_modules/GTK2/source/gtkfileselection.pre:1.2
Rev: src/post_modules/GTK2/source/gtkfixed.pre:1.2
Rev: src/post_modules/GTK2/source/gtkfontbutton.pre:1.2
Rev: src/post_modules/GTK2/source/gtkfontselection.pre:1.2
Rev: src/post_modules/GTK2/source/gtkfontselectiondialog.pre:1.2
Rev: src/post_modules/GTK2/source/gtkframe.pre:1.2
Rev: src/post_modules/GTK2/source/gtkhandlebox.pre:1.2
Rev: src/post_modules/GTK2/source/gtkhbox.pre:1.2
Rev: src/post_modules/GTK2/source/gtkhbuttonbox.pre:1.2
Rev: src/post_modules/GTK2/source/gtkhpaned.pre:1.2
Rev: src/post_modules/GTK2/source/gtkhscale.pre:1.2
Rev: src/post_modules/GTK2/source/gtkhscrollbar.pre:1.2
Rev: src/post_modules/GTK2/source/gtkhseparator.pre:1.2
Rev: src/post_modules/GTK2/source/gtkiconfactory.pre:1.2
Rev: src/post_modules/GTK2/source/gtkiconinfo.pre:1.2
Rev: src/post_modules/GTK2/source/gtkiconset.pre:1.2
Rev: src/post_modules/GTK2/source/gtkiconsize.pre:1.2
Rev: src/post_modules/GTK2/source/gtkiconsource.pre:1.2
Rev: src/post_modules/GTK2/source/gtkicontheme.pre:1.2
Rev: src/post_modules/GTK2/source/gtkiconview.pre:1.2
Rev: src/post_modules/GTK2/source/gtkimage.pre:1.2
Rev: src/post_modules/GTK2/source/gtkimagemenuitem.pre:1.2
Rev: src/post_modules/GTK2/source/gtkinvisible.pre:1.2
Rev: src/post_modules/GTK2/source/gtklabel.pre:1.2
Rev: src/post_modules/GTK2/source/gtklayout.pre:1.2
Rev: src/post_modules/GTK2/source/gtkliststore.pre:1.2
Rev: src/post_modules/GTK2/source/gtkmenu.pre:1.2
Rev: src/post_modules/GTK2/source/gtkmenubar.pre:1.2
Rev: src/post_modules/GTK2/source/gtkmenuitem.pre:1.2
Rev: src/post_modules/GTK2/source/gtkmenushell.pre:1.2
Rev: src/post_modules/GTK2/source/gtkmenutoolbutton.pre:1.2
Rev: src/post_modules/GTK2/source/gtkmisc.pre:1.2
Rev: src/post_modules/GTK2/source/gtknotebook.pre:1.2
Rev: src/post_modules/GTK2/source/gtkplug.pre:1.2
Rev: src/post_modules/GTK2/source/gtkprogressbar.pre:1.2
Rev: src/post_modules/GTK2/source/gtkradioaction.pre:1.2
Rev: src/post_modules/GTK2/source/gtkradiobutton.pre:1.2
Rev: src/post_modules/GTK2/source/gtkradiomenuitem.pre:1.2
Rev: src/post_modules/GTK2/source/gtkradiotoolbutton.pre:1.2
Rev: src/post_modules/GTK2/source/gtkscrolledwindow.pre:1.2
Rev: src/post_modules/GTK2/source/gtkseparatormenuitem.pre:1.2
Rev: src/post_modules/GTK2/source/gtkseparatortoolitem.pre:1.2
Rev: src/post_modules/GTK2/source/gtksettings.pre:1.2
Rev: src/post_modules/GTK2/source/gtksizegroup.pre:1.2
Rev: src/post_modules/GTK2/source/gtksocket.pre:1.2
Rev: src/post_modules/GTK2/source/gtkspinbutton.pre:1.2
Rev: src/post_modules/GTK2/source/gtkstatusbar.pre:1.2
Rev: src/post_modules/GTK2/source/gtktable.pre:1.2
Rev: src/post_modules/GTK2/source/gtktearoffmenuitem.pre:1.2
Rev: src/post_modules/GTK2/source/gtktextattributes.pre:1.2
Rev: src/post_modules/GTK2/source/gtktextbuffer.pre:1.2
Rev: src/post_modules/GTK2/source/gtktextiter.pre:1.2
Rev: src/post_modules/GTK2/source/gtktextmark.pre:1.2
Rev: src/post_modules/GTK2/source/gtktexttag.pre:1.2
Rev: src/post_modules/GTK2/source/gtktextview.pre:1.2
Rev: src/post_modules/GTK2/source/gtktoggleaction.pre:1.2
Rev: src/post_modules/GTK2/source/gtktogglebutton.pre:1.2
Rev: src/post_modules/GTK2/source/gtktoggletoolbutton.pre:1.2
Rev: src/post_modules/GTK2/source/gtktoolbar.pre:1.2
Rev: src/post_modules/GTK2/source/gtktoolbutton.pre:1.2
Rev: src/post_modules/GTK2/source/gtktoolitem.pre:1.2
Rev: src/post_modules/GTK2/source/gtktreeiter.pre:1.2
Rev: src/post_modules/GTK2/source/gtktreemodel.inc:1.2
Rev: src/post_modules/GTK2/source/gtktreepath.pre:1.2
Rev: src/post_modules/GTK2/source/gtktreerowreference.pre:1.2
Rev: src/post_modules/GTK2/source/gtktreeselection.pre:1.5
Rev: src/post_modules/GTK2/source/gtktreesortable.inc:1.2
Rev: src/post_modules/GTK2/source/gtktreestore.pre:1.2
Rev: src/post_modules/GTK2/source/gtktreeview.pre:1.2
Rev: src/post_modules/GTK2/source/gtktreeviewcolumn.pre:1.2
Rev: src/post_modules/GTK2/source/gtkuimanager.pre:1.2
Rev: src/post_modules/GTK2/source/gtkvbox.pre:1.2
Rev: src/post_modules/GTK2/source/gtkvbuttonbox.pre:1.2
Rev: src/post_modules/GTK2/source/gtkviewport.pre:1.2
Rev: src/post_modules/GTK2/source/gtkvpaned.pre:1.2
Rev: src/post_modules/GTK2/source/gtkvscale.pre:1.2
Rev: src/post_modules/GTK2/source/gtkvscrollbar.pre:1.2
Rev: src/post_modules/GTK2/source/gtkvseparator.pre:1.2
Rev: src/post_modules/GTK2/source/gtkwidget.pre:1.2
Rev: src/post_modules/GTK2/source/gtkwindow.pre:1.2
Rev: src/post_modules/GTK2/source/pangoattrlist.pre:1.2
Rev: src/post_modules/GTK2/source/pangocontext.pre:1.2
Rev: src/post_modules/GTK2/source/pangofontdescription.pre:1.2
Rev: src/post_modules/GTK2/source/pangolayout.pre:1.2
Rev: src/post_modules/GTK2/source/pangolayoutiter.pre:1.2
Rev: src/post_modules/GTK2/source/pangolayoutline.pre:1.2
Rev: src/post_modules/GTK2/source/support.c:1.2

4:   inherit GTK2.Dialog;      //! Properties: + //! array(string) artists + //! array(string) authors   //! string comments   //! string copyright -  + //! array(string) documenters   //! string license   //! GDK2.Pixbuf logo   //! string logo-icon-name
18:   //! Style properties:   //! GDK2.Color link-color    - void create(); + void create(?mapping(string:mixed) props)   //! Create a new GTK.AboutDialog. -  + { +  pgtk_verify_not_inited(); +  pgtk_verify_setup(); +  if (args) { +  INIT_WITH_PROPS(GTK_TYPE_ABOUT_DIALOG); +  my_pop_n_elems(args); +  } else { +  GtkWidget *ga; +  ga=gtk_about_dialog_new(); +  THIS->obj=G_OBJECT(ga); +  } +  pgtk__init_this_object(); + }      string get_name();   //! Returns the program name.
51:   void set_license(string license);   //! Sets the license information.    + require gtk28; + int get_wrap_license(); + //! Returns whether the license text is automatically wrapped. +  + void set_wrap_license(int setting); + //! Sets whether the license text is automatically wrapped. + endrequire; +    string get_website();   //! Returns the website URL.   
63:   void set_website_label(string label);   //! Sets the label used for the website link. Defaults to the website URL.    + array(string) get_authors() + //! Returns the strings which are displayed in the authors tab of the + //! secondary credits dialog. + { +  pgtk_verify_inited(); +  my_pop_n_elems(args); +  { +  const gchar * const *auth; +  int i=0; +  auth=gtk_about_dialog_get_authors(GTK_ABOUT_DIALOG(THIS->obj)); +  while (auth[i]) +  push_text(auth[i++]); +  f_aggregate(i); +  } + } +  + void set_authors(array(string) auth) + //! Sets the strings which are displayed in the authors tab of the secondary + //! credits dialog. + { +  pgtk_verify_inited(); +  { +  struct array *a; +  int i,j; +  const gchar **auth; +  get_all_args("set_authors",args,"%A",&a); +  if (a==NULL) +  Pike_error("Invalid array.\n"); +  auth=xmalloc(sizeof(gchar *)*(a->size+1)); +  for (i=j=0; i<a->size; i++) { +  if ((ITEM(a)+i)->type==PIKE_T_STRING) { +  auth[j]=xmalloc(sizeof(gchar)*(strlen(STR0((ITEM(a)+i)->u.string))+1)); +  strcpy(auth[j++],STR0((ITEM(a)+i)->u.string)); +  } +  } +  auth[j]=NULL; +  gtk_about_dialog_set_authors(GTK_ABOUT_DIALOG(THIS->obj),auth); +  for (i=0; i<=j; i++) +  xfree(auth[i]); +  xfree(auth); +  } +  RETURN_THIS(); + } +  + array(string) get_artists() + //! Returns the strings which are displayed in the artists tab of the + //! secondary credits dialog. + { +  pgtk_verify_inited(); +  my_pop_n_elems(args); +  { +  const gchar * const *art; +  int i=0; +  art=gtk_about_dialog_get_artists(GTK_ABOUT_DIALOG(THIS->obj)); +  while (art[i]) +  push_text(art[i++]); +  f_aggregate(i); +  } + } +  + void set_artists(array(string) art) + //! Sets the strings which are displayed in the artists tab of the secondary + //! credits dialog. + { +  pgtk_verify_inited(); +  { +  struct array *a; +  int i,j; +  const gchar **art; +  get_all_args("set_artists",args,"%A",&a); +  if (a==NULL) +  Pike_error("Invalid array.\n"); +  art=xmalloc(sizeof(gchar *)*(a->size+1)); +  for (i=j=0; i<a->size; i++) { +  if ((ITEM(a)+i)->type==PIKE_T_STRING) { +  art[j]=xmalloc(sizeof(gchar)*(strlen(STR0((ITEM(a)+i)->u.string))+1)); +  strcpy(art[j++],STR0((ITEM(a)+i)->u.string)); +  } +  } +  art[j]=NULL; +  gtk_about_dialog_set_artists(GTK_ABOUT_DIALOG(THIS->obj),art); +  for (i=0; i<=j; i++) +  xfree(art[i]); +  xfree(art); +  } +  RETURN_THIS(); + } +  + array(string) get_documenters() + //! Returns the strings which are displayed in the documenters tab of the + //! secondary credits dialog. + { +  pgtk_verify_inited(); +  my_pop_n_elems(args); +  { +  const gchar * const *doc; +  int i=0; +  doc=gtk_about_dialog_get_documenters(GTK_ABOUT_DIALOG(THIS->obj)); +  while (doc[i]) +  push_text(doc[i++]); +  f_aggregate(i); +  } + } +  + void set_documenters(array(string) doc) + //! Sets the strings which are displayed in the documenters tab of the + //! secondary credits dialog. + { +  pgtk_verify_inited(); +  { +  struct array *a; +  int i,j; +  const gchar **doc; +  get_all_args("set_documenters",args,"%A",&a); +  if (a==NULL) +  Pike_error("Invalid array.\n"); +  doc=xmalloc(sizeof(gchar *)*(a->size+1)); +  for (i=j=0; i<a->size; i++) { +  if ((ITEM(a)+i)->type==PIKE_T_STRING) { +  doc[j]=xmalloc(sizeof(gchar)*(strlen(STR0((ITEM(a)+i)->u.string))+1)); +  strcpy(doc[j++],STR0((ITEM(a)+i)->u.string)); +  } +  } +  doc[j]=NULL; +  gtk_about_dialog_set_artists(GTK_ABOUT_DIALOG(THIS->obj),doc); +  for (i=0; i<=j; i++) +  xfree(doc[i]); +  xfree(doc); +  } +  RETURN_THIS(); + } +    string get_translator_credits();   //! Returns the translator credis.   
81:   void set_logo_icon_name(string name);   //! Sets the icon name.    + mixed get_property(string property) + //! Get property. + { +  pgtk_verify_inited(); +  { +  char *prop; +  get_all_args("get_property",args,"%s",&prop); +  if (!strcmp(prop,"artists") || !strcmp(prop,"authors") || +  !strcmp(prop,"documenters")) { +  gchar **a; +  int i=0; +  g_object_get(G_OBJECT(THIS->obj),prop,&a,NULL); +  while (a[i]) +  push_text(a[i]); +  f_aggregate(i); +  g_strfreev(a); +  } else { +  char *s=g_strdup(prop); +  my_pop_n_elems(args); +  pgtk_get_property(G_OBJECT(THIS->obj),s); +  g_free(s); +  } +  } + } +    endrequire;