Commit Graph

21 Commits

Author SHA1 Message Date
Teemu Ikonen 6bd0bb0530 Remove unused imports and pass statements
Fixes flake8 error F401.
Most errors were fixed by running

autoflake -i -r --remove-all-unused-imports .

which also removes unnecessary 'pass' statements, some by hand-editing.
2022-11-14 18:32:09 +02:00
Teemu Ikonen 222dba31be GtkBuilderWidget: Remove '_builder_expose' kwarg, add '_gtk_properties'
The '_builder_expose' argument to GtkBuilderWidget.__init__() allowed
binding of names in the ui-file to objects defined outside of the
ui-file.

Glade does not allow setting properties to values which are not defined
in the ui-file, so we set GTK/Gobject properties explicitly. This is
made with a new kwarg '_gtk_properties' in GtkBuilderWidget.__init__()
which is a dict with a (object_id, property_name) key.
2022-02-02 12:14:30 +02:00
MarkusHackspacher 82f41f4c21 sorting imports
with isort -y -rc
see #393
2018-07-24 11:08:10 +02:00
MarkusHackspacher c99fca923e fix E231 missing whitespace after ',' 2018-05-29 22:54:05 +02:00
MarkusHackspacher 0a851a1302 fix E265 block comment should start with '# ' 2018-05-16 18:17:52 +02:00
MarkusHackspacher a90fa0b521 fix W391 blank line at end of file 2018-02-11 21:51:40 +01:00
MarkusHackspacher 0c18a43d13 fix E302 and E303, only blank line change 2018-02-11 00:22:00 +01:00
MarkusHackspacher c1c841c08c Fix W293 blank line contains whitespace 2018-01-30 14:04:28 +01:00
Thomas Perl 5a7c30b359 Port to Python 3 2016-11-21 23:13:46 +01:00
Eric Le Lay 5a8ee1a3f1 first pass at Gio.Action conversion 2016-09-28 12:47:34 +02:00
Thomas Perl 9b8dbdc3a6 New try to do a minimal Gtk+3 port 2016-09-25 14:31:58 +02:00
Thomas Perl 66cc798b02 Remove set_finger_friendly + finger_friendly_widgets 2011-02-01 18:06:24 +01:00
Thomas Perl 1b519b27aa Remove config options: enable_fingerscroll and maemo_enable_gestures 2010-12-20 01:10:35 +01:00
Thomas Perl d7100371f9 Auto-convert gtk.Button from .ui files (Touch UI)
Convert all gtk.Button widgets loaded from .ui files to
finger-friendly widget if enable_fingerscroll is True.
2010-11-19 18:07:58 +01:00
Thomas Perl 5cf3f87d12 Desktop: Kinetic scrolling and finger friendly UI
Make the enable_fingerscroll option work on the Desktop
version as well if the libraries are available and make
sure that buttons are big in this case (for Tablet PCs).
2010-11-18 18:32:49 +01:00
Thomas Perl d3079bd67f Avoid "Creating new from file" messages 2010-05-27 18:21:21 +02:00
Thomas Perl f5b6cebfad mygpo: Better integration + Fremantle UI
Replace the JSON-based persistence layer with
"minidb", a SQLite-based object persistence
layer, and make the UI request changes from
the API client when it thinks it fits best.

Also, add a Hildonized UI of the mygpo settings
dialog for Maemo 5.
2010-01-28 17:39:10 +01:00
Thomas Perl c8a527020f Use gtk.Builder.get_name for widget IDs
This makes gPodder work again for newer versions
of GTK+ that have the bug with the widget name and
the GtkBuilder ID fixed. Thanks to Sampo Savola
and Klaus Doblmann for reporting the bug and
testing the fix on different platforms.
2010-01-22 00:21:47 +01:00
Thomas Perl 72307a6f06 Re-work kinetic scrolling on Maemo 4 2009-09-05 17:21:13 +02:00
Thomas Perl d2b326bcec Add support for multiple .ui file folders
This allows us to override specific files with
the same name on Maemo to provide a custom UI.
2009-09-01 23:59:20 +02:00
Thomas Perl 3cd4ab108b Rename gpodder.uibase to gpodder.gtkui.base
Cleans up the package structure of gPodder a bit :)
2009-08-13 23:41:34 +02:00
Renamed from src/gpodder/uibase.py (Browse further)