{
GtkTreeModel *model;
GtkTreeIter iter;
- int umount = *(int *)user_data;
+ int umount;
char buf[1024];
int pos = 0;
int status = 0;
return;
gtk_tree_model_get(model, &iter, 1, &device, -1);
+ umount = !!device->mounted;
pipe(pipe_fd);
}
(void)column;
+ (void)user_data;
}
/**
list = gtk_tree_view_new();
gtk_container_add(GTK_CONTAINER(viewport), list);
- g_signal_connect(list, "row-activated", G_CALLBACK(&row_activated), &umount);
+ g_signal_connect(list, "row-activated", G_CALLBACK(&row_activated), NULL);
store = gtk_list_store_new(2, G_TYPE_STRING, G_TYPE_POINTER);
gtk_tree_view_set_model(GTK_TREE_VIEW(list), GTK_TREE_MODEL(store));