Skip to content

Commit

Permalink
Merge pull request #200 from thenaterhood/dev
Browse files Browse the repository at this point in the history
Next Release
  • Loading branch information
thenaterhood authored Jul 17, 2024
2 parents 9876e84 + 7137089 commit ec47e40
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions specs/gscreenshot.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
%define name gscreenshot
%define version 3.6.1
%define unmangled_version 3.6.1
%define version 3.6.2
%define unmangled_version 3.6.2
%define release 1

Summary: A simple screenshot tool
Expand Down
4 changes: 2 additions & 2 deletions src/gscreenshot/frontend/gtk/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,9 @@ def update_gallery_controls(self, screenshots:ScreenshotCollection):
self._gallery_position.set_text(
f"{screenshots.cursor()+1}{unsaved_marker}/{len(screenshots)}")
self._gallery_position.modify_bg(
Gtk.STATE_NORMAL,
Gtk.StateType.NORMAL,
self._window.get_style_context()
.get_background_color(Gtk.STATE_NORMAL)
.get_background_color(Gtk.StateType.NORMAL)
.to_color())
self._gallery_position.set_opacity(.5)

Expand Down
2 changes: 1 addition & 1 deletion src/gscreenshot/scaling/scaling_factor.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def get_scaling_from_gdk() -> typing.Optional[float]:
display = Gdk.Display.get_default()
monitor = display.get_primary_monitor() or display.get_monitor(0)
if monitor:
return monitor.get_scale_factor(0)
return monitor.get_scale_factor()
return None


Expand Down

0 comments on commit ec47e40

Please sign in to comment.