[gnome-contacts] ContactPane: removed hack for use MenuButton.set_popup
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] ContactPane: removed hack for use MenuButton.set_popup
- Date: Mon, 19 Aug 2013 18:22:09 +0000 (UTC)
commit 9ba318cae043a9baf327a5b1d8ac875cd3402758
Author: Erick Pérez Castellanos <erick red gmail com>
Date: Mon Aug 19 14:20:38 2013 -0400
ContactPane: removed hack for use MenuButton.set_popup
src/contacts-contact-pane.vala | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/src/contacts-contact-pane.vala b/src/contacts-contact-pane.vala
index ee4c61c..cfe29b7 100644
--- a/src/contacts-contact-pane.vala
+++ b/src/contacts-contact-pane.vala
@@ -22,9 +22,6 @@ using Gee;
const int PROFILE_SIZE = 96;
-/* Not available until Vala 0.19 */
-extern void gtk_menu_button_set_popup (Gtk.MenuButton button, Gtk.Widget popup);
-
namespace Contacts {
public static void change_avatar (Contact contact, ContactFrame image_frame) {
var dialog = new AvatarDialog (contact);
@@ -426,9 +423,8 @@ public class Contacts.ContactPane : Notebook {
editor.add_new_row_for_property (contact.find_primary_persona (), "notes");
});
details_menu.show_all ();
- /* Not available until Vala 0.19 */
- //add_detail_button.set_popup (details_menu);
- gtk_menu_button_set_popup (add_detail_button, details_menu);
+
+ add_detail_button.set_popup (details_menu);
add_detail_button.set_direction (ArrowType.UP);
var tool_item = new ToolItem ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]