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
Weblate
gajim
Commits
89393962
Commit
89393962
authored
12 years ago
by
Daniel Aleksandersen
Browse files
Options
Downloads
Patches
Plain Diff
Use the icon sizing solution from ticket #6839 for all dialogs.
History manager’s icon was 16px in Unity launcher. Fixes #7290
parent
479a9cb8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/gajim.py
+8
-2
8 additions, 2 deletions
src/gajim.py
src/history_manager.py
+8
-3
8 additions, 3 deletions
src/history_manager.py
with
16 additions
and
5 deletions
src/gajim.py
+
8
−
2
View file @
89393962
...
...
@@ -384,8 +384,14 @@ if pid_alive():
if
(
show_remote_gajim_roster
()):
print
(
"
Gajim is already running, bringing the roster to front...
"
)
sys
.
exit
(
0
)
pix
=
gtkgui_helpers
.
get_icon_pixmap
(
'
gajim
'
,
48
)
gtk
.
window_set_default_icon
(
pix
)
# set the icon to all newly opened wind
pixs
=
[]
for
size
in
(
16
,
32
,
48
,
64
,
128
):
pix
=
gtkgui_helpers
.
get_icon_pixmap
(
'
gajim
'
,
size
)
if
pix
:
pixs
.
append
(
pix
)
if
pixs
:
# set the icon to all windows
gtk
.
window_set_default_icon_list
(
*
pixs
)
pritext
=
_
(
'
Gajim is already running
'
)
sectext
=
_
(
'
Another instance of Gajim seems to be running
\n
Run anyway?
'
)
dialog
=
dialogs
.
YesNoDialog
(
pritext
,
sectext
)
...
...
This diff is collapsed.
Click to expand it.
src/history_manager.py
+
8
−
3
View file @
89393962
...
...
@@ -108,9 +108,14 @@ import sqlite3 as sqlite
class
HistoryManager
:
def
__init__
(
self
):
pix
=
gtkgui_helpers
.
get_icon_pixmap
(
'
gajim
'
)
# set the icon to all newly opened windows
gtk
.
window_set_default_icon
(
pix
)
pixs
=
[]
for
size
in
(
16
,
32
,
48
,
64
,
128
):
pix
=
gtkgui_helpers
.
get_icon_pixmap
(
'
gajim
'
,
size
)
if
pix
:
pixs
.
append
(
pix
)
if
pixs
:
# set the icon to all windows
gtk
.
window_set_default_icon_list
(
*
pixs
)
if
not
os
.
path
.
exists
(
LOG_DB_PATH
):
dialogs
.
ErrorDialog
(
_
(
'
Cannot find history logs database
'
),
...
...
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