Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • gajim/gajim-plugins
  • lovetox/gajim-plugins
  • ag/gajim-plugins
  • FlorianMuenchbach/gajim-plugins
  • rom1dep/gajim-plugins
  • pitchum/gajim-plugins
  • wurstsalat/gajim-plugins
  • Dicson/gajim-plugins
  • andre/gajim-plugins
  • link2xt/gajim-plugins
  • marmistrz/gajim-plugins
  • Jens/gajim-plugins
  • muelli/gajim-plugins
  • asterix/gajim-plugins
  • orhideous/gajim-plugins
  • ngvelprz/gajim-plugins
  • appleorange1/gajim-plugins
  • Martin/gajim-plugins
  • maltel/gajim-plugins
  • Seve/gajim-plugins
  • evert-mouw/gajim-plugins
  • Yuki/gajim-plugins
  • mxre/gajim-plugins
  • ValdikSS/gajim-plugins
  • SaltyBones/gajim-plugins
  • comradekingu/gajim-plugins
  • ritzmann/gajim-plugins
  • genofire/gajim-plugins
  • jjrh/gajim-plugins
  • yarmak/gajim-plugins
  • PapaTutuWawa/gajim-plugins
  • weblate/gajim-plugins
  • XutaxKamay/gajim-plugins
  • nekk/gajim-plugins
  • principis/gajim-plugins
  • cbix/gajim-plugins
  • bodqhrohro/gajim-plugins
  • airtower-luna/gajim-plugins
  • toms/gajim-plugins
  • mesonium/gajim-plugins
  • lissine/gajim-plugins
  • anviar/gajim-plugins
42 results
Show changes
Showing
with 154 additions and 115 deletions
......@@ -16,11 +16,6 @@ NS_XHTML_IM = 'http://jabber.org/protocol/xhtml-im' # XEP-0071
class ImagePlugin(GajimPlugin):
@log_calls('ImagePlugin')
def init(self):
self.description = _('This plugin is designed to send '
'a small(0 - 40 kb) graphic image to your contact.\n'
'Client on the other side must support XEP-0071: XHTML-IM'
' and maintain the scheme data: URI.\n'
'Psi+ and Jabbim supported this.')
self.config_dialog = None # ImagePluginConfigDialog(self)
self.controls = []
self.gui_extension_points = {
......@@ -136,8 +131,8 @@ class Base(object):
msg = 'HTML image'
extension = os.path.splitext(os.path.split(path_to_file)[1])[1] \
.lower()[1:]
xhtml = ' <img alt="img" src="data:image/%s;base64,%s"/>' % (
extension, img)
xhtml = '<body><br/> <img alt="img" src="data:image/%s;base64,%s"/> \
</body>' % (extension, img)
self.chat_control.send_message(message=msg, xhtml=xhtml)
self.chat_control.msg_textview.grab_focus()
......
[info]
name: Image
short_name: image
version: 0.5
description: This plugin is designed to send a small(0 - 40 kb) graphic image to your contact.
Client on the other side must support XEP-0071: XHTML-IM and maintain the scheme data: URI.
version: 0.5.1
description: This plugin is designed to send a small(0 - 40 kb) graphic image to your contact.<br/>
Client on the other side must support <a href="http://xmpp.org/extensions/xep-0071.html">XEP-0071: XHTML-IM</a> and maintain the scheme data: URI.<br/>
Psi+ and Jabbim supported this.
authors: Denis Fomin <fominde@gmail.com>
homepage: http://trac-plugins.gajim.org/wiki/ImagePlugin
max_gajim_version: 0.16.9
......@@ -6,6 +6,7 @@
<child>
<object class="GtkVBox" id="vbox1">
<property name="visible">True</property>
<property name="border_width">9</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkCheckButton" id="checkbutton">
......
[info]
name: Juick
short_name: Juick
version: 0.9.3
description: Clickable Juick links , Juick nicks, preview Juick picturs.
version: 0.9.6
description: Clickable Juick links , Juick nicks, preview Juick picturs.<br/>
The key combination alt + up in the textbox allow insert the number of last message (comment or topic).
authors: Denis Fomin <fominde@gmail.com>
evgen <drujebober@gmail.com>
homepage: http://trac-plugins.gajim.org/wiki/JuickPlugin
min_gajim_version: 0.16
max_gajim_version: 0.16.9
This diff is collapsed.
......@@ -9,6 +9,7 @@
<child>
<object class="GtkVBox" id="vbox1">
<property name="visible">True</property>
<property name="border_width">9</property>
<property name="orientation">vertical</property>
<property name="spacing">6</property>
<child>
......
......@@ -281,8 +281,6 @@ class LatexPluginConfiguration(GajimPluginConfigDialog):
class LatexPlugin(GajimPlugin):
def init(self):
self.description = _('Invoke Latex to render $$foobar$$ sourrounded ' \
'Latex equations. Needs latex and dvipng or ImageMagick.')
self.config_dialog = LatexPluginConfiguration(self)
self.config_default_values = {'png_dpi': ('108', '')}
......@@ -291,6 +289,8 @@ class LatexPlugin(GajimPlugin):
self.disconnect_from_chat_control_base)
}
self.test_activatable()
self.timeout_id = None
self.last_eol_offset = -1
def test_activatable(self):
"""
......@@ -357,23 +357,47 @@ class LatexPlugin(GajimPlugin):
"""
called when conversation text widget changes
"""
def split_list(list):
def split_list(list_):
newlist = []
for i in range(0, len(list)-1, 2):
newlist.append( [ list[i], list[i+1], ] )
for i in range(0, len(list_)-1, 2):
newlist.append( [ list_[i], list_[i+1], ] )
return newlist
assert isinstance(tb, gtk.TextBuffer)
start_iter = tb.get_start_iter()
points = []
tuple_found = start_iter.forward_search('$$', gtk.TEXT_SEARCH_TEXT_ONLY)
while tuple_found != None:
points.append(tuple_found)
tuple_found = tuple_found[1].forward_search('$$',
def detect_tags(tb, start_it=None, end_it=None):
self.timeout_id = None
if not end_it:
end_it = tb.get_end_iter()
if not start_it:
eol_tag = tb.get_tag_table().lookup('eol')
start_it = end_it.copy()
start_it.backward_to_tag_toggle(eol_tag)
points = []
tuple_found = start_it.forward_search('$$',
gtk.TEXT_SEARCH_TEXT_ONLY)
for pair in split_list(points):
tb.apply_tag_by_name('latex', pair[0][1], pair[1][0])
while tuple_found != None:
points.append(tuple_found)
tuple_found = tuple_found[1].forward_search('$$',
gtk.TEXT_SEARCH_TEXT_ONLY)
for pair in split_list(points):
tb.apply_tag_by_name('latex', pair[0][1], pair[1][0])
end_iter = tb.get_end_iter()
eol_tag = tb.get_tag_table().lookup('eol')
it = end_iter.copy()
it.backward_to_tag_toggle(eol_tag)
if it.get_offset() == self.last_eol_offset:
if self.timeout_id:
gobject.source_remove(self.timeout_id)
self.timeout_id = gobject.timeout_add(100, detect_tags, tb, it, end_iter)
else:
if self.timeout_id:
gobject.source_remove(self.timeout_id)
it1 = it.copy()
it1.backward_char()
it1.backward_to_tag_toggle(eol_tag)
detect_tags(tb, it1, it)
self.last_eol_offset = it.get_offset()
def connect_with_chat_control_base(self, chat_control):
d = {}
......@@ -383,7 +407,7 @@ class LatexPlugin(GajimPlugin):
self.latex_tag = gtk.TextTag('latex')
self.latex_tag.set_property('foreground', 'blue')
self.latex_tag.set_property('underline', 'single')
d['tag_id'] = self.latex_tag.connect('event', self.textview_event_after)
self.latex_tag.connect('event', self.textview_event_after)
tb.get_tag_table().add(self.latex_tag)
d['h_id'] = tb.connect('changed', self.textbuffer_live_latex_expander)
......@@ -394,7 +418,10 @@ class LatexPlugin(GajimPlugin):
def disconnect_from_chat_control_base(self, chat_control):
d = chat_control.latexs_expander_plugin_data
tv = chat_control.conv_textview.tv
tb = tv.get_buffer()
tv.get_buffer().disconnect(d['h_id'])
self.latex_tag.disconnect(d['tag_id'])
tag_table = tb.get_tag_table()
tt = tag_table.lookup('latex')
if tt:
tag_table.remove(tt)
[info]
name: Latex
short_name: latex
version: 0.2
description: render received latex code
version: 0.2.3
description: Invoke Latex to render $$foobar$$ sourrounded Latex equations. Needs latex and dvipng or ImageMagick.
authors: Yves Fischer <yvesf@xapek.org>
Yann Leboulanger <asterix@lagaule.org>
homepage: http://trac-plugins.gajim.org/wiki/LatexPlugin
max_gajim_version: 0.16.9
......@@ -36,8 +36,6 @@ class LengthNotifierPlugin(GajimPlugin):
@log_calls('LengthNotifierPlugin')
def init(self):
self.description = _('Highlights message entry field in chat window '
'when given length of message is exceeded.')
self.config_dialog = LengthNotifierPluginConfigDialog(self)
self.gui_extension_points = {
......
This diff is collapsed.
......@@ -6,6 +6,7 @@
<child>
<object class="GtkVBox" id="vbox1">
<property name="visible">True</property>
<property name="border_width">9</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkVBox" id="vbox3">
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.