[g-a-devel]Another at-poke change
- From: "Padraig O'Briain" <Padraig Obriain Sun COM>
- To: gnome-accessibility-devel gnome org
- Subject: [g-a-devel]Another at-poke change
- Date: Tue, 8 Oct 2002 09:37:55 +0100 (BST)
This change corrects the display of the action interface. The description and
keybinding fields are now displayed correctly.
Padraig
Index: poke.c
===================================================================
RCS file: /cvs/gnome/at-poke/src/poke.c,v
retrieving revision 1.25
diff -u -p -r1.25 poke.c
--- poke.c 19 Sep 2002 16:45:45 -0000 1.25
+++ poke.c 8 Oct 2002 08:34:50 -0000
@@ -1188,23 +1188,28 @@ poke (Accessible *accessible)
}
{ /* action interface */
+ GtkTreeView *treeview;
+
poker->action_store = gtk_list_store_new (
3, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING);
poker->action_view = widget = glade_xml_get_widget (
poker->xml, "action_if_list");
- gtk_tree_view_set_model (GTK_TREE_VIEW (widget),
+ treeview = GTK_TREE_VIEW (widget);
+ gtk_tree_view_set_model (treeview,
GTK_TREE_MODEL (poker->action_store));
+
gtk_tree_view_insert_column_with_attributes (
- GTK_TREE_VIEW (widget), 0, "Name",
+ treeview, 0, "Name",
gtk_cell_renderer_text_new (), "text", 0, NULL);
gtk_tree_view_insert_column_with_attributes (
- GTK_TREE_VIEW (widget), 1, "Descr",
- gtk_cell_renderer_text_new (), "text", 0, NULL);
+ treeview, 1, "Descr",
+ gtk_cell_renderer_text_new (), "text", 1, NULL);
gtk_tree_view_insert_column_with_attributes (
- GTK_TREE_VIEW (widget), 2, "Keybinding",
- gtk_cell_renderer_text_new (), "text", 0, NULL);
+ treeview, 2, "Keybinding",
+ gtk_cell_renderer_text_new (), "text", 2, NULL);
+
g_signal_connect (widget, "row_activated",
G_CALLBACK (action_row_activated_cb),
poker);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]