Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gajim-plugins
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
Evert Mouw
gajim-plugins
Commits
657b820f
Commit
657b820f
authored
11 years ago
by
Dicson
Browse files
Options
Downloads
Patches
Plain Diff
GuiForMePlugin. available in py3
parent
ed66ede1
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
gui_for_me/__init__.py
+1
-1
1 addition, 1 deletion
gui_for_me/__init__.py
gui_for_me/gui_for_me.py
+12
-12
12 additions, 12 deletions
gui_for_me/gui_for_me.py
gui_for_me/manifest.ini
+1
-1
1 addition, 1 deletion
gui_for_me/manifest.ini
with
14 additions
and
14 deletions
gui_for_me/__init__.py
+
1
−
1
View file @
657b820f
from
gui_for_me
import
GuiForMe
from
.
gui_for_me
import
GuiForMe
This diff is collapsed.
Click to expand it.
gui_for_me/gui_for_me.py
+
12
−
12
View file @
657b820f
# -*- coding: utf-8 -*-
import
gtk
from
gi.repository
import
Gtk
from
gi.repository
import
GdkPixbuf
from
common
import
gajim
from
plugins
import
GajimPlugin
...
...
@@ -57,25 +58,24 @@ class Base(object):
def
create_buttons
(
self
):
# create juick button
actions_hbox
=
self
.
chat_control
.
xml
.
get_object
(
'
actions_hbox
'
)
self
.
button
=
g
tk
.
Button
(
label
=
None
,
stock
=
None
,
use_underline
=
True
)
self
.
button
.
set_property
(
'
relief
'
,
g
tk
.
R
ELIEF_
NONE
)
self
.
button
=
G
tk
.
Button
(
label
=
None
,
stock
=
None
,
use_underline
=
True
)
self
.
button
.
set_property
(
'
relief
'
,
G
tk
.
R
eliefStyle
.
NONE
)
self
.
button
.
set_property
(
'
can-focus
'
,
False
)
img
=
g
tk
.
Image
()
img
=
G
tk
.
Image
()
img_path
=
self
.
plugin
.
local_file_path
(
'
gui_for_me.png
'
)
pixbuf
=
gtk
.
gdk
.
p
ixbuf
_
new_from_file
(
img_path
)
iconset
=
g
tk
.
IconSet
(
pixbuf
=
pixbuf
)
factory
=
g
tk
.
IconFactory
()
pixbuf
=
GdkPixbuf
.
P
ixbuf
.
new_from_file
(
img_path
)
iconset
=
G
tk
.
IconSet
(
pixbuf
=
pixbuf
)
factory
=
G
tk
.
IconFactory
()
factory
.
add
(
'
gui_for_me
'
,
iconset
)
factory
.
add_default
()
img
.
set_from_stock
(
'
gui_for_me
'
,
g
tk
.
I
CON_SIZE_
MENU
)
img
.
set_from_stock
(
'
gui_for_me
'
,
G
tk
.
I
conSize
.
MENU
)
self
.
button
.
set_image
(
img
)
self
.
button
.
set_tooltip_text
(
_
(
'
Insert /me to conversation input box,
'
'
at cursor position
'
))
send_button
=
self
.
chat_control
.
xml
.
get_object
(
'
send_button
'
)
send_button_pos
=
actions_hbox
.
child_get_property
(
send_button
,
'
position
'
)
actions_hbox
.
add_with_properties
(
self
.
button
,
'
position
'
,
send_button_pos
-
1
,
'
expand
'
,
False
)
actions_hbox
.
pack_start
(
self
.
button
,
False
,
False
,
0
)
actions_hbox
.
reorder_child
(
self
.
button
,
len
(
actions_hbox
.
get_children
())
-
3
)
id_
=
self
.
button
.
connect
(
'
clicked
'
,
self
.
on_me_button_clicked
)
self
.
chat_control
.
handlers
[
id_
]
=
self
.
button
self
.
button
.
show
()
...
...
This diff is collapsed.
Click to expand it.
gui_for_me/manifest.ini
+
1
−
1
View file @
657b820f
...
...
@@ -7,4 +7,4 @@ authors: BomberMan
copper
Denis
Fomin
<fominde@gmail.com>
homepage:
http://trac-plugins.gajim.org/wiki/GUIForMePlugin
m
ax
_gajim_version:
0.1
5.9
m
in
_gajim_version:
0.1
6.10
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