@@ -2292,35 +2292,40 @@ fr_window_view_extraction_destination_folder (FrWindow *window)
22922292 open_folder (GTK_WINDOW (window ), fr_archive_get_last_extraction_destination (window -> archive ));
22932293}
22942294
2295- static void change_button_label (GtkWidget * button )
2295+ static void change_button_label (FrArchive * archive ,
2296+ GtkWidget * button )
22962297{
22972298 const gchar * state ;
22982299 state = gtk_button_get_label (GTK_BUTTON (button ));
22992300
23002301 if (g_strrstr ("_Pause" , state ) != NULL )
23012302 {
2303+ fr_command_message (archive -> command , _ ("Process paused" ));
2304+
23022305 gtk_button_set_label (GTK_BUTTON (button ), _ ("_Resume" ));
23032306 gtk_button_set_image (GTK_BUTTON (button ),
23042307 gtk_image_new_from_icon_name ("media-playback-start" ,
23052308 GTK_ICON_SIZE_BUTTON ));
23062309 }
23072310 else
23082311 {
2312+ fr_command_message (archive -> command , _ ("Please wait…" ));
2313+
23092314 gtk_button_set_label (GTK_BUTTON (button ), _ ("_Pause" ));
23102315 gtk_button_set_image (GTK_BUTTON (button ),
23112316 gtk_image_new_from_icon_name ("media-playback-pause" ,
23122317 GTK_ICON_SIZE_BUTTON ));
23132318 }
23142319}
2315- static void fr_state_switch (FrWindow * window )
2320+ static void fr_state_switch (FrWindow * window )
23162321{
23172322 int ret ;
23182323 if (window -> archive -> process != NULL )
23192324 {
23202325 ret = start_switch_state (window -> archive -> process );
2321- if (ret == 0 )
2326+ if (ret == 0 )
23222327 {
2323- change_button_label ( window -> priv -> pd_state_button );
2328+ change_button_label ( window -> archive , window -> priv -> pd_state_button );
23242329 }
23252330 }
23262331}
0 commit comments