Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 265031 Details for
Bug 385951
Enhancement: Trusted Interface list cannot be selected when only using a keyboard.
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Test case for keyboard navigation problem.
keyboardnavigation.py (text/plain), 2.55 KB, created by
Thomas Woerner
on 2007-11-20 15:17:40 UTC
(
hide
)
Description:
Test case for keyboard navigation problem.
Filename:
MIME Type:
Creator:
Thomas Woerner
Created:
2007-11-20 15:17:40 UTC
Size:
2.55 KB
patch
obsolete
># ># Copyright (C) 2007 Red Hat, Inc. ># Authors: ># Thomas Woerner <twoerner@redhat.com> ># ># This program is free software; you can redistribute it and/or modify ># it under the terms of the GNU General Public License as published by ># the Free Software Foundation; either version 2 of the License, or ># (at your option) any later version. ># ># This program is distributed in the hope that it will be useful, ># but WITHOUT ANY WARRANTY; without even the implied warranty of ># MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ># GNU General Public License for more details. ># ># You should have received a copy of the GNU General Public License ># along with this program. If not, see <http://www.gnu.org/licenses/>. ># > >import gtk >import gobject > >window = gtk.Window(gtk.WINDOW_TOPLEVEL) >window.set_border_width(6) >window.connect("delete_event", gtk.main_quit) >window.set_default_size(200, 250) > >hbox = gtk.HBox(spacing=6) >window.add(hbox) > >button = gtk.Button("TEST") >hbox.pack_start(button, expand=False, fill=False) > >scrolledwin = gtk.ScrolledWindow() >scrolledwin.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC) >hbox.pack_end(scrolledwin) > >treeview = gtk.TreeView() >treeview.get_selection().set_mode(gtk.SELECTION_NONE) >store = gtk.ListStore(gobject.TYPE_BOOLEAN, gobject.TYPE_STRING, > gobject.TYPE_STRING) >sort = gtk.TreeModelSort(store) >treeview.set_model(sort) >scrolledwin.add(treeview) > >check = gtk.CellRendererToggle() >treeview.append_column(gtk.TreeViewColumn("", check, active=0)) > >def toggle_sort_cb(column, view): > model = view.get_model() > (_id, _order) = model.get_sort_column_id() > id = view.get_columns().index(column) > if _id == id: > # reverse order > if _order == gtk.SORT_ASCENDING: > order = gtk.SORT_DESCENDING > else: > order = gtk.SORT_ASCENDING > else: > view.get_column(_id).set_sort_indicator(False) > order = column.get_sort_order() > column.set_sort_indicator(True) > model.set_sort_column_id(id, order) > >column = gtk.TreeViewColumn("Text1", gtk.CellRendererText(), text=1) >column.set_clickable(True) >column.set_sort_indicator(True) >column.connect("clicked", toggle_sort_cb, treeview) >treeview.append_column(column) >sort.set_sort_column_id(1, gtk.SORT_ASCENDING) > >column = gtk.TreeViewColumn("Text2", gtk.CellRendererText(), text=2) >column.set_clickable(True) >column.set_sort_indicator(False) >column.connect("clicked", toggle_sort_cb, treeview) >treeview.append_column(column) > >for i in xrange(8): > store.append([i%2==0, "%d"%i, "String %d"%i]) > >window.show_all() >gtk.main()
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 385951
: 265031