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

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtkcombobox.pre:31:   //! int instead, it will create a new W(ComboBox) with only text strings.   //! If you do so, you should only manipulate it with the following functions:   //! append_text(), insert_text(), prepend_text(), and remove_text().   {    pgtk2_verify_not_inited();    pgtk2_verify_setup();    if (args) {    GtkWidget *gcb;    if (TYPEOF(Pike_sp[-args]) == PIKE_T_STRING) {    char *text; -  get_all_args("create",args,"%s",&text); +  get_all_args(NULL,args,"%s",&text);    gcb=gtk_combo_box_new_text();    THIS->obj=G_OBJECT(gcb);    } else if (TYPEOF(Pike_sp[-args]) == PIKE_T_OBJECT) {    struct object *o1; -  get_all_args("create",args,"%o",&o1); +  get_all_args(NULL,args,"%o",&o1);    gcb=gtk_combo_box_new_with_model(GTK_TREE_MODEL(get_gobject(o1)));    THIS->obj=G_OBJECT(gcb);    } else {    INIT_WITH_PROPS(GTK_TYPE_COMBO_BOX);    }    pgtk2_pop_n_elems(args);    } else {    GtkWidget *gcb;    gcb=gtk_combo_box_new();    THIS->obj=G_OBJECT(gcb);
pike.git/src/post_modules/GTK2/source/gtkcombobox.pre:119:    }   }      void set_active_iter(GTK2.TreeIter iter)   //! Sets the current active item to be the one referenced by iter.   //! iter must correspond to a path of depth one.   {    pgtk2_verify_inited();    {    struct object *o1; -  get_all_args("set_active_iter",args,"%o",&o1); +  get_all_args(NULL,args,"%o",&o1);    gtk_combo_box_set_active_iter(GTK_COMBO_BOX(THIS->obj),    (GtkTreeIter *)get_pg2object(o1,pgtk2_tree_iter_program));    pgtk2_pop_n_elems(args);    }    RETURN_THIS();   }      +GTK2.TreeModel get_model()   //! Get the GTK2.TreeModel which is acting as a data source.   {
pike.git/src/post_modules/GTK2/source/gtkcombobox.pre:209:   //! Sets the row separator function, which is used to determine whether a   //! row should be drawn as a separator. If the row separator function is 0   //! no separators are drawn. This is the default value.      {    pgtk2_verify_inited();    {    struct svalue *sv1,*sv2;    struct signal_data *sd;    -  get_all_args("set_row_separator_func",args,"%*%*",&sv1,&sv2); +  get_all_args(NULL,args,"%*%*",&sv1,&sv2);    sd=(struct signal_data *)g_malloc(sizeof(struct signal_data));    if (sd==NULL)    SIMPLE_OUT_OF_MEMORY_ERROR("set_row_separator_func",sizeof(struct signal_data)   );    assign_svalue_no_free(&sd->cb,sv1);    assign_svalue_no_free(&sd->args,sv2);    gtk_combo_box_set_row_separator_func(GTK_COMBO_BOX(THIS->obj),    (GtkTreeViewRowSeparatorFunc)pgtk2_tree_view_row_separator_func,    sd,(GtkDestroyNotify)pgtk2_free_signal_data);    }