52 |
gtk_window_set_icon (GTK_WINDOW (pathselection), pathselection_icon_pixbuf); |
gtk_window_set_icon (GTK_WINDOW (pathselection), pathselection_icon_pixbuf); |
53 |
g_object_unref (pathselection_icon_pixbuf); |
g_object_unref (pathselection_icon_pixbuf); |
54 |
} |
} |
|
gtk_dialog_set_default_response (GTK_DIALOG (pathselection), GTK_RESPONSE_OK); |
|
55 |
|
|
56 |
|
gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (pathselection), |
57 |
|
g_get_home_dir ()); |
58 |
|
gtk_widget_set_sensitive (preferencesdialog, 0); |
59 |
response = gtk_dialog_run (GTK_DIALOG(pathselection)); |
response = gtk_dialog_run (GTK_DIALOG(pathselection)); |
60 |
if (response == GTK_RESPONSE_OK) |
if (response == GTK_RESPONSE_OK) |
61 |
{ |
{ |
65 |
gtk_entry_set_text (GTK_ENTRY (pathentry), selpath); |
gtk_entry_set_text (GTK_ENTRY (pathentry), selpath); |
66 |
g_free (selpath); |
g_free (selpath); |
67 |
} |
} |
68 |
|
gtk_widget_set_sensitive (preferencesdialog, 1); |
69 |
gtk_widget_destroy (pathselection); |
gtk_widget_destroy (pathselection); |
70 |
} |
} |