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

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtkrecentmanager.pre:45:   //! Adds a new resource, pointed by uri, into the recently used   //! resources list.      int remove_item(string uri)   //! Removes a resource pointed by uri from the recently used resources list   //! handled by a recent manager.   {    pgtk2_verify_inited();    {    struct pike_string *t; -  GError *error; +  GError *error=NULL;    int res;       get_all_args("remove_item",args,"%T",&t);    ref_push_string(t);    f_string_to_utf8(1);    res=gtk_recent_manager_remove_item(GTK_RECENT_MANAGER(THIS->obj),    CGSTR0(t),&error);    pop_stack();    pgtk2_pop_n_elems(args);    push_int(res);
pike.git/src/post_modules/GTK2/source/gtkrecentmanager.pre:67:   }      mapping lookup_item(string uri)   //! Searches for a URI inside the recently used resources list, and returns   //! a structure containing information about the resource like its MIME type,   //! or its display name.   {    pgtk2_verify_inited();    {    struct pike_string *t; -  GError *error; +  GError *error=NULL;    GtkRecentInfo *gri;       get_all_args("lookup_item",args,"%T",&t);    ref_push_string(t);    f_string_to_utf8(1);    gri=gtk_recent_manager_lookup_item(GTK_RECENT_MANAGER(THIS->obj),    CGSTR0(t),&error);    pop_stack();    pgtk2_pop_n_elems(args);    push_gobjectclass(gri,pgtk2_recent_info_program);
pike.git/src/post_modules/GTK2/source/gtkrecentmanager.pre:91:   int has_item(string uri);   //! Checks whether there is a recently used resource registered with uri   //! inside the recent manager.      int move_item(string uri, string new_uri)   //! Changes the location of a recently used resource from uri to new_uri.   {    pgtk2_verify_inited();    {    struct pike_string *t,*t1; -  GError *error; +  GError *error=NULL;    int res;       get_all_args("move_item",args,"%T%T",&t,&t1);    ref_push_string(t);    f_string_to_utf8(1);    ref_push_string(t1);    f_string_to_utf8(1);    res=gtk_recent_manager_move_item(GTK_RECENT_MANAGER(THIS->obj),    CGSTR0(Pike_sp[-2].u.string),    CGSTR0(Pike_sp[-1].u.string),&error);