| 1145 const gchar *existing_name; |
1145 const gchar *existing_name; |
| 1146 |
1146 |
| 1147 acc = gtk_widget_get_accessible (w); |
1147 acc = gtk_widget_get_accessible (w); |
| 1148 label = gtk_widget_get_accessible (l); |
1148 label = gtk_widget_get_accessible (l); |
| 1149 |
1149 |
| |
1150 /* Make sure mnemonics work */ |
| |
1151 gtk_label_set_mnemonic_widget(GTK_LABEL(l), w); |
| |
1152 |
| 1150 /* If this object has no name, set it's name with the label text */ |
1153 /* If this object has no name, set it's name with the label text */ |
| 1151 existing_name = atk_object_get_name (acc); |
1154 existing_name = atk_object_get_name (acc); |
| 1152 if (!existing_name) { |
1155 if (!existing_name) { |
| 1153 label_text = gtk_label_get_text (GTK_LABEL(l)); |
1156 label_text = gtk_label_get_text (GTK_LABEL(l)); |
| 1154 if (label_text) |
1157 if (label_text) |