[planner] Remove deprecated gtk_menu_append.



commit 88ae0a9be7aecc57637eaa4c6144359ecd91e440
Author: Luis Menina <liberforce freeside fr>
Date:   Mon Mar 4 11:07:09 2013 +0100

    Remove deprecated gtk_menu_append.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=575129

 src/planner-calendar-dialog.c       |    2 +-
 src/planner-cell-renderer-date.c    |    2 +-
 src/planner-default-week-dialog.c   |    4 ++--
 src/planner-project-properties.c    |    6 +++---
 src/planner-property-dialog.c       |    2 +-
 src/planner-resource-dialog.c       |    6 +++---
 src/planner-resource-input-dialog.c |    4 ++--
 src/planner-task-dialog.c           |    2 +-
 8 files changed, 14 insertions(+), 14 deletions(-)
---
diff --git a/src/planner-calendar-dialog.c b/src/planner-calendar-dialog.c
index 0f92c33..cfc4f58 100644
--- a/src/planner-calendar-dialog.c
+++ b/src/planner-calendar-dialog.c
@@ -448,7 +448,7 @@ cal_dialog_setup_option_menu (DialogData *data)
 
                menu_item = gtk_menu_item_new_with_label (name);
                gtk_widget_show (menu_item);
-               gtk_menu_append (GTK_MENU (menu), menu_item);
+               gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
 
                g_object_set_data (G_OBJECT (menu_item),
                                   "data",
diff --git a/src/planner-cell-renderer-date.c b/src/planner-cell-renderer-date.c
index ccd434d..4048a67 100644
--- a/src/planner-cell-renderer-date.c
+++ b/src/planner-cell-renderer-date.c
@@ -527,7 +527,7 @@ mcrd_setup_option_menu (GtkWidget     *option_menu,
        for (str = str1, i = 0; str != NULL; str = va_arg (args, gpointer), i++) {
                menu_item = gtk_menu_item_new_with_label (str);
                gtk_widget_show (menu_item);
-               gtk_menu_append (GTK_MENU (menu), menu_item);
+               gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
 
                type = va_arg (args, gint);
 
diff --git a/src/planner-default-week-dialog.c b/src/planner-default-week-dialog.c
index a05d29c..ed59416 100644
--- a/src/planner-default-week-dialog.c
+++ b/src/planner-default-week-dialog.c
@@ -369,7 +369,7 @@ default_week_dialog_setup_day_option_menu (GtkOptionMenu *option_menu,
 
                menu_item = gtk_menu_item_new_with_label (name);
                gtk_widget_show (menu_item);
-               gtk_menu_append (GTK_MENU (menu), menu_item);
+               gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
 
                /* "Use base" is not possible for toplevel calendars. */
                if (parent == root && day == mrp_day_get_use_base ()) {
@@ -422,7 +422,7 @@ default_week_dialog_setup_weekday_option_menu (GtkOptionMenu *option_menu)
                menu_item = gtk_menu_item_new_with_label (_(days[i].name));
 
                gtk_widget_show (menu_item);
-               gtk_menu_append (GTK_MENU (menu), menu_item);
+               gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
 
                g_object_set_data (G_OBJECT (menu_item),
                                   "data",
diff --git a/src/planner-project-properties.c b/src/planner-project-properties.c
index 58aba7b..a44453b 100644
--- a/src/planner-project-properties.c
+++ b/src/planner-project-properties.c
@@ -881,12 +881,12 @@ mpp_setup_phases (DialogData *data)
 
        menu_item = gtk_menu_item_new_with_label (_("None"));
        gtk_widget_show (menu_item);
-       gtk_menu_append (GTK_MENU (menu), menu_item);
+       gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
 
        for (l = phases; l; l = l->next) {
                menu_item = gtk_menu_item_new_with_label (l->data);
                gtk_widget_show (menu_item);
-               gtk_menu_append (GTK_MENU (menu), menu_item);
+               gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
 
                g_object_set_data_full (G_OBJECT (menu_item),
                                        "data",
@@ -1266,7 +1266,7 @@ mpp_property_dialog_setup_option_menu (GtkWidget     *option_menu,
        for (str = str1, i = 0; str != NULL; str = va_arg (args, gpointer), i++) {
                menu_item = gtk_menu_item_new_with_label (str);
                gtk_widget_show (menu_item);
-               gtk_menu_append (GTK_MENU (menu), menu_item);
+               gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
 
                type = va_arg (args, gint);
 
diff --git a/src/planner-property-dialog.c b/src/planner-property-dialog.c
index ec97d94..3456637 100644
--- a/src/planner-property-dialog.c
+++ b/src/planner-property-dialog.c
@@ -166,7 +166,7 @@ property_dialog_setup_option_menu (GtkWidget     *option_menu,
        for (str = str1, i = 0; str != NULL; str = va_arg (args, gpointer), i++) {
                menu_item = gtk_menu_item_new_with_label (str);
                gtk_widget_show (menu_item);
-               gtk_menu_append (GTK_MENU (menu), menu_item);
+               gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
 
                type = va_arg (args, gint);
 
diff --git a/src/planner-resource-dialog.c b/src/planner-resource-dialog.c
index 6161ffc..9b3d831 100644
--- a/src/planner-resource-dialog.c
+++ b/src/planner-resource-dialog.c
@@ -271,7 +271,7 @@ resource_dialog_setup_option_menu (GtkWidget     *option_menu,
        for (str = str1, i = 0; str != NULL; str = va_arg (args, gpointer), i++) {
                menu_item = gtk_menu_item_new_with_label (str);
                gtk_widget_show (menu_item);
-               gtk_menu_append (GTK_MENU (menu), menu_item);
+               gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
 
                type = va_arg (args, gint);
 
@@ -311,7 +311,7 @@ resource_dialog_setup_option_groups (GtkWidget *menu_groups,
        /* Put "no group" at the top. */
        menu_item = gtk_menu_item_new_with_label (_("(None)"));
        gtk_widget_show (menu_item);
-       gtk_menu_append (GTK_MENU (menu), menu_item);
+       gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
 
        for (l = groups; l; l = l->next) {
                g_object_get (G_OBJECT (l->data),
@@ -324,7 +324,7 @@ resource_dialog_setup_option_groups (GtkWidget *menu_groups,
 
                menu_item = gtk_menu_item_new_with_label (name);
                gtk_widget_show (menu_item);
-               gtk_menu_append (GTK_MENU (menu), menu_item);
+               gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
 
                g_object_set_data (G_OBJECT (menu_item),
                                   "data",
diff --git a/src/planner-resource-input-dialog.c b/src/planner-resource-input-dialog.c
index ef2cb54..73ba280 100644
--- a/src/planner-resource-input-dialog.c
+++ b/src/planner-resource-input-dialog.c
@@ -99,7 +99,7 @@ resource_input_dialog_setup_groups (DialogData *data)
        /* Put "no group" at the top. */
        menu_item = gtk_menu_item_new_with_label (_("(None)"));
        gtk_widget_show (menu_item);
-       gtk_menu_append (GTK_MENU (menu), menu_item);
+       gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
 
        for (l = groups; l; l = l->next) {
                g_object_get (l->data,
@@ -112,7 +112,7 @@ resource_input_dialog_setup_groups (DialogData *data)
 
                menu_item = gtk_menu_item_new_with_label (name);
                gtk_widget_show (menu_item);
-               gtk_menu_append (GTK_MENU (menu), menu_item);
+               gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
 
                g_object_set_data (G_OBJECT (menu_item),
                                   "data",
diff --git a/src/planner-task-dialog.c b/src/planner-task-dialog.c
index 11830d9..63bb1da 100644
--- a/src/planner-task-dialog.c
+++ b/src/planner-task-dialog.c
@@ -290,7 +290,7 @@ task_dialog_setup_option_menu (GtkWidget     *option_menu,
        for (str = str1, i = 0; str != NULL; str = va_arg (args, gpointer), i++) {
                menu_item = gtk_menu_item_new_with_label (str);
                gtk_widget_show (menu_item);
-               gtk_menu_append (GTK_MENU (menu), menu_item);
+               gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
 
                type = va_arg (args, gint);
 


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