Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eta
gajim
Commits
9a03441f
Commit
9a03441f
authored
19 years ago
by
nkour
Browse files
Options
Downloads
Patches
Plain Diff
coding standards, HIG plz adhere! :)
parent
b9e37da4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/dialogs.py
+8
-9
8 additions, 9 deletions
src/dialogs.py
with
8 additions
and
9 deletions
src/dialogs.py
+
8
−
9
View file @
9a03441f
...
...
@@ -534,7 +534,7 @@ class BaseTooltip:
self
.
id
=
None
def
populate
(
self
,
data
):
'''
this method must be overridenby all extenders
'''
'''
this method must be overriden
by all extenders
'''
self
.
create_window
()
self
.
win
.
add
(
gtk
.
Label
(
data
))
...
...
@@ -621,7 +621,7 @@ class StatusTable:
self
.
table
.
attach
(
self
.
text_lable
,
1
,
4
,
1
,
2
)
def
get_status_info
(
self
,
resource
,
priority
,
show
,
status
):
str_status
=
resource
+
'
(
'
+
str
(
priority
)
+
'
)
'
str_status
=
resource
+
'
(
'
+
str
(
priority
)
+
'
)
'
if
status
:
status
=
status
.
strip
()
if
status
!=
''
:
...
...
@@ -631,7 +631,7 @@ class StatusTable:
str_status
+=
'
-
'
+
status
return
gtkgui_helpers
.
escape_for_pango_markup
(
str_status
)
# "too long status make the tooltip large than the screen" problem
, reported by koorek
#
fix
"too long status make the tooltip large than the screen" problem
def
strip_text
(
self
,
text
,
max_length
):
text
=
text
.
strip
()
if
len
(
text
)
>
max_length
:
...
...
@@ -670,8 +670,7 @@ class NotificationAreaTooltip(BaseTooltip, StatusTable):
self
.
plugin
=
plugin
BaseTooltip
.
__init__
(
self
)
StatusTable
.
__init__
(
self
)
def
populate
(
self
,
data
):
self
.
create_window
()
self
.
create_table
()
...
...
@@ -696,8 +695,8 @@ class NotificationAreaTooltip(BaseTooltip, StatusTable):
# the other solution is to hide offline accounts
elif
status
==
'
offline
'
:
message
=
helpers
.
get_uf_show
(
status
)
accounts
.
append
({
'
name
'
:
account
,
'
status_line
'
:
single_line
,
'
show
'
:
status
,
'
message
'
:
message
})
accounts
.
append
({
'
name
'
:
account
,
'
status_line
'
:
single_line
,
'
show
'
:
status
,
'
message
'
:
message
})
unread_messages_no
=
self
.
plugin
.
roster
.
nb_unread
if
unread_messages_no
>
1
:
text
=
_
(
'
Gajim - %s unread messages
'
)
%
unread_messages_no
...
...
@@ -1039,7 +1038,7 @@ _('Without a connection, you can not change your password.')).get_response()
if
rep
==
gtk
.
RESPONSE_OK
:
password1
=
self
.
password1_entry
.
get_text
()
if
not
password1
:
ErrorDialog
(
_
(
'
Invalid password
.
'
),
ErrorDialog
(
_
(
'
Invalid password
'
),
_
(
'
You must enter a password.
'
)).
get_response
()
continue
password2
=
self
.
password2_entry
.
get_text
()
...
...
@@ -1350,7 +1349,7 @@ class XMLConsoleWindow:
#self.input_textview.set_name('input')
#s = '''\
style
"
console
"
{
GtkTextView
::
cursor
-
color
=
"
%s
"
}
#
style "console" { GtkTextView::cursor-color="%s" }
#widget "*.*.input" style : application "console"''' % '#FFFFFF'
#gtk.rc_parse_string(s)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment