Skip to content
Permalink
Browse files

caja-progress-info: new behavior with notifications:

- remove the "Working..." notification

- show the "Process completed" notification only if the progress window is inactive
  • Loading branch information...
sc0w committed Dec 17, 2018
1 parent 08f479a commit 75e89ca629a0d908924ac5c857ed3408abbdae75
Showing with 3 additions and 10 deletions.
  1. +3 −10 libcaja-private/caja-progress-info.c
@@ -623,14 +623,14 @@ update_status_icon_and_window (void)

if (window_shown)
{
gtk_widget_hide (get_progress_window ());

if (g_settings_get_boolean (caja_preferences, CAJA_PREFERENCES_SHOW_NOTIFICATIONS))
if (g_settings_get_boolean (caja_preferences, CAJA_PREFERENCES_SHOW_NOTIFICATIONS) &&
!gtk_window_is_active (GTK_WINDOW (get_progress_window ())))
{
g_notification_set_body (notification, _("Process completed"));
g_application_send_notification (g_application_get_default (), "caja", notification);
}

gtk_widget_hide (get_progress_window ());
window_shown = FALSE;
}
}
@@ -639,13 +639,6 @@ update_status_icon_and_window (void)
gtk_widget_show_all (get_progress_window ());
gtk_status_icon_set_visible (status_icon, TRUE);
gtk_window_present (GTK_WINDOW (get_progress_window ()));

if (g_settings_get_boolean (caja_preferences, CAJA_PREFERENCES_SHOW_NOTIFICATIONS))
{
g_notification_set_body (notification, _("Working..."));
g_application_send_notification (g_application_get_default (), "caja", notification);
}

window_shown = TRUE;
}
}

0 comments on commit 75e89ca

Please sign in to comment.
You can’t perform that action at this time.