[PATCH] Make WM treat progress dialog as window

From bug 310676:

"File transfer dialog should have a minimize button".

Proposed patch attached.

Christian Neumair <chris gnome-de org>
Index: libnautilus-private/nautilus-file-operations-progress.c
RCS file: /cvs/gnome/nautilus/libnautilus-private/nautilus-file-operations-progress.c,v
retrieving revision 1.47
diff -u -p -r1.47 nautilus-file-operations-progress.c
--- libnautilus-private/nautilus-file-operations-progress.c	11 Jun 2005 11:05:33 -0000	1.47
+++ libnautilus-private/nautilus-file-operations-progress.c	28 Jul 2005 11:48:17 -0000
@@ -502,6 +502,8 @@ nautilus_file_operations_progress_new (c
 	gtk_window_set_title (GTK_WINDOW (widget), title);
 	gtk_window_set_wmclass (GTK_WINDOW (widget), "file_progress", "Nautilus");
+	/* ensure that minimize button is shown and the window appears in the tasklist */
+	gtk_window_set_type_hint (GTK_WINDOW (widget), GDK_WINDOW_TYPE_HINT_NORMAL);
 	primary_text = g_strconcat ("<big><b>", title, "</b></big>", NULL);
 	gtk_label_set_markup(GTK_LABEL (progress->details->primary_text_label),

Attachment: signature.asc
Description: This is a digitally signed message part

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]