Branch: Tag:

2018-08-05

2018-08-05 13:00:00 by Martin Nilsson <nilsson@fastmail.com>

Avoid sending function name to get_all_args, GTK2 edition.

17:    struct object *o1;    GtkTreeModel *gtm;    -  get_all_args("create",args,"%o",&o1); +  get_all_args(NULL,args,"%o",&o1);    gtm=gtk_tree_model_sort_new_with_model(GTK_TREE_MODEL(get_gobject(o1)));    THIS->obj=G_OBJECT(gtm);    }
38:    struct object *o1;    GtkTreePath *gtp;    -  get_all_args("convert_child_path_to_path",args,"%o",&o1); +  get_all_args(NULL,args,"%o",&o1);    gtp=gtk_tree_model_sort_convert_child_path_to_path(    GTK_TREE_MODEL_SORT(THIS->obj),    (GtkTreePath *)get_pg2object(o1,pgtk2_tree_path_program));
56:    struct object *o1;    GtkTreeIter *gti,*gt2;    -  get_all_args("convert_child_iter_to_iter",args,"%o",&o1); +  get_all_args(NULL,args,"%o",&o1);    gt2=g_malloc(sizeof(GtkTreeIter));    if (gt2==NULL)    SIMPLE_OUT_OF_MEMORY_ERROR("convert_child_iter_to_iter",sizeof(GtkTreeIter));
76:    struct object *o1;    GtkTreePath *gtp;    -  get_all_args("convert_path_to_child_path",args,"%o",&o1); +  get_all_args(NULL,args,"%o",&o1);    gtp=gtk_tree_model_sort_convert_path_to_child_path(    GTK_TREE_MODEL_SORT(THIS->obj),    (GtkTreePath *)get_pg2object(o1,pgtk2_tree_path_program));
94:    struct object *o1;    GtkTreeIter *gti,*gt2;    -  get_all_args("convert_iter_to_child_iter",args,"%o",&o1); +  get_all_args(NULL,args,"%o",&o1);    gt2=g_malloc(sizeof(GtkTreeIter));    if (gt2==NULL)    SIMPLE_OUT_OF_MEMORY_ERROR("convert_iter_to_child_iter",sizeof(GtkTreeIter));