368 GtkTreeViewColumn * wcol[6];
369 GtkCellRenderer * wcell[6];
370 gchar * witle[6] = {
" ",
"Id.",
"Multiplicity",
"Letter",
"Symmetry",
"Coordinates"};
371 gchar * wtype[6]={
"text",
"text",
"text",
"text",
"text",
"text"};
372 GType w_type[6] = {G_TYPE_INT, G_TYPE_INT, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING};
373 GtkTreeStore * wmodel = gtk_tree_store_newv (6, w_type);
374 GtkWidget * wtree = gtk_tree_view_new_with_model(GTK_TREE_MODEL(wmodel));
377 wcell[i] = gtk_cell_renderer_text_new();
378 wcol[i] = gtk_tree_view_column_new_with_attributes(witle[i], wcell[i], wtype[i], i, NULL);
379 gtk_tree_view_append_column(GTK_TREE_VIEW(wtree), wcol[i]);
380 gtk_tree_view_column_set_cell_data_func (wcol[i], wcell[i],
set_wisible, GINT_TO_POINTER(i), NULL);
381 if (!i) gtk_tree_view_column_set_visible (wcol[i], FALSE);
383 fill_wyckoff_model (wmodel, spg);
384 g_object_unref (wmodel);
502 gchar * str = g_strdup_printf (
"%s info",
groups[spg ->
id-1]);
508 GtkWidget * ivbox[2];
521 str = g_strdup_printf (
"<b>%s</b>",
groups[spg ->
id-1]);
528 str = g_strdup_printf (
"<b>%d</b>", spg ->
id);
534 str = g_strdup_printf (
"%s", spg -> hms);
542 str = g_strdup_printf (
"<b>%s</b>", spg -> bravais);
552 str = g_strdup_printf (
"<b>%s</b>", str);
567 gtk_widget_set_size_request (bvimg, 200, 200);
568 gtk_widget_set_hexpand (bvimg, TRUE);
569 gtk_widget_set_vexpand (bvimg, TRUE);
579 GtkWidget * sbox = gtk_combo_box_new_with_model (
model);
580 g_object_unref (
model);
581 GtkCellRenderer * renderer = gtk_cell_renderer_combo_new ();
582 gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (sbox), renderer, TRUE);
583 gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (sbox), renderer,
"text", 0, NULL);
584 gtk_widget_set_size_request (sbox, 150, 25);
586 gtk_combo_box_set_active (GTK_COMBO_BOX(sbox), 0);
588 GList * cell_list = gtk_cell_layout_get_cells(GTK_CELL_LAYOUT(sbox));
589 if (cell_list && cell_list -> data)
591 gtk_cell_layout_set_attributes(GTK_CELL_LAYOUT(sbox), cell_list -> data,
"markup", 0, NULL);
596 add_box_child_start (GTK_ORIENTATION_HORIZONTAL,
info_hsbox,
markup_label(
get_so_string (spg, 0), 50, -1, 0.0, 0.5), FALSE, FALSE, 5);