Index: plug-ins/common/screenshot.c =================================================================== --- plug-ins/common/screenshot.c (revision 21691) +++ plug-ins/common/screenshot.c (working copy) @@ -155,6 +155,7 @@ gboolean decorate; guint window_id; guint select_delay; + guint grab_delay; gint x1; gint y1; gint x2; @@ -167,6 +168,7 @@ TRUE, /* include WM decorations */ 0, /* window ID */ 0, /* select delay */ + 0, /* Grab delay */ 0, /* coords of region dragged out by pointer */ 0, 0, @@ -342,6 +344,9 @@ if (status == GIMP_PDB_SUCCESS) { + if (shootvals.grab_delay > 0) + shoot_delay (shootvals.grab_delay); + image_ID = shoot (screen); if (image_ID == -1) @@ -920,7 +925,35 @@ G_CALLBACK (gimp_int_adjustment_update), &shootvals.select_delay); + /* this string is part of "Wait [spinbutton] seconds before selecting" */ + label = gtk_label_new (_("seconds before selecting")); + gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); + gtk_widget_show (label); + + gimp_help_set_help_data (spinner, _("The number of seconds to wait before " + "selecting the window or region."), NULL); + + hbox = gtk_hbox_new (FALSE, 6); + gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); + gtk_widget_show (hbox); + /* this string is part of "Wait [spinbutton] seconds before grabbing" */ + label = gtk_label_new_with_mnemonic (_("W_ait")); + gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); + gtk_widget_show (label); + + spinner = gimp_spin_button_new (&adj, shootvals.grab_delay, + 0.0, 100.0, 1.0, 5.0, 0.0, 0, 0); + gtk_box_pack_start (GTK_BOX (hbox), spinner, FALSE, FALSE, 0); + gtk_widget_show (spinner); + + gtk_label_set_mnemonic_widget (GTK_LABEL (label), spinner); + + g_signal_connect (adj, "value-changed", + G_CALLBACK (gimp_int_adjustment_update), + &shootvals.grab_delay); + + /* this string is part of "Wait [spinbutton] seconds before grabbing" */ label = gtk_label_new (_("seconds before grabbing")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); gtk_widget_show (label);