Commit Graph

55 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
auouymous 8d0bfce460 Remove dead code in get_foreground_color(). 2021-10-13 15:34:26 -06:00
Oliver Smith 9b6149b9f3
gtkui: properly scale cover/pill on hires displays
Fix the cover images and "pill" looking blurry on high resolution
displays. For example, when the adaptive version of gPodder is used with
Phosh on the PinePhone.

Get the scale parameter from the gtkTreeView object and pass it down to
the cover thumbnail size and to draw_text_pill. If the scaling is not 1,
then use the new draw_iconcell_scale() function to draw the pixbuf with
high resolution.
2021-07-29 20:58:57 +02:00
Thomas Perl cf87ed8ee7 Gtk UI: draw_text_pill(): Make layouting calculations clearer 2021-01-15 12:54:17 +01:00
Eric Le Lay b18fa6674d fix linter warnings 2020-05-13 08:36:22 +02:00
Eric Le Lay 5340667b82 use TextView foreground, background, link colors 2020-05-10 16:55:47 +02:00
Eric Le Lay 0e04659d30 fix state unused in dray get_xx_color functions 2020-05-10 16:53:36 +02:00
Eric Le Lay a36a9ace22 dynamic channel cover icon based on tree text size
See #590
2019-01-24 19:03:42 +01:00
Eric Le Lay 1ad321def7 deduce progress bar size from treeAvailable text size
See #590
2019-01-24 18:44:03 +01:00
MarkusHackspacher 4baaa75ee4 fix E501 line too long
in lines with more than 145 characters
2018-09-07 06:52:32 +02:00
Eric Le Lay 3d2e7822be add missing require_version 2018-08-02 22:40:33 +02:00
MarkusHackspacher 735ec25fb7 not sort import gi and add isort to travis 2018-07-28 17:04:41 +02:00
MarkusHackspacher 3ce9cd55e7 remove too many blank lines 2018-07-24 14:11:05 +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 7188ef9f2f fix E201 whitespace after '('
Part 2
2018-05-27 20:09:40 +02:00
MarkusHackspacher 8eaa6a3c33 fix E251 unexpected spaces around keyword / parameter equals 2018-05-21 19:26:01 +02:00
MarkusHackspacher 2075ea8d5f fix E225 missing whitespace around operator 2018-04-17 14:39:05 +02:00
MarkusHackspacher 9a63417591 fix E226 missing whitespace around arithmetic operator
src/gpodder/gtkui/desktopfile.py
src/gpodder/gtkui/download.py
src/gpodder/gtkui/draw.py
2018-03-23 22:13:10 +01:00
MarkusHackspacher 43e2fbfed6 fix E111 indentation is not a multiple of four
E111 to E119 are solved, to check this is E11 im setup.cfg.
2018-03-01 22:25:02 +01:00
Eric Le Lay a4e87cd9b9 fix lint error 2018-02-24 18:46:39 +01:00
Eric Le Lay 27e0fe05a1 theme-aware foreground and background for shownotes
when a channel is selected
2018-02-15 23:09:25 +01:00
MarkusHackspacher 0c18a43d13 fix E302 and E303, only blank line change 2018-02-11 00:22:00 +01:00
MarkusHackspacher 955499fcd1 fix E305 expected 2 blank lines after class or function definition 2018-02-10 11:11:20 +01:00
Thomas Perl 98ec45a712 Update copyright years (2018) 2018-01-28 19:39:53 +01:00
Thomas Perl 7b46a0ee72 Update copyright years (2017) 2017-12-16 13:54:59 +01:00
Adam Voss d2a9d58524 Changes since Python3 does floating point division
This was done based on a manual search for the '/' character.  No efforts were made to try to run all affected code paths.
2017-02-14 08:53:47 -06:00
Thomas Perl 5a7c30b359 Port to Python 3 2016-11-21 23:13:46 +01:00
Eric Le Lay 6cb0123aed single quote strings in updated code 2016-10-02 19:34:24 +02:00
Eric Le Lay eb1404ff37 gtk3 fixes and cleanup 2016-09-28 11:58:37 +02:00
Eric Le Lay 9d56e65994 draw centered_text, pills, cake
Shows "Please Select an episode" when shownotes shown and refreshing
channels without new episodes.

Shows downloaded and new count after channel name

Shows download progress before episodes
2016-09-28 11:58:37 +02:00
Thomas Perl 9b8dbdc3a6 New try to do a minimal Gtk+3 port 2016-09-25 14:31:58 +02:00
Thomas Perl 24ec3e0a9d Remove broken Flattr integration 2016-02-03 20:26:07 +01:00
Thomas Perl 36eefc8a30 Update copyright years (2016) 2016-01-15 15:22:52 +01:00
Thomas Perl aa72634950 Update copyright years (2015) 2015-05-24 19:33:39 +02:00
Thomas Perl 553e35f219 Update copyright years (2014) 2014-02-27 21:55:13 +01:00
Dov Feldstern 17b48d0df5 Restore "progressbar_pixbuf" from gpodder.gtkui.draw
This was removed in 34b54e94b8, since it was no
longer used. However, in the next changset we will start using it again.

Although we're about to use it from the extension, it makes a certain amount of
sense to add it back into draw rather than into the extension, since it uses
some other functions from draw, and is also generic in the sense that it could
conceivably be used elsewhere.

--HG--
extra : rebase_source : ef7edc382dfcd2537c2b3b08ded9cf103d13c41b
2014-02-03 01:13:08 +02:00
Thomas Perl bda982be02 Update copyright years for 2013 2013-03-05 16:38:48 +01:00
Bernd Schlapsi beaf1a6d69 Flattr integration (bug 1576) 2012-07-13 13:00:39 +02:00
Thomas Perl 6b7bff36dc Gtk: Set fixed icon size for episode list
Avoids rendering problems on Windows and with
Gtk themes that have different icon sizes.
2012-03-03 21:14:42 +01:00
Thomas Perl 34f4001cae Gtk UI: Download progress icon in episode list 2012-02-05 23:42:23 +01:00
Thomas Perl 5205a4b71d Update copyright years (add 2012) 2012-01-09 21:19:24 +01:00
Thomas Perl 2417503478 Gtk UI: Add padding right to the pill (bug 1533)
In recent versions of Ubuntu, the scroll bars are
drawn as overlays onto the content area, thereby
requiring a bit of padding on the right side of
the content area. It doesn't do much harm on other
distros, so we enable it in general.
2012-01-09 13:06:53 +01:00
Thomas Perl 7fef70e658 Remove support for Fremantle Gtk+ UI
We will only support the QML UI on Fremantle in "tres".
2011-07-16 18:35:14 +02:00
Thomas Perl 34b54e94b8 Remove "progressbar_pixbuf" from gpodder.gtkui.draw 2011-07-15 17:57:13 +02:00
Thomas Perl 4376057001 Update copyright years 2011-04-01 18:59:53 +02:00
Thomas Perl de70bddcd4 Fix two unassigned variable errors 2010-05-17 18:31:54 +02:00
Thomas Perl 709c1744ad Rounded corners for loading progress bar 2010-04-25 21:38:53 +02:00
Thomas Perl 62a8d93376 Optimize episode list model loading (and add progress bar)
Don't reload every episode when generating the list store
model for the episode list view. Also, show a progress bar
during the "Loading episodes..." state, so slower netbooks
and devices running Maemo give the user progress details.
2010-03-01 17:48:56 +01:00
Thomas Perl 181564f1b7 Add 2010 to the years in copyright notice
The following command has been used:

grep -r '2005-2009 Thomas Perl and the gPodder Team' * | cut -d: -f1 |
xargs sed -i -e 's/2005-2009 Thomas Perl and the gPodder Team/2005-2010
Thomas Perl and the gPodder Team/g'
2010-01-02 17:35:42 +01:00