Mercurial > pidgin
comparison src/gtkdialogs.c @ 10266:2a9ec10e0c4c
[gaim-migrate @ 11412]
This should set a label on the image in the about window of
"Gaim VERSION" for accessibility.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Fri, 26 Nov 2004 02:57:23 +0000 |
parents | a66cf83552dc |
children | ec140184437b |
comparison
equal
deleted
inserted
replaced
10265:d24de0d2aabd | 10266:2a9ec10e0c4c |
---|---|
168 GtkWidget *bbox; | 168 GtkWidget *bbox; |
169 GtkWidget *button; | 169 GtkWidget *button; |
170 GtkTextIter iter; | 170 GtkTextIter iter; |
171 GString *str; | 171 GString *str; |
172 int i; | 172 int i; |
173 AtkObject *obj; | |
173 | 174 |
174 if (about != NULL) { | 175 if (about != NULL) { |
175 gtk_window_present(GTK_WINDOW(about)); | 176 gtk_window_present(GTK_WINDOW(about)); |
176 return; | 177 return; |
177 } | 178 } |
189 | 190 |
190 vbox = gtk_vbox_new(FALSE, 12); | 191 vbox = gtk_vbox_new(FALSE, 12); |
191 gtk_container_add(GTK_CONTAINER(hbox), vbox); | 192 gtk_container_add(GTK_CONTAINER(hbox), vbox); |
192 | 193 |
193 logo = gtk_image_new_from_stock(GAIM_STOCK_LOGO, gtk_icon_size_from_name(GAIM_ICON_SIZE_LOGO)); | 194 logo = gtk_image_new_from_stock(GAIM_STOCK_LOGO, gtk_icon_size_from_name(GAIM_ICON_SIZE_LOGO)); |
195 obj = gtk_widget_get_accessible(logo); | |
196 atk_object_set_description(obj, "Gaim " VERSION); | |
194 gtk_box_pack_start(GTK_BOX(vbox), logo, FALSE, FALSE, 0); | 197 gtk_box_pack_start(GTK_BOX(vbox), logo, FALSE, FALSE, 0); |
195 | 198 |
196 frame = gaim_gtk_create_imhtml(FALSE, &text, NULL); | 199 frame = gaim_gtk_create_imhtml(FALSE, &text, NULL); |
197 gtk_box_pack_start(GTK_BOX(vbox), frame, TRUE, TRUE, 0); | 200 gtk_box_pack_start(GTK_BOX(vbox), frame, TRUE, TRUE, 0); |
198 | 201 |