LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 06-11-2005, 07:07 AM   #1
froedi
Member
 
Registered: Nov 2003
Location: GER
Distribution: slackware 10.0
Posts: 62

Rep: Reputation: 15
GtkFileChooserDialog: How to select both, files and directories?


hi there!

first of all: I am all new to gtk2 and currently working on my first gui project.

now what I want to do is being able to use a GtkFileChooserDialog in order to select both(!), files and directories.
is this possilbe? if yes - how?
by now, I have only succeeded in selecting either files or directories...

Code:
GtkWidget *chooser;
chooser = gtk_file_chooser_dialog_new ("Add Files",
					NULL,
					GTK_FILE_CHOOSER_ACTION_OPEN, /* or GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER */
					GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
					GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT,
					NULL);
gtk_file_chooser_set_select_multiple (GTK_FILE_CHOOSER (chooser), TRUE);
many thanks in advance


froedi
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CHMOD directories.sub-directories.files zerojosh Linux - Software 2 11-19-2005 03:22 PM
No longer able to select files from my user home directory oily_rags Suse/Novell 4 11-06-2005 01:39 PM
SuSE 9.3-You can only select local files bmk Suse/Novell 8 09-08-2005 05:08 PM
how to rsync ex/include select specific directories ? dtimms Linux - Software 1 01-11-2005 05:16 AM
select files with attributes Quis Linux - General 1 04-03-2003 02:48 AM


All times are GMT -5. The time now is 02:46 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration