[gnome-disk-utility] Use GtkMenuButton in SMART dialog



commit e695a6890e24136e78c337527d31206c70923595
Author: David Zeuthen <zeuthen gmail com>
Date:   Mon Nov 19 17:41:50 2012 -0500

    Use GtkMenuButton in SMART dialog
    
    Signed-off-by: David Zeuthen <zeuthen gmail com>

 data/ui/smart-dialog.ui       |    3 ++-
 src/disks/gduatasmartdialog.c |    2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/data/ui/smart-dialog.ui b/data/ui/smart-dialog.ui
index 86ab83a..d73fe16 100644
--- a/data/ui/smart-dialog.ui
+++ b/data/ui/smart-dialog.ui
@@ -19,7 +19,8 @@
             <property name="can_focus">False</property>
             <property name="layout_style">end</property>
             <child>
-              <object class="GtkButton" id="start-selftest-button">
+              <object class="GtkMenuButton" id="start-selftest-button">
+                <property name="menu">selftest-menu</property>
                 <property name="label" translatable="yes">_Start Self-test...</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
diff --git a/src/disks/gduatasmartdialog.c b/src/disks/gduatasmartdialog.c
index 5b7452b..43c4a79 100644
--- a/src/disks/gduatasmartdialog.c
+++ b/src/disks/gduatasmartdialog.c
@@ -1641,7 +1641,7 @@ gdu_ata_smart_dialog_show (GduWindow    *window,
       switch (response)
         {
         case 0:
-          gtk_menu_popup (GTK_MENU (data->selftest_menu), NULL, NULL, NULL, NULL, 1, 0);
+          /* handled by GtkMenuButton */
           break;
         case 1:
           selftest_do (data, "abort");



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