list widget for GTK+



I think you are looking for GtkFileSelection widget.
Here is the sample code to select a file.

........... call back function .........
void file_ok_sel( GtkWidget        *w,
                  GtkFileSelection *fs )
{
    g_print ("%s\n", gtk_file_selection_get_filename
(GTK_FILE_SELECTION (fs)));
}


........... part of main .......

    GtkWidget *filew;
    
    filew = gtk_file_selection_new ("File selection");
    gtk_signal_connect (GTK_OBJECT (GTK_FILE_SELECTION
(filew)->ok_button),
			"clicked", (GtkSignalFunc) file_ok_sel, filew );
.................................

From: Murray Cumming Comneon com
To: kingpepe gmx net, gtk-list gnome org
Subject: RE: list-widget for gtk+
Date: Wed, 25 Jun 2003 10:48:15 +0200

> From: kingpepe gmx net [mailto:kingpepe gmx net] 
> Hi!
> I'm searching for a list-widget for gtk+ (c++),

You probably want gtkmm for C++.

> like windows 
> uses it to list
> up files in a file manager in detail mode. Can
anyone help me??

You probably want Gtk::TreeView:
http://www.gtkmm.org/gtkmm2/docs/tutorial/html/ch08.html


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]