pike.git / src / post_modules / GTK2 / source / gtkaboutdialog.pre

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtkaboutdialog.pre:18:   //! string version   //! string website   //! string website-label   //! <p>   //! Style properties:   //! GDK2.Color link-color      void create(?mapping(string:mixed) props)   //! Create a new GTK.AboutDialog.   { -  pgtk_verify_not_inited(); -  pgtk_verify_setup(); +  pgtk2_verify_not_inited(); +  pgtk2_verify_setup();    if (args) {    INIT_WITH_PROPS(GTK_TYPE_ABOUT_DIALOG); -  my_pop_n_elems(args); +  pgtk2_pop_n_elems(args);    } else {    GtkWidget *ga;    ga=gtk_about_dialog_new();    THIS->obj=G_OBJECT(ga);    } -  pgtk__init_this_object(); +  pgtk2__init_this_object();   }      string get_name();   //! Returns the program name.      void set_name(string name);   //! Sets the name to display.      string get_version();   //! Returns the version string.
pike.git/src/post_modules/GTK2/source/gtkaboutdialog.pre:85:   string get_website_label();   //! Returns the label used for the website link.      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); +  pgtk2_verify_inited(); +  pgtk2_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_utf8_to_string(1);    }    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(); +  pgtk2_verify_inited();    {    ONERROR err;    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");       /* Make sure we have space for the strings on the stack. */
pike.git/src/post_modules/GTK2/source/gtkaboutdialog.pre:148:       CALL_AND_UNSET_ONERROR(err);    }    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); +  pgtk2_verify_inited(); +  pgtk2_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_utf8_to_string(1);    }    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(); +  pgtk2_verify_inited();    {    ONERROR err;    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");       /* Make sure we have space for the strings on the stack. */
pike.git/src/post_modules/GTK2/source/gtkaboutdialog.pre:211:       CALL_AND_UNSET_ONERROR(err);    }    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); +  pgtk2_verify_inited(); +  pgtk2_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_utf8_to_string(1);    }    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(); +  pgtk2_verify_inited();    {    ONERROR err;    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");       /* Make sure we have space for the strings on the stack. */
pike.git/src/post_modules/GTK2/source/gtkaboutdialog.pre:291:      string get_logo_icon_name();   //! Returns the icon name.      void set_logo_icon_name(string name);   //! Sets the icon name.      mixed get_property(string property)   //! Get property.   { -  pgtk_verify_inited(); +  pgtk2_verify_inited();    {    struct pike_string *prop;    get_all_args("get_property",args,"%n",&prop);    if (is_same_string(prop,_STR("artists")) ||    is_same_string(prop,_STR("authors")) ||    is_same_string(prop,_STR("documenters"))) {    gchar **a;    int i=0;    g_object_get(G_OBJECT(THIS->obj),prop->str,&a,NULL);    while (a[i])    push_text(a[i]);    f_aggregate(i);    g_strfreev(a);    } else {    char *s=g_strdup(prop->str); -  my_pop_n_elems(args); -  pgtk_get_property(G_OBJECT(THIS->obj),s); +  pgtk2_pop_n_elems(args); +  pgtk2_get_property(G_OBJECT(THIS->obj),s);    g_free(s);    }    }   }      endrequire;