Skip to content
Snippets Groups Projects
Commit 68bd9e5d authored by Danny Auble's avatar Danny Auble
Browse files

add remove block for bluegene systems and removed alter grid for bluegene systems

parent 0672ce31
No related branches found
No related tags found
No related merge requests found
...@@ -147,6 +147,8 @@ static display_data_t options_data_block[] = { ...@@ -147,6 +147,8 @@ static display_data_t options_data_block[] = {
TRUE, ADMIN_PAGE}, TRUE, ADMIN_PAGE},
{G_TYPE_STRING, BLOCK_PAGE, "Put block in free state", {G_TYPE_STRING, BLOCK_PAGE, "Put block in free state",
TRUE, ADMIN_PAGE}, TRUE, ADMIN_PAGE},
{G_TYPE_STRING, BLOCK_PAGE, "Remove block",
TRUE, ADMIN_PAGE},
{G_TYPE_STRING, JOB_PAGE, "Jobs", TRUE, BLOCK_PAGE}, {G_TYPE_STRING, JOB_PAGE, "Jobs", TRUE, BLOCK_PAGE},
{G_TYPE_STRING, PART_PAGE, "Partitions", TRUE, BLOCK_PAGE}, {G_TYPE_STRING, PART_PAGE, "Partitions", TRUE, BLOCK_PAGE},
{G_TYPE_STRING, NODE_PAGE, "Base Partitions", TRUE, BLOCK_PAGE}, {G_TYPE_STRING, NODE_PAGE, "Base Partitions", TRUE, BLOCK_PAGE},
...@@ -766,6 +768,11 @@ extern int update_state_block(GtkDialog *dialog, ...@@ -766,6 +768,11 @@ extern int update_state_block(GtkDialog *dialog,
"in an error state?", "in an error state?",
blockid); blockid);
block_msg.state = RM_PARTITION_ERROR; block_msg.state = RM_PARTITION_ERROR;
} else if(!strcasecmp("Remove block", type)) {
snprintf(tmp_char, sizeof(tmp_char),
"Are you sure you want to remove block %s?",
blockid);
block_msg.state = RM_PARTITION_NAV;
} else { } else {
snprintf(tmp_char, sizeof(tmp_char), snprintf(tmp_char, sizeof(tmp_char),
"Are you sure you want to put block %s " "Are you sure you want to put block %s "
......
...@@ -410,7 +410,9 @@ static GtkWidget *_get_menubar_menu(GtkWidget *window, GtkWidget *notebook) ...@@ -410,7 +410,9 @@ static GtkWidget *_get_menubar_menu(GtkWidget *window, GtkWidget *notebook)
" </menu>" " </menu>"
" <menu action='options'>" " <menu action='options'>"
" <menuitem action='grid'/>" " <menuitem action='grid'/>"
#ifndef HAVE_BG
" <menuitem action='grid_specs'/>" " <menuitem action='grid_specs'/>"
#endif
" <menuitem action='interval'/>" " <menuitem action='interval'/>"
" <separator/>" " <separator/>"
" <menuitem action='admin'/>" " <menuitem action='admin'/>"
...@@ -502,7 +504,7 @@ static GtkWidget *_get_menubar_menu(GtkWidget *window, GtkWidget *notebook) ...@@ -502,7 +504,7 @@ static GtkWidget *_get_menubar_menu(GtkWidget *window, GtkWidget *notebook)
{"manual", GTK_STOCK_HELP, "_Manual", "<control>m"}, {"manual", GTK_STOCK_HELP, "_Manual", "<control>m"},
{"grid_specs", GTK_STOCK_EDIT, "Set Grid _Properties", {"grid_specs", GTK_STOCK_EDIT, "Set Grid _Properties",
"<control>p", "Change Grid Properties", "<control>p", "Change Grid Properties",
G_CALLBACK(change_grid_popup)} G_CALLBACK(change_grid_popup)},
}; };
GtkActionEntry admin_entries[] = { GtkActionEntry admin_entries[] = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment