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
98090430
Commit
98090430
authored
18 years ago
by
Yann Leboulanger
Browse files
Options
Downloads
Patches
Plain Diff
show MUC icon in st=ystray context menu. Fixes #2430
parent
f780a0fe
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
data/glade/systray_context_menu.glade
+7
-17
7 additions, 17 deletions
data/glade/systray_context_menu.glade
src/systray.py
+3
-0
3 additions, 0 deletions
src/systray.py
with
10 additions
and
17 deletions
data/glade/systray_context_menu.glade
+
7
−
17
View file @
98090430
...
...
@@ -2,6 +2,7 @@
<!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd">
<glade-interface>
<widget
class=
"GtkMenu"
id=
"systray_context_menu"
>
<child>
...
...
@@ -11,7 +12,7 @@
<property
name=
"use_underline"
>
True
</property>
<child
internal-child=
"image"
>
<widget
class=
"GtkImage"
id=
"image1
371
"
>
<widget
class=
"GtkImage"
id=
"image1
448
"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"stock"
>
gtk-network
</property>
<property
name=
"icon_size"
>
1
</property>
...
...
@@ -31,7 +32,7 @@
<property
name=
"use_underline"
>
True
</property>
<child
internal-child=
"image"
>
<widget
class=
"GtkImage"
id=
"image1
372
"
>
<widget
class=
"GtkImage"
id=
"image1
449
"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"stock"
>
gtk-jump-to
</property>
<property
name=
"icon_size"
>
1
</property>
...
...
@@ -45,22 +46,10 @@
</child>
<child>
<widget
class=
"Gtk
Image
MenuItem"
id=
"join_gc_menuitem"
>
<widget
class=
"GtkMenuItem"
id=
"join_gc_menuitem"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"label"
translatable=
"yes"
>
_Group Chat
</property>
<property
name=
"use_underline"
>
True
</property>
<child
internal-child=
"image"
>
<widget
class=
"GtkImage"
id=
"image1445"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"stock"
>
gtk-connect
</property>
<property
name=
"icon_size"
>
1
</property>
<property
name=
"xalign"
>
0.5
</property>
<property
name=
"yalign"
>
0.5
</property>
<property
name=
"xpad"
>
0
</property>
<property
name=
"ypad"
>
0
</property>
</widget>
</child>
</widget>
</child>
...
...
@@ -71,7 +60,7 @@
<property
name=
"use_underline"
>
True
</property>
<child
internal-child=
"image"
>
<widget
class=
"GtkImage"
id=
"image1
373
"
>
<widget
class=
"GtkImage"
id=
"image1
450
"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"stock"
>
gtk-new
</property>
<property
name=
"icon_size"
>
1
</property>
...
...
@@ -107,7 +96,7 @@
<signal
name=
"activate"
handler=
"on_show_roster_menuitem_activate"
last_modification_time=
"Sat, 29 Oct 2005 23:55:24 GMT"
/>
<child
internal-child=
"image"
>
<widget
class=
"GtkImage"
id=
"image1
374
"
>
<widget
class=
"GtkImage"
id=
"image1
451
"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"stock"
>
gtk-home
</property>
<property
name=
"icon_size"
>
1
</property>
...
...
@@ -144,4 +133,5 @@
</widget>
</child>
</widget>
</glade-interface>
This diff is collapsed.
Click to expand it.
src/systray.py
+
3
−
0
View file @
98090430
...
...
@@ -129,6 +129,9 @@ class Systray:
path
=
os
.
path
.
join
(
gajim
.
DATA_DIR
,
'
iconsets
'
,
iconset
,
'
16x16
'
)
state_images
=
gajim
.
interface
.
roster
.
load_iconset
(
path
)
if
state_images
.
has_key
(
'
muc_active
'
):
join_gc_menuitem
.
set_image
(
state_images
[
'
muc_active
'
])
for
show
in
(
'
online
'
,
'
chat
'
,
'
away
'
,
'
xa
'
,
'
dnd
'
,
'
invisible
'
):
uf_show
=
helpers
.
get_uf_show
(
show
,
use_mnemonic
=
True
)
item
=
gtk
.
ImageMenuItem
(
uf_show
)
...
...
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