commit 947484e0dc628095dbe6e905ac156dcc978c7bcb
Author: phantomjinx <[email protected]>
Date: Tue Jul 6 23:11:39 2010 +0100
Ensure respository and sort windows are transient
* Ensure these dialog window are transient with legitimate parents to avoid
losing them behind the main window
src/repository.c | 3 +++
src/sort_window.c | 3 ++-
2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/repository.c b/src/repository.c
index 0556a15..efbe8bd 100644
--- a/src/repository.c
+++ b/src/repository.c
@@ -1962,6 +1962,7 @@ void repository_edit (iTunesDB *itdb, Playlist *playlist)
repwin->window = gtkpod_xml_get_widget (repwin->xml,
"repository_window");
g_return_if_fail (repwin->window);
+ gtk_window_set_transient_for (GTK_WINDOW (repwin->window), GTK_WINDOW
(gtkpod_window));
repwins = g_list_append (repwins, repwin);
@@ -2479,6 +2480,8 @@ static void create_repository (RepWin *repwin1)
"create_repository_window");
g_return_if_fail (cr->window);
+ gtk_window_set_transient_for (GTK_WINDOW (cr->window), GTK_WINDOW
(repwin1->window));
+
/* Window control */
g_signal_connect (GET_WIDGET (CRW_CANCEL_BUTTON), "clicked",
diff --git a/src/sort_window.c b/src/sort_window.c
index c928038..57d3fa4 100644
--- a/src/sort_window.c
+++ b/src/sort_window.c
@@ -266,13 +266,14 @@ void sort_window_create (void)
/* associate tm_listed_order with sort_window */
g_object_set_data (G_OBJECT (sort_window), "tm_listed_order",
tm_listed_order);
-
+
tooltips = gtk_tooltips_new ();
gtk_tooltips_set_tip (tooltips, w, _("You can also use the
table headers, but this allows you to sort according to a column that is not
displayed."), NULL);
sort_window_update ();
sort_window_show_hide_tooltips ();
+ gtk_window_set_transient_for (GTK_WINDOW (sort_window), GTK_WINDOW
(gtkpod_window));
gtk_widget_show (sort_window);
}
}
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2