[totem/gnome-3-6] Don't use gtk_menu_button_set_menu



commit 50a8a87dade723b228afe124ca37cb9bab85aa50
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Sep 23 23:15:15 2012 -0400

    Don't use gtk_menu_button_set_menu
    
    The function has been renamed to gtk_menu_button_set_popup.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=684695

 browser-plugin/totem-plugin-viewer.c   |    4 ++--
 src/plugins/grilo/totem-search-entry.c |    6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/browser-plugin/totem-plugin-viewer.c b/browser-plugin/totem-plugin-viewer.c
index 5648336..d5f95d2 100644
--- a/browser-plugin/totem-plugin-viewer.c
+++ b/browser-plugin/totem-plugin-viewer.c
@@ -1781,8 +1781,8 @@ totem_embedded_construct (TotemEmbedded *emb,
 	g_assert (emb->menuxml);
 
 	popup_button = GTK_WIDGET (gtk_builder_get_object (emb->xml, "popup_button"));
-	gtk_menu_button_set_menu (GTK_MENU_BUTTON (popup_button),
-				  (GtkWidget *) gtk_builder_get_object (emb->menuxml, "menu"));
+	gtk_menu_button_set_popup (GTK_MENU_BUTTON (popup_button),
+				   (GtkWidget *) gtk_builder_get_object (emb->menuxml, "menu"));
 	gtk_menu_button_set_direction (GTK_MENU_BUTTON (popup_button), GTK_ARROW_UP);
 
 	emb->volume = GTK_WIDGET (gtk_builder_get_object (emb->xml, "volume_button"));
diff --git a/src/plugins/grilo/totem-search-entry.c b/src/plugins/grilo/totem-search-entry.c
index 2416f5a..485ab14 100644
--- a/src/plugins/grilo/totem-search-entry.c
+++ b/src/plugins/grilo/totem-search-entry.c
@@ -200,8 +200,8 @@ totem_search_entry_add_source (TotemSearchEntry *self,
 
 	if (self->priv->menu == NULL) {
 		self->priv->menu = gtk_menu_new ();
-		gtk_menu_button_set_menu (GTK_MENU_BUTTON (self->priv->button),
-					  self->priv->menu);
+		gtk_menu_button_set_popup (GTK_MENU_BUTTON (self->priv->button),
+					   self->priv->menu);
 		gd_tagged_entry_add_tag (GD_TAGGED_ENTRY (self->priv->entry),
 					 SOURCE_ID, label);
 	}
@@ -235,7 +235,7 @@ totem_search_entry_remove_source (TotemSearchEntry *self,
 	num_items = 1;
 
 	if (num_items == 0) {
-		gtk_menu_button_set_menu (GTK_MENU_BUTTON (self->priv->button), NULL);
+		gtk_menu_button_set_popup (GTK_MENU_BUTTON (self->priv->button), NULL);
 		g_clear_object (&self->priv->menu);
 		gd_tagged_entry_remove_tag (GD_TAGGED_ENTRY (self->priv->entry), SOURCE_ID);
 	}



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