Changeset 2dcd1179853d1ce84c3d10af10746179a0275244
- Timestamp:
- 06/03/08 17:56:29 (5 years ago)
- Author:
- Philipp Kern <pkern@…>
- Parents:
- eaafdd36b868f7b3b2d60ea8783e75c8aa9588e2
- Children:
- 6dd2f9c75a3a6fc2ee38db9717e1f2a236d49fda
- git-committer:
- Philipp Kern <pkern@debian.org> / 2008-06-03T17:56:29Z+0200
- Message:
-
accessibility for JoinDialog?
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
reaafdd3
|
r2dcd117
|
|
| | 1 | 2008-06-03 Philipp Kern <phil@0x539.de> |
| | 2 | |
| | 3 | * src/joindialog.cpp: implement accessibility |
| | 4 | |
| 1 | 5 | 2008-06-03 Philipp Kern <phil@0x539.de> |
| 2 | 6 | |
-
|
rbe1b56b
|
r2dcd117
|
|
| 17 | 17 | */ |
| 18 | 18 | |
| | 19 | #include <list> |
| | 20 | #include <iostream> |
| 19 | 21 | #include <gtkmm/stock.h> |
| 20 | 22 | #include <gtkmm/enums.h> |
| 21 | 23 | #include <gtkmm/alignment.h> |
| 22 | | #include <iostream> |
| | 24 | #include <atkmm/relationset.h> |
| | 25 | #include <atkmm/relation.h> |
| | 26 | #include <atkmm/object.h> |
| 23 | 27 | #include "common.hpp" |
| 24 | 28 | #include "joindialog.hpp" |
| … |
… |
|
| 149 | 153 | set_border_width(10); |
| 150 | 154 | set_resizable(true); |
| | 155 | |
| | 156 | // Add label associations to get proper accessibility. |
| | 157 | m_lbl_host.get_accessible()->get_relation_set()->set_add( |
| | 158 | Atk::Relation::create( |
| | 159 | std::list<Glib::RefPtr<Atk::Object> >(1, m_ent_host.get_accessible()), |
| | 160 | Atk::RELATION_LABEL_FOR) |
| | 161 | ); |
| | 162 | m_lbl_port.get_accessible()->get_relation_set()->set_add( |
| | 163 | Atk::Relation::create( |
| | 164 | std::list<Glib::RefPtr<Atk::Object> >(1, m_ent_port.get_accessible()), |
| | 165 | Atk::RELATION_LABEL_FOR) |
| | 166 | ); |
| | 167 | m_lbl_name.get_accessible()->get_relation_set()->set_add( |
| | 168 | Atk::Relation::create( |
| | 169 | std::list<Glib::RefPtr<Atk::Object> >(1, m_ent_name.get_accessible()), |
| | 170 | Atk::RELATION_LABEL_FOR) |
| | 171 | ); |
| | 172 | m_lbl_color.get_accessible()->get_relation_set()->set_add( |
| | 173 | Atk::Relation::create( |
| | 174 | std::list<Glib::RefPtr<Atk::Object> >(1, m_btn_color.get_accessible()), |
| | 175 | Atk::RELATION_LABEL_FOR) |
| | 176 | ); |
| 151 | 177 | } |
| 152 | 178 | |