Skip to content

Commit

Permalink
fix_msgtxtview_color
Browse files Browse the repository at this point in the history
  • Loading branch information
stokito committed Oct 28, 2023
1 parent cf47292 commit b3cf5e7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ def setsensitive_gpgwidgets(x=True):

# HELPER FUNCTIONS

def fix_msgtxtviewcolor(self, sensitive):
def fix_msgtxtview_color(self, sensitive):
"""Change Message area text to black when TextView insensitive."""
if sensitive:
fg_color = Gdk.Color(0, 0, 0)
Expand Down Expand Up @@ -498,7 +498,7 @@ def filemode_enablewidgets(self, x=True):
self.g_mpaste, self.g_msgtxtview]
for w in widgets:
w.set_sensitive(x)
self.fix_msgtxtviewcolor(x)
self.fix_msgtxtview_color(x)

# This is called when user tries to copyall, save, or {en,de}crypt/sign/verify
def test_msgbuff_isempty(self, message):
Expand Down Expand Up @@ -1122,7 +1122,7 @@ def launchxface(self, action):
return False
# Make TextView immutable to changes
self.g_msgtxtview.set_sensitive(False)
self.fix_msgtxtviewcolor(False)
self.fix_msgtxtview_color(False)

# enctoself
enctoself = self.g_enctoself.get_active()
Expand Down Expand Up @@ -1292,7 +1292,7 @@ def launchxface(self, action):
else:
self.set_stdstatus()
self.g_msgtxtview.set_sensitive(True)
self.fix_msgtxtviewcolor(True)
self.fix_msgtxtview_color(True)
if self.canceled: # User Canceled!
if action in {'enc', 'dec'}:
action = "{}rypt".format(action.title())
Expand Down

0 comments on commit b3cf5e7

Please sign in to comment.