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

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtkaboutdialog.pre:127:    SET_ONERROR(err, free, auth);       for (i=j=0; i<a->size; i++) {    if (ITEM(a)[i].type == PIKE_T_STRING) {    ref_push_string(ITEM(a)[i].u.string);    f_string_to_utf8(1);   #ifdef PIKE_DEBUG    if ((Pike_sp[-1].type != PIKE_T_STRING) ||    (Pike_sp[-1].u.string->size_shift)) {    Pike_fatal("Unexpected result from string_to_utf8: %s\n", -  get_name_of_type(Pike_sp[-1].u.type)); +  get_name_of_type(Pike_sp[-1].type));    }   #endif /* PIKE_DEBUG */    auth[j++] = Pike_sp[-1].u.string->str;    }    }    auth[j]=NULL;       gtk_about_dialog_set_authors(GTK_ABOUT_DIALOG(THIS->obj),auth);       pop_n_elems(j);
pike.git/src/post_modules/GTK2/source/gtkaboutdialog.pre:190:    SET_ONERROR(err, free, art);       for (i=j=0; i<a->size; i++) {    if (ITEM(a)[i].type == PIKE_T_STRING) {    ref_push_string(ITEM(a)[i].u.string);    f_string_to_utf8(1);   #ifdef PIKE_DEBUG    if ((Pike_sp[-1].type != PIKE_T_STRING) ||    (Pike_sp[-1].u.string->size_shift)) {    Pike_fatal("Unexpected result from string_to_utf8: %s\n", -  get_name_of_type(Pike_sp[-1].u.type)); +  get_name_of_type(Pike_sp[-1].type));    }   #endif /* PIKE_DEBUG */    art[j++] = Pike_sp[-1].u.string->str;    }    }    art[j]=NULL;       gtk_about_dialog_set_artists(GTK_ABOUT_DIALOG(THIS->obj),art);       pop_n_elems(j);
pike.git/src/post_modules/GTK2/source/gtkaboutdialog.pre:253:    SET_ONERROR(err, free, doc);       for (i=j=0; i<a->size; i++) {    if (ITEM(a)[i].type == PIKE_T_STRING) {    ref_push_string(ITEM(a)[i].u.string);    f_string_to_utf8(1);   #ifdef PIKE_DEBUG    if ((Pike_sp[-1].type != PIKE_T_STRING) ||    (Pike_sp[-1].u.string->size_shift)) {    Pike_fatal("Unexpected result from string_to_utf8: %s\n", -  get_name_of_type(Pike_sp[-1].u.type)); +  get_name_of_type(Pike_sp[-1].type));    }   #endif /* PIKE_DEBUG */    doc[j++] = Pike_sp[-1].u.string->str;    }    }    doc[j]=NULL;       gtk_about_dialog_set_artists(GTK_ABOUT_DIALOG(THIS->obj),doc);       pop_n_elems(j);
pike.git/src/post_modules/GTK2/source/gtkaboutdialog.pre:293:   //! 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();    { -  char *prop; -  get_all_args("get_property",args,"%s",&prop); -  if (!strcmp(prop,"artists") || !strcmp(prop,"authors") || -  !strcmp(prop,"documenters")) { +  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,&a,NULL); +  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); +  char *s=g_strdup(prop->str);    my_pop_n_elems(args);    pgtk_get_property(G_OBJECT(THIS->obj),s);    g_free(s);    }    }   }      endrequire;