Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
norstbox
gajim
Commits
98090430
Commit
98090430
authored
Sep 20, 2006
by
Yann Leboulanger
Browse files
show MUC icon in st=ystray context menu. Fixes #2430
parent
f780a0fe
Changes
2
Show whitespace changes
Inline
Side-by-side
data/glade/systray_context_menu.glade
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>
src/systray.py
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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment