pidgin/pidginpluginsmenu.c

changeset 40888
b19789161e29
parent 40600
46d10c72c137
child 40896
031172d26bef
equal deleted inserted replaced
40887:536b09356b6b 40888:b19789161e29
79 } 79 }
80 80
81 submenu = gtk_menu_new(); 81 submenu = gtk_menu_new();
82 82
83 for(i = 0; actions != NULL; i++) { 83 for(i = 0; actions != NULL; i++) {
84 PurplePluginAction *action = (PurplePluginAction *)actions->data; 84 PurplePluginAction *action = NULL;
85 GSimpleAction *gaction = NULL; 85 GSimpleAction *gaction = NULL;
86 GtkWidget *action_item = NULL; 86 GtkWidget *action_item = NULL;
87 gchar *action_base_name = NULL; 87 gchar *action_base_name = NULL;
88 gchar *action_full_name = NULL; 88 gchar *action_full_name = NULL;
89 89
90 action = (PurplePluginAction *)actions->data;
91 if(action == NULL) {
92 action_item = gtk_separator_menu_item_new();
93 gtk_widget_show(action_item);
94 gtk_menu_shell_append(GTK_MENU_SHELL(submenu), action_item);
95
96 actions = g_list_delete_link(actions, actions);
97
98 continue;
99 }
100
90 if(action->label == NULL) { 101 if(action->label == NULL) {
102 actions = g_list_delete_link(actions, actions);
103
104 g_warn_if_reached();
105
91 continue; 106 continue;
92 } 107 }
93 108
94 action_base_name = g_strdup_printf("%s-%d", 109 action_base_name = g_strdup_printf("%s-%d",
95 gplugin_plugin_info_get_id(info), 110 gplugin_plugin_info_get_id(info),

mercurial