gtk_file_selection_new
- From: Bryan Christ <bryan christ hp com>
- To: gtk-app-devel-list gnome org
- Subject: gtk_file_selection_new
- Date: Thu, 03 Jun 2004 17:26:53 -0500
I have probably overlooked something obvious. Basically, I am creating
a dialog box which is supposed to prompt the user to select a directory
path using the gtk_file_selection_new(). However, when the "browse"
button is clicked, the application freezes. Any ideas?
Thanks in advance,
Bryan
Code excerpt...
button=gtk_button_new();
g_signal_connect(button,"clicked",G_CALLBACK(select_mount_point),editbox);
while(disk_list)
{
sprintf(text,"A partition was discovered at:
%s",disk_list->partition);
gdk_threads_enter();
gtk_label_set_text(GTK_LABEL(message),text);
gtk_widget_show_all(dialog);
gtk_dialog_run(GTK_DIALOG(dialog));
gtk_dialog_response(GTK_DIALOG(dialog),response);
gdk_threads_leave();
disk_list=disk_list->next;
}
void select_mount_point (GtkWidget *widget,GdkEventButton
*event,gpointer data)
{
GtkWidget *dialog;
gdk_threads_enter();
dialog=gtk_file_selection_new("Specify mount point...");
gtk_widget_show_all(dialog);
gdk_threads_leave();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]