[rhythmbox/deprecations: 5/13] replace gtk_menu_popup with gtk_menu_popup_at_pointer



commit 5259c82e0a9277a10e9e92e701fda4f6d5b3c5a3
Author: Jonathan Matthew <jonathan d14n org>
Date:   Fri Nov 15 07:10:51 2019 +1000

    replace gtk_menu_popup with gtk_menu_popup_at_pointer

 plugins/fmradio/rb-fm-radio-source.c | 8 +-------
 plugins/iradio/rb-iradio-source.c    | 8 +-------
 podcast/rb-podcast-source.c          | 4 ++--
 sources/rb-browser-source.c          | 8 +-------
 sources/rb-import-errors-source.c    | 8 +-------
 sources/rb-missing-files-source.c    | 8 +-------
 sources/rb-play-queue-source.c       | 8 +-------
 sources/rb-playlist-source.c         | 8 +-------
 widgets/rb-source-toolbar.c          | 4 +---
 9 files changed, 10 insertions(+), 54 deletions(-)
---
diff --git a/plugins/fmradio/rb-fm-radio-source.c b/plugins/fmradio/rb-fm-radio-source.c
index 260d02e3d..494ddda65 100644
--- a/plugins/fmradio/rb-fm-radio-source.c
+++ b/plugins/fmradio/rb-fm-radio-source.c
@@ -327,13 +327,7 @@ rb_fm_radio_source_songs_view_show_popup (RBEntryView *view,
 
        menu = gtk_menu_new_from_model (source->priv->popup);
        gtk_menu_attach_to_widget (GTK_MENU (menu), GTK_WIDGET (source), NULL);
-       gtk_menu_popup (GTK_MENU (menu),
-                       NULL,
-                       NULL,
-                       NULL,
-                       NULL,
-                       3,
-                       gtk_get_current_event_time ());
+       gtk_menu_popup_at_pointer (GTK_MENU (menu), NULL);
 }
 
 void
diff --git a/plugins/iradio/rb-iradio-source.c b/plugins/iradio/rb-iradio-source.c
index 71d0e6e46..a887306b5 100644
--- a/plugins/iradio/rb-iradio-source.c
+++ b/plugins/iradio/rb-iradio-source.c
@@ -704,13 +704,7 @@ rb_iradio_source_songs_show_popup_cb (RBEntryView *view,
 
        menu = gtk_menu_new_from_model (source->priv->popup);
        gtk_menu_attach_to_widget (GTK_MENU (menu), GTK_WIDGET (source), NULL);
-       gtk_menu_popup (GTK_MENU (menu),
-                       NULL,
-                       NULL,
-                       NULL,
-                       NULL,
-                       3,
-                       gtk_get_current_event_time ());
+       gtk_menu_popup_at_pointer (GTK_MENU (menu), NULL);
 }
 
 static void
diff --git a/podcast/rb-podcast-source.c b/podcast/rb-podcast-source.c
index ec06805fb..98a080fe0 100644
--- a/podcast/rb-podcast-source.c
+++ b/podcast/rb-podcast-source.c
@@ -175,7 +175,7 @@ podcast_posts_show_popup_cb (RBEntryView *view,
 
        menu = gtk_menu_new_from_model (source->priv->episode_popup);
        gtk_menu_attach_to_widget (GTK_MENU (menu), GTK_WIDGET (source), NULL);
-       gtk_menu_popup (GTK_MENU (menu), NULL, NULL, NULL, NULL, 3, gtk_get_current_event_time ());
+       gtk_menu_popup_at_pointer (GTK_MENU (menu), NULL);
 }
 
 static void
@@ -202,7 +202,7 @@ podcast_feeds_show_popup_cb (RBPropertyView *view,
 
        menu = gtk_menu_new_from_model (source->priv->feed_popup);
        gtk_menu_attach_to_widget (GTK_MENU (menu), GTK_WIDGET (source), NULL);
-       gtk_menu_popup (GTK_MENU (menu), NULL, NULL, NULL, NULL, 3, gtk_get_current_event_time ());
+       gtk_menu_popup_at_pointer (GTK_MENU (menu), NULL);
 }
 
 static GPtrArray *
diff --git a/sources/rb-browser-source.c b/sources/rb-browser-source.c
index 26354a2e3..d916ab7d7 100644
--- a/sources/rb-browser-source.c
+++ b/sources/rb-browser-source.c
@@ -258,13 +258,7 @@ default_show_entry_popup (RBBrowserSource *source)
 
        menu = gtk_menu_new_from_model (G_MENU_MODEL (source->priv->popup));
        gtk_menu_attach_to_widget (GTK_MENU (menu), GTK_WIDGET (source), NULL);
-       gtk_menu_popup (GTK_MENU (menu),
-                       NULL,
-                       NULL,
-                       NULL,
-                       NULL,
-                       3,
-                       gtk_get_current_event_time ());
+       gtk_menu_popup_at_pointer (GTK_MENU (menu), NULL);
 }
 
 static void
diff --git a/sources/rb-import-errors-source.c b/sources/rb-import-errors-source.c
index d778ecef8..5c916d478 100644
--- a/sources/rb-import-errors-source.c
+++ b/sources/rb-import-errors-source.c
@@ -404,13 +404,7 @@ rb_import_errors_source_songs_show_popup_cb (RBEntryView *view,
 
        menu = gtk_menu_new_from_model (source->priv->popup);
        gtk_menu_attach_to_widget (GTK_MENU (menu), GTK_WIDGET (source), NULL);
-       gtk_menu_popup (GTK_MENU (menu),
-                       NULL,
-                       NULL,
-                       NULL,
-                       NULL,
-                       3,
-                       gtk_get_current_event_time ());
+       gtk_menu_popup_at_pointer (GTK_MENU (menu), NULL);
 }
 
 static void
diff --git a/sources/rb-missing-files-source.c b/sources/rb-missing-files-source.c
index 88e799916..9fc39c0fe 100644
--- a/sources/rb-missing-files-source.c
+++ b/sources/rb-missing-files-source.c
@@ -301,13 +301,7 @@ rb_missing_files_source_songs_show_popup_cb (RBEntryView *view,
 
        menu = gtk_menu_new_from_model (source->priv->popup);
        gtk_menu_attach_to_widget (GTK_MENU (menu), GTK_WIDGET (source), NULL);
-       gtk_menu_popup (GTK_MENU (menu),
-                       NULL,
-                       NULL,
-                       NULL,
-                       NULL,
-                       3,
-                       gtk_get_current_event_time ());
+       gtk_menu_popup_at_pointer (GTK_MENU (menu), NULL);
 }
 
 static void
diff --git a/sources/rb-play-queue-source.c b/sources/rb-play-queue-source.c
index 8c2597162..e847aa647 100644
--- a/sources/rb-play-queue-source.c
+++ b/sources/rb-play-queue-source.c
@@ -445,13 +445,7 @@ impl_show_entry_view_popup (RBPlaylistSource *source,
                menu = gtk_menu_new_from_model (priv->popup);
        }
        gtk_menu_attach_to_widget (GTK_MENU (menu), GTK_WIDGET (source), NULL);
-       gtk_menu_popup (GTK_MENU (menu),
-                       NULL,
-                       NULL,
-                       NULL,
-                       NULL,
-                       3,
-                       gtk_get_current_event_time ());
+       gtk_menu_popup_at_pointer (GTK_MENU (menu), NULL);
 }
 
 static void
diff --git a/sources/rb-playlist-source.c b/sources/rb-playlist-source.c
index 989413e06..0d6124ad9 100644
--- a/sources/rb-playlist-source.c
+++ b/sources/rb-playlist-source.c
@@ -500,13 +500,7 @@ default_show_entry_view_popup (RBPlaylistSource *source,
 
        menu = gtk_menu_new_from_model (G_MENU_MODEL (source->priv->popup));
        gtk_menu_attach_to_widget (GTK_MENU (menu), GTK_WIDGET (source), NULL);
-       gtk_menu_popup (GTK_MENU (menu),
-                       NULL,
-                       NULL,
-                       NULL,
-                       NULL,
-                       3,
-                       gtk_get_current_event_time ());
+       gtk_menu_popup_at_pointer (GTK_MENU (menu), NULL);
 }
 
 static void
diff --git a/widgets/rb-source-toolbar.c b/widgets/rb-source-toolbar.c
index 50fe9ddf8..43df4c834 100644
--- a/widgets/rb-source-toolbar.c
+++ b/widgets/rb-source-toolbar.c
@@ -130,9 +130,7 @@ search_cb (RBSearchEntry *search_entry, const char *text, RBSourceToolbar *toolb
 static void
 show_popup_cb (RBSearchEntry *search_entry, RBSourceToolbar *toolbar)
 {
-       gtk_menu_popup (GTK_MENU (toolbar->priv->search_popup),
-                       NULL, NULL, NULL, NULL, 3,
-                       gtk_get_current_event_time ());
+       gtk_menu_popup_at_pointer (GTK_MENU (toolbar->priv->search_popup), NULL);
 }
 
 


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