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 693405 Details for
Bug 907946
GtkEntryCompletion for GtkCombobox's GtkEntry doesn't render correctly if loaded from the glade file
[?]
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.
no-glade reproducer for the working (non glade) case
combobox_noglade.py (text/x-python), 1.93 KB, created by
Vratislav Podzimek
on 2013-02-05 15:12:18 UTC
(
hide
)
Description:
no-glade reproducer for the working (non glade) case
Filename:
MIME Type:
Creator:
Vratislav Podzimek
Created:
2013-02-05 15:12:18 UTC
Size:
1.93 KB
patch
obsolete
>#!/usr/bin/python > >from gi.repository import Gtk > >def print_args(*args): > for arg in args: > print arg > >def print_match_selected(completion, model, itr): > print "Selected: %s" % model[itr][0] > >def on_popup_shown(combobox, shown): > if not combobox.get_property("popup-shown"): > model = combobox.get_model() > itr = combobox.get_active_iter() > print model > print itr > >def on_combo_changed(combobox, entry): > if not entry.has_focus(): > model = combobox.get_model() > itr = combobox.get_active_iter() > print "Selected: %s" % model[itr][0] > >def on_entry_left(entry, event): > text = entry.get_text() > combo = entry.get_parent() > model = combo.get_model() > for row in model: > if text in row: > return > > print "Wrong text" > >model = Gtk.ListStore(str) >model.append(["ahoj"]) >model.append(["cau"]) >model.append(["nazdar"]) > >combobox = Gtk.ComboBox.new_with_entry() >combobox.set_model(model) >combobox.set_entry_text_column(0) >#combobox.connect("notify::popup-shown", on_popup_shown) > >cellrendr = Gtk.CellRendererText() > >completion = Gtk.EntryCompletion() >completion.set_model(model) >completion.set_text_column(0) >completion.pack_start(cellrendr, True) >completion.connect("match-selected", print_match_selected) > >entry = combobox.get_child() >entry.set_editable(True) >entry.set_completion(completion) >#entry.connect("activate", print_args) >entry.connect("focus-out-event", on_entry_left) > >combobox.connect("changed", on_combo_changed, entry) > >box = Gtk.Box(Gtk.Orientation.VERTICAL) >box.pack_start(combobox, False, False, 0) >box.pack_end(Gtk.Button(), False, False, 0) > >window = Gtk.Window() >window.set_size_request(100, 300) >window.set_position(Gtk.WindowPosition.CENTER) >window.add(box) >window.connect("destroy", lambda w: Gtk.main_quit()) > >if __name__ == "__main__": > print "ListStore items:" > for row in model: > print row[0] > print > > 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 Raw
Actions:
View
Attachments on
bug 907946
:
693403
|
693404
| 693405