I#2773 - Unable to drag'n'drop attachments between attachment bars
Replace leftover usages of gtk_main_iteration(), which should not be
used since move away from gtk_main() in commit 21c3e2346b .
Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/2773
This commit is contained in:
@ -1978,8 +1978,7 @@ e_attachment_view_drag_data_get (EAttachmentView *view,
|
||||
/* We can't return until we have results, so crank
|
||||
* the main loop until the callback gets triggered. */
|
||||
while (!status.done)
|
||||
if (gtk_main_iteration ())
|
||||
break;
|
||||
g_main_context_iteration (NULL, TRUE);
|
||||
|
||||
if (status.uris) {
|
||||
gtk_selection_data_set_uris (selection, status.uris);
|
||||
|
||||
@ -68,7 +68,7 @@ em_migrate_set_progress (double percent)
|
||||
gtk_progress_bar_set_text (progress, text);
|
||||
|
||||
while (gtk_events_pending ())
|
||||
gtk_main_iteration ();
|
||||
g_main_context_iteration (NULL, TRUE);
|
||||
}
|
||||
|
||||
enum {
|
||||
|
||||
@ -5144,7 +5144,7 @@ get_uri_for_part (CamelMimePart *mime_part)
|
||||
* loop until the callback gets triggered. */
|
||||
/* coverity[loop_condition] */
|
||||
while (!status.done)
|
||||
gtk_main_iteration ();
|
||||
g_main_context_iteration (NULL, TRUE);
|
||||
|
||||
status.file = NULL;
|
||||
status.done = FALSE;
|
||||
@ -5157,7 +5157,7 @@ get_uri_for_part (CamelMimePart *mime_part)
|
||||
* the main loop until the callback gets triggered. */
|
||||
/* coverity[loop_condition] */
|
||||
while (!status.done)
|
||||
gtk_main_iteration ();
|
||||
g_main_context_iteration (NULL, TRUE);
|
||||
|
||||
if (status.file != NULL) {
|
||||
path = g_file_get_path (status.file);
|
||||
|
||||
Reference in New Issue
Block a user