commit b69c7dd3f875ceda6e93700468cf8cc787365b6b
Author: Daniele Forsi <dani...@forsi.it>
Date:   Mon Dec 20 15:34:37 2010 +0100

    GUI fixes
    
    * data/glade/gtkpod.glade
    * libgtkpod/gp_spl.c
     * Open the "Smart Playlist" dialog centered and always on top of the
       main window.
    
    * plugins/repository_editor/repository_editor.glade
    * plugins/repository_editor/repository_init.c
     * Open the "Initialize iPod" dialog centered and always on top of the
       main window.
    
    * plugins/repository_editor/repository_editor.glade
     * Open the "Create Repository" dialog centered on the main window.
    
    * src/anjuta-action-callbacks.c
     * Open the "About" dialog centered on the main window.
    
    * plugins/playlist_display/plugin.c
     * Use GTK_STOCK_NEW only for the first menu item, else both the
       icon and the shortcut are duplicated for all items.

 data/glade/gtkpod.glade                           |    1 +
 libgtkpod/gp_spl.c                                |    1 +
 plugins/playlist_display/plugin.c                 |   32 ++++++++++----------
 plugins/repository_editor/repository_editor.glade |    4 ++-
 plugins/repository_editor/repository_init.c       |    1 +
 src/anjuta-action-callbacks.c                     |    1 +
 6 files changed, 23 insertions(+), 17 deletions(-)
---
diff --git a/data/glade/gtkpod.glade b/data/glade/gtkpod.glade
index 9b63408..2882174 100644
--- a/data/glade/gtkpod.glade
+++ b/data/glade/gtkpod.glade
@@ -192,6 +192,7 @@
   </widget>
   <widget class="GtkWindow" id="spl_window">
     <property name="title" translatable="yes">Smart Playlist</property>
+    <property name="window_position">center-on-parent</property>
     <child>
       <widget class="GtkVBox" id="vbox28">
         <property name="visible">True</property>
diff --git a/libgtkpod/gp_spl.c b/libgtkpod/gp_spl.c
index ad9a5a4..d6992e4 100644
--- a/libgtkpod/gp_spl.c
+++ b/libgtkpod/gp_spl.c
@@ -1389,6 +1389,7 @@ void spl_edit_all(iTunesDB *itdb, Playlist *spl, gint32 
pos) {
         gtk_window_set_default_size(GTK_WINDOW (spl_window), defx, defy);
 
     glade_xml_signal_autoconnect(spl_window_xml);
+    gtk_window_set_transient_for(GTK_WINDOW (spl_window), GTK_WINDOW 
(gtkpod_app));
     gtk_widget_show(spl_window);
 
     block_widgets();
diff --git a/plugins/playlist_display/plugin.c 
b/plugins/playlist_display/plugin.c
index 87e3cdc..34414c9 100644
--- a/plugins/playlist_display/plugin.c
+++ b/plugins/playlist_display/plugin.c
@@ -120,7 +120,7 @@ static GtkActionEntry playlist_actions[] =
         },
         {
             "ActionNewSmartPlaylist",
-            GTK_STOCK_NEW,
+            NULL,
             N_("Smart Playlist"),
             NULL,
             N_("Create a new smart playlist"),
@@ -128,7 +128,7 @@ static GtkActionEntry playlist_actions[] =
         },
         {
             "ActionNewRandomPlaylist",
-            GTK_STOCK_NEW,
+            NULL,
             N_("Random Playlist from Displayed Tracks"),
             NULL,
             N_("Create a random playlist from the displayed tracks"),
@@ -136,7 +136,7 @@ static GtkActionEntry playlist_actions[] =
         },
         {
             "ActionNewContainingDisplayedPlaylist",
-            GTK_STOCK_NEW,
+            NULL,
             N_("Containing Displayed Tracks"),
             NULL,
             N_("Create a playlist containing the displayed tracks"),
@@ -144,7 +144,7 @@ static GtkActionEntry playlist_actions[] =
         },
         {
             "ActionNewContainingSelectedPlaylist",
-            GTK_STOCK_NEW,
+            NULL,
             N_("Containing Selected Tracks"),
             NULL,
             N_("Create a playlist containing the selected tracks"),
@@ -152,7 +152,7 @@ static GtkActionEntry playlist_actions[] =
         },
         {
             "ActionNewBestRatedPlaylist",
-            GTK_STOCK_NEW,
+            NULL,
             N_("Best Rated Tracks"),
             NULL,
             N_("Create a playlist containing the best rated tracks"),
@@ -160,7 +160,7 @@ static GtkActionEntry playlist_actions[] =
         },
         {
             "ActionNewTracksMostOftenPlaylist",
-            GTK_STOCK_NEW,
+            NULL,
             N_("Tracks Most Often Listened To"),
             NULL,
             N_("Create a playlist containing the tracks most often listened 
to"),
@@ -168,7 +168,7 @@ static GtkActionEntry playlist_actions[] =
         },
         {
             "ActionNewMostRecentPlayledPlaylist",
-            GTK_STOCK_NEW,
+            NULL,
             N_("Most Recently Played Tracks"),
             NULL,
             N_("Create a playlist containing the most recently played tracks"),
@@ -176,7 +176,7 @@ static GtkActionEntry playlist_actions[] =
         },
         {
             "ActionNewAllPlayedSinceLastTimePlaylist",
-            GTK_STOCK_NEW,
+            NULL,
             N_("All Tracks Played Since Last Time"),
             NULL,
             N_("Create a playlist containing all tracks played since last 
time"),
@@ -184,7 +184,7 @@ static GtkActionEntry playlist_actions[] =
         },
         {
             "ActionNewAllNeverListenedPlaylist",
-            GTK_STOCK_NEW,
+            NULL,
             N_("All Tracks Never Listened To"),
             NULL,
             N_("Create a playlist of all tracks never listened to"),
@@ -192,7 +192,7 @@ static GtkActionEntry playlist_actions[] =
         },
         {
             "ActionAllNeverListedPlaylist",
-            GTK_STOCK_NEW,
+            NULL,
             N_("All Tracks not Listed in any Playlist"),
             NULL,
             N_("Create a playlist of tracks not list in any other playlist"),
@@ -200,7 +200,7 @@ static GtkActionEntry playlist_actions[] =
         },
         {
             "ActionNewOnePerArtistPlaylist",
-            GTK_STOCK_NEW,
+            NULL,
             N_("One for each Artist"),
             NULL,
             N_("Create a playlist for each artist"),
@@ -208,7 +208,7 @@ static GtkActionEntry playlist_actions[] =
         },
         {
             "ActionNewOnePerAlbumPlaylist",
-            GTK_STOCK_NEW,
+            NULL,
             N_("One for each Album"),
             NULL,
             N_("Create a playlist for each album"),
@@ -216,7 +216,7 @@ static GtkActionEntry playlist_actions[] =
         },
         {
             "ActionNewOnePerGenrePlaylist",
-            GTK_STOCK_NEW,
+            NULL,
             N_("One for each Genre"),
             NULL,
             N_("Create a playlist for each genre"),
@@ -224,7 +224,7 @@ static GtkActionEntry playlist_actions[] =
         },
         {
             "ActionNewOnePreComposerPlaylist",
-            GTK_STOCK_NEW,
+            NULL,
             N_("One for each Composer"),
             NULL,
             N_("Create a playlist for each composer"),
@@ -232,7 +232,7 @@ static GtkActionEntry playlist_actions[] =
         },
         {
             "ActionNewOnePerYearPlaylist",
-            GTK_STOCK_NEW,
+            NULL,
             N_("One for each Year"),
             NULL,
             N_("Create a playlist for each year"),
@@ -240,7 +240,7 @@ static GtkActionEntry playlist_actions[] =
         },
         {
             "ActionNewOnePerRatingPlaylist",
-            GTK_STOCK_NEW,
+            NULL,
             N_("One for each Rating"),
             NULL,
             N_("Create a playlist for each rating"),
diff --git a/plugins/repository_editor/repository_editor.glade 
b/plugins/repository_editor/repository_editor.glade
index 54d2f7e..5057c09 100644
--- a/plugins/repository_editor/repository_editor.glade
+++ b/plugins/repository_editor/repository_editor.glade
@@ -1290,7 +1290,8 @@ NOTE: if you sync with the master playlist, you must 
check this option if you wa
     <property name="visible">True</property>
     <property name="title" translatable="yes">Create Repository</property>
     <property name="modal">True</property>
-    <property name="window_position">center</property>
+    <property name="window_position">center-on-parent</property>
+    <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
     <property name="destroy_with_parent">True</property>
     <property name="skip_taskbar_hint">True</property>
     <child>
@@ -1834,6 +1835,7 @@ Local Repository (Podcasts)
 <widget class="GtkDialog" id="ipod_init_dialog">
     <property name="visible">True</property>
     <property name="title" translatable="yes">Initialize iPod</property>
+    <property name="window_position">center-on-parent</property>
     <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
     <child internal-child="vbox">
       <widget class="GtkVBox" id="dialog-vbox2"><property 
name="orientation">GTK_ORIENTATION_VERTICAL</property>
diff --git a/plugins/repository_editor/repository_init.c 
b/plugins/repository_editor/repository_init.c
index f6c6c45..515bfb9 100644
--- a/plugins/repository_editor/repository_init.c
+++ b/plugins/repository_editor/repository_init.c
@@ -173,6 +173,7 @@ gboolean repository_ipod_init(iTunesDB *itdb) {
     entry = GTK_ENTRY (gtk_bin_get_child(GTK_BIN (cb)));
     gtk_entry_set_text(entry, buf);
 
+    gtk_window_set_transient_for(GTK_WINDOW (ii->window), GTK_WINDOW 
(gtkpod_app));
     response = gtk_dialog_run(GTK_DIALOG (ii->window));
 
     switch (response) {
diff --git a/src/anjuta-action-callbacks.c b/src/anjuta-action-callbacks.c
index e1d7ae9..0ddc639 100644
--- a/src/anjuta-action-callbacks.c
+++ b/src/anjuta-action-callbacks.c
@@ -152,5 +152,6 @@ on_about_activate (GtkAction * action, gpointer user_data)
        g_signal_connect_swapped(about_dlg, "response",
                G_CALLBACK(gtk_widget_destroy), about_dlg);
 
+       gtk_window_set_transient_for(GTK_WINDOW (about_dlg), GTK_WINDOW 
(gtkpod_app));
        gtk_widget_show (about_dlg);
 }

------------------------------------------------------------------------------
Forrester recently released a report on the Return on Investment (ROI) of
Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even
within 7 months.  Over 3 million businesses have gone Google with Google Apps:
an online email calendar, and document program that's accessible from your 
browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew
_______________________________________________
gtkpod-cvs2 mailing list
gtkpod-cvs2@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to