|
Lines 391-405
Link Here
|
| 391 |
GtkFilePath *unique_path = NULL; |
391 |
GtkFilePath *unique_path = NULL; |
| 392 |
gboolean valid; |
392 |
gboolean valid; |
| 393 |
|
393 |
|
|
|
394 |
GDK_THREADS_ENTER (); |
| 395 |
|
| 394 |
g_assert (chooser_entry->file_part); |
396 |
g_assert (chooser_entry->file_part); |
| 395 |
|
397 |
|
| 396 |
chooser_entry->check_completion_idle = NULL; |
398 |
chooser_entry->check_completion_idle = NULL; |
| 397 |
|
399 |
|
| 398 |
if (strcmp (chooser_entry->file_part, "") == 0) |
400 |
if (strcmp (chooser_entry->file_part, "") == 0) |
| 399 |
return FALSE; |
401 |
goto done; |
| 400 |
|
402 |
|
| 401 |
if (chooser_entry->completion_store == NULL) |
403 |
if (chooser_entry->completion_store == NULL) |
| 402 |
return FALSE; |
404 |
goto done; |
| 403 |
|
405 |
|
| 404 |
valid = gtk_tree_model_get_iter_first (GTK_TREE_MODEL (chooser_entry->completion_store), |
406 |
valid = gtk_tree_model_get_iter_first (GTK_TREE_MODEL (chooser_entry->completion_store), |
| 405 |
&iter); |
407 |
&iter); |
|
Lines 497-502
Link Here
|
| 497 |
g_free (common_prefix); |
499 |
g_free (common_prefix); |
| 498 |
} |
500 |
} |
| 499 |
|
501 |
|
|
|
502 |
done: |
| 503 |
|
| 504 |
GDK_THREADS_LEAVE (); |
| 505 |
|
| 500 |
return FALSE; |
506 |
return FALSE; |
| 501 |
} |
507 |
} |
| 502 |
|
508 |
|
|
Lines 578-594
Link Here
|
| 578 |
{ |
584 |
{ |
| 579 |
GSList *child_paths = NULL; |
585 |
GSList *child_paths = NULL; |
| 580 |
|
586 |
|
|
|
587 |
GDK_THREADS_ENTER (); |
| 588 |
|
| 581 |
chooser_entry->load_directory_idle = NULL; |
589 |
chooser_entry->load_directory_idle = NULL; |
| 582 |
|
590 |
|
| 583 |
/* guard against bogus settings*/ |
591 |
/* guard against bogus settings*/ |
| 584 |
if (chooser_entry->current_folder_path == NULL || |
592 |
if (chooser_entry->current_folder_path == NULL || |
| 585 |
chooser_entry->file_system == NULL) |
593 |
chooser_entry->file_system == NULL) |
| 586 |
return FALSE; |
594 |
goto done; |
| 587 |
|
595 |
|
| 588 |
if (chooser_entry->current_folder != NULL) |
596 |
if (chooser_entry->current_folder != NULL) |
| 589 |
{ |
597 |
{ |
| 590 |
g_warning ("idle activate multiple times without clearing the folder object first."); |
598 |
g_warning ("idle activate multiple times without clearing the folder object first."); |
| 591 |
return FALSE; |
599 |
goto done; |
| 592 |
} |
600 |
} |
| 593 |
g_assert (chooser_entry->completion_store == NULL); |
601 |
g_assert (chooser_entry->completion_store == NULL); |
| 594 |
|
602 |
|
|
Lines 600-606
Link Here
|
| 600 |
|
608 |
|
| 601 |
/* There is no folder by that name */ |
609 |
/* There is no folder by that name */ |
| 602 |
if (!chooser_entry->current_folder) |
610 |
if (!chooser_entry->current_folder) |
| 603 |
return FALSE; |
611 |
goto done; |
| 604 |
g_signal_connect (chooser_entry->current_folder, "files-added", |
612 |
g_signal_connect (chooser_entry->current_folder, "files-added", |
| 605 |
G_CALLBACK (files_added_cb), chooser_entry); |
613 |
G_CALLBACK (files_added_cb), chooser_entry); |
| 606 |
g_signal_connect (chooser_entry->current_folder, "files-removed", |
614 |
g_signal_connect (chooser_entry->current_folder, "files-removed", |
|
Lines 625-630
Link Here
|
| 625 |
|
633 |
|
| 626 |
gtk_entry_completion_set_model (gtk_entry_get_completion (GTK_ENTRY (chooser_entry)), |
634 |
gtk_entry_completion_set_model (gtk_entry_get_completion (GTK_ENTRY (chooser_entry)), |
| 627 |
GTK_TREE_MODEL (chooser_entry->completion_store)); |
635 |
GTK_TREE_MODEL (chooser_entry->completion_store)); |
|
|
636 |
|
| 637 |
done: |
| 638 |
|
| 639 |
GDK_THREADS_LEAVE (); |
| 640 |
|
| 628 |
return FALSE; |
641 |
return FALSE; |
| 629 |
} |
642 |
} |
| 630 |
|
643 |
|