- hp = g_list_next(hist);
- free(hp->data);
- hist = g_list_remove(hist, hp->data);
+ hp = g_list_next(hist);
+ free(hp->data);
+ hist = g_list_remove(hist, hp->data);
gtk_entry_set_text((GtkEntry *)entry1, "");
} else if (event->keyval == KEY_Up) {
if (!hc) {
gtk_entry_set_text((GtkEntry *)entry1, "");
} else if (event->keyval == KEY_Up) {
if (!hc) {
}
gtk_entry_set_text((GtkEntry *)entry1, (gchar *)hc->data);
} else if (event->keyval == KEY_Down) {
if (!hc) {
}
gtk_entry_set_text((GtkEntry *)entry1, (gchar *)hc->data);
} else if (event->keyval == KEY_Down) {
if (!hc) {
while (bnet_recv(UA_sock) > 0) {
def = strchr(UA_sock->msg, '=');
if (!def) {
while (bnet_recv(UA_sock) > 0) {
def = strchr(UA_sock->msg, '=');
if (!def) {
}
/* Where is an entry box */
if (strcmp(UA_sock->msg, "where") == 0) {
}
/* Where is an entry box */
if (strcmp(UA_sock->msg, "where") == 0) {
- entry = lookup_widget(run_dialog, "entry_where");
- gtk_entry_set_text(GTK_ENTRY(entry), def);
- continue;
+ entry = lookup_widget(run_dialog, "entry_where");
+ gtk_entry_set_text(GTK_ENTRY(entry), def);
+ continue;
}
item = g_list_find_custom(list, def, compare_func);
bsnprintf(cmd, sizeof(cmd), "combo_%s", UA_sock->msg);
combo = lookup_widget(run_dialog, cmd);
if (!combo) {
}
item = g_list_find_custom(list, def, compare_func);
bsnprintf(cmd, sizeof(cmd), "combo_%s", UA_sock->msg);
combo = lookup_widget(run_dialog, cmd);
if (!combo) {
}
pos = g_list_position(list, item);
gtk_list_select_item(GTK_LIST(GTK_COMBO(combo)->list), pos);
}
pos = g_list_position(list, item);
gtk_list_select_item(GTK_LIST(GTK_COMBO(combo)->list), pos);
- "run job=\"%s\" fileset=\"%s\" level=%s client=\"%s\" pool=\"%s\" "
- "when=\"%s\" where=\"%s\" storage=\"%s\"",
- job, fileset, level, client, pool, when, where, storage);
+ "run job=\"%s\" fileset=\"%s\" level=%s client=\"%s\" pool=\"%s\" "
+ "when=\"%s\" where=\"%s\" storage=\"%s\"",
+ job, fileset, level, client, pool, when, where, storage);
- "label volume=\"%s\" pool=\"%s\" storage=\"%s\" slot=%s",
- volume, pool, storage, slot);
+ "label name=\"%s\" pool=\"%s\" storage=\"%s\" slot=%s",
+ volume, pool, storage, slot);
- "restore select current fileset=\"%s\" client=\"%s\" pool=\"%s\" "
- "storage=\"%s\"", fileset, client, pool, storage);
+ "restore select current fileset=\"%s\" client=\"%s\" pool=\"%s\" "
+ "storage=\"%s\"", fileset, client, pool, storage);
write_director(cmd);
set_text(cmd, strlen(cmd));
gtk_widget_show(restore_file_selection);
write_director(cmd);
set_text(cmd, strlen(cmd));
gtk_widget_show(restore_file_selection);
while (bnet_recv(UA_sock) > 0) {
def = strchr(UA_sock->msg, '=');
if (!def) {
while (bnet_recv(UA_sock) > 0) {
def = strchr(UA_sock->msg, '=');
if (!def) {
- strcmp(UA_sock->msg, "when") == 0 ||
- strcmp(UA_sock->msg, "where") == 0 ||
- strcmp(UA_sock->msg, "messages") == 0 ||
- strcmp(UA_sock->msg, "level") == 0 ||
- strcmp(UA_sock->msg, "type") == 0) {
- continue;
+ strcmp(UA_sock->msg, "when") == 0 ||
+ strcmp(UA_sock->msg, "where") == 0 ||
+ strcmp(UA_sock->msg, "messages") == 0 ||
+ strcmp(UA_sock->msg, "level") == 0 ||
+ strcmp(UA_sock->msg, "type") == 0) {
+ continue;
}
item = g_list_find_custom(list, def, compare_func);
bsnprintf(cmd, sizeof(cmd), "combo_restore_%s", UA_sock->msg);
combo = lookup_widget(restore_dialog, cmd);
if (!combo) {
}
item = g_list_find_custom(list, def, compare_func);
bsnprintf(cmd, sizeof(cmd), "combo_restore_%s", UA_sock->msg);
combo = lookup_widget(restore_dialog, cmd);
if (!combo) {
}
pos = g_list_position(list, item);
gtk_list_select_item(GTK_LIST(GTK_COMBO(combo)->list), pos);
}
pos = g_list_position(list, item);
gtk_list_select_item(GTK_LIST(GTK_COMBO(combo)->list), pos);