pike.git / src / post_modules / GTK2 / source / gtkfilechooser.inc

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtkfilechooser.inc:111:   {    pgtk_verify_inited();    {    int res=gtk_file_chooser_get_show_hidden(GTK_FILE_CHOOSER(THIS->obj));    my_pop_n_elems(args);    PGTK_PUSH_INT(res);    }   }   endrequire;    + require gtk28; + void set_do_overwrite_confirmation(int setting); + //! Sets whether a file chooser in GTK2.FILE_CHOOSER_ACTION_SAVE mode will + //! present a confirmation dialog if the users types a file name that already + //! exists. This is FALSE by default. + //! <p> + //! Regardless of this setting, the chooser will emit the "confirm-overwrite" + //! signal when appropriate. + //! <p> + //! If all you need is the stock confirmation dialog, set this property to TRUE. + //! You can override the way confirmation is done by actually handling the + //! "confirm-overwrite" signal. +  + int get_do_overwrite_confirmation(); + //! Queries whether a file chooser is set to confirm for overwriting when the + //! user types a file name that already exists. + endrequire; +    void set_current_name(string filename)   //! Sets current name.   {    pgtk_verify_inited();    {    char *s;    get_all_args("set_current_name",args,"%s",&s);    gtk_file_chooser_set_current_name(GTK_FILE_CHOOSER(THIS->obj),s);    }    RETURN_THIS();
pike.git/src/post_modules/GTK2/source/gtkfilechooser.inc:573:    gtk_file_chooser_remove_shortcut_folder(GTK_FILE_CHOOSER(THIS->obj),    folder,NULL);    }    RETURN_THIS();   }      array(string) list_shortcut_folders()   //! Queries the list of shortcut folders.   {    pgtk_verify_inited(); +  my_pop_n_elems(args);    {    GSList *gsl,*gs2;    int i=0;    gsl=gs2=gtk_file_chooser_list_shortcut_folders(GTK_FILE_CHOOSER(THIS->obj));    while (gs2) {    PGTK_PUSH_GCHAR(gs2->data);    i++;    g_free(gs2->data);    gs2=g_slist_next(gs2);    }
pike.git/src/post_modules/GTK2/source/gtkfilechooser.inc:620:    gtk_file_chooser_remove_shortcut_folder_uri(GTK_FILE_CHOOSER(THIS->obj),    uri,NULL);    }    RETURN_THIS();   }      array(string) list_shortcut_folder_uris()   //! Queries the list of shortcut folders.   {    pgtk_verify_inited(); +  my_pop_n_elems(args);    {    GSList *gsl,*gs2;    int i=0;    gsl=gs2=gtk_file_chooser_list_shortcut_folder_uris(GTK_FILE_CHOOSER(THIS->obj));    while (gs2) {    PGTK_PUSH_GCHAR(gs2->data);    i++;    g_free(gs2->data);    gs2=g_slist_next(gs2);    }    f_aggregate(i);    g_slist_free(gsl);    }   }