161 GtkWidget *property_label = NULL;
162 GtkWidget *value_label = NULL;
167 property_label = gtk_label_new (NULL);
168 g_object_set (G_OBJECT (property_label),
"xalign", 0.0, NULL);
170 gtk_label_set_markup (GTK_LABEL (property_label), markup);
173 gtk_grid_attach (grid, property_label, 0, *row, 1, 1);
174 gtk_widget_show (property_label);
178 value_label = gtk_label_new (NULL);
180 g_object_set (G_OBJECT (value_label),
184 "ellipsize", PANGO_ELLIPSIZE_END,
190 if (text == NULL || text[0] ==
'\000') {
196 markup = g_markup_printf_escaped (
"<i>%s</i>",
_(
"None"));
197 gtk_label_set_markup (GTK_LABEL (value_label), markup);
201 gtk_label_set_text (GTK_LABEL (value_label), valid_text);
206 gtk_grid_attach (grid, value_label, 1, *row, 1, 1);
210 if (property_label && value_label) {
211 atk_object_add_relationship (gtk_widget_get_accessible (property_label),
212 ATK_RELATION_LABEL_FOR,
213 gtk_widget_get_accessible (value_label));
214 atk_object_add_relationship (gtk_widget_get_accessible (value_label),
215 ATK_RELATION_LABELLED_BY,
216 gtk_widget_get_accessible (property_label));
219 gtk_widget_show (value_label);