qulogic/libgnt
Clone
Summary
Browse
Changes
Graph
propagate from branch 'im.pidgin.pidgin' (head c8738b0aa75f71f3931a58845675a6a1147788be)
next.minor
2009-10-03, John Bailey
3f51f669f6fb
propagate from branch 'im.pidgin.pidgin' (head c8738b0aa75f71f3931a58845675a6a1147788be)
to branch 'im.pidgin.pidgin.next.minor' (head a59f1126ff6e241783a75e1d6b23dbfeb5047779)
#include
"gnt.h"
#include
"gntfilesel.h"
static
void
file_selected
(
GntFileSel
*
sel
,
const
char
*
path
,
const
char
*
filename
)
{
g_printerr
(
"%s %s
\n
"
,
path
,
filename
);
}
int
main
()
{
freopen
(
".error"
,
"w"
,
stderr
);
fprintf
(
stdout
,
"
\x1b
]1;
\x07\x1b
]2;TEST
\x07
"
);
gnt_init
();
GntWidget
*
w
=
gnt_file_sel_new
();
gnt_file_sel_set_current_location
(
GNT_FILE_SEL
(
w
),
"/home/"
);
gnt_file_sel_set_dirs_only
(
GNT_FILE_SEL
(
w
),
TRUE
);
gnt_file_sel_set_multi_select
(
GNT_FILE_SEL
(
w
),
TRUE
);
gnt_widget_show
(
w
);
g_signal_connect
(
G_OBJECT
(
w
),
"file_selected"
,
G_CALLBACK
(
file_selected
),
NULL
);
gnt_main
();
gnt_quit
();
return
0
;
}