Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(493)

Side by Side Diff: ui/gtk2/languagebar.py

Issue 5517048: Merge the devel branch (Closed) Base URL: git@github.com:phuang/ibus.git@devel
Patch Set: Rebase on HEAD Created 13 years ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 # vim:set et sts=4 sw=4: 1 # vim:set et sts=4 sw=4:
2 # 2 #
3 # ibus - The Input Bus 3 # ibus - The Input Bus
4 # 4 #
5 # Copyright(c) 2007-2010 Peng Huang <shawn.p.huang@gmail.com> 5 # Copyright(c) 2007-2010 Peng Huang <shawn.p.huang@gmail.com>
6 # Copyright(c) 2007-2010 Red Hat, Inc. 6 # Copyright(c) 2007-2010 Red Hat, Inc.
7 # 7 #
8 # This library is free software; you can redistribute it and/or 8 # This library is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU Lesser General Public 9 # modify it under the terms of the GNU Lesser General Public
10 # License as published by the Free Software Foundation; either 10 # License as published by the Free Software Foundation; either
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 props = self.__props 347 props = self.__props
348 if not props: 348 if not props:
349 return 349 return
350 350
351 self.__remove_properties() 351 self.__remove_properties()
352 item = SeparatorMenuItem() 352 item = SeparatorMenuItem()
353 item.show() 353 item.show()
354 self.__properties.append(item) 354 self.__properties.append(item)
355 menu.insert(item, 0) 355 menu.insert(item, 0)
356 356
357 about_label = _("About") + " - " + self.__im_name 357 about_label = _("About") + " - " + (self.__im_name or "")
358 prop = ibus.Property(key=u"about", 358 prop = ibus.Property(key=u"about",
359 label=unicode(about_label), 359 label=unicode(about_label),
360 icon=unicode(gtk.STOCK_ABOUT), 360 icon=unicode(gtk.STOCK_ABOUT),
361 tooltip=unicode(_("About the Input Method"))) 361 tooltip=unicode(_("About the Input Method")))
362 item = ImageMenuItem(prop = prop) 362 item = ImageMenuItem(prop = prop)
363 item.set_property("always-show-image", True) 363 item.set_property("always-show-image", True)
364 item.set_no_show_all(True) 364 item.set_no_show_all(True)
365 item.show() 365 item.show()
366 self.__properties.append(item) 366 self.__properties.append(item)
367 menu.insert(item, 0) 367 menu.insert(item, 0)
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 item.show() 402 item.show()
403 else: 403 else:
404 item.hide() 404 item.hide()
405 405
406 self.__properties.append(item) 406 self.__properties.append(item)
407 menu.insert(item, 0) 407 menu.insert(item, 0)
408 408
409 item.connect("property-activate", 409 item.connect("property-activate",
410 lambda w, n, s: self.emit("property-activate", n, s)) 410 lambda w, n, s: self.emit("property-activate", n, s))
411 411
OLDNEW
« src/tests/ibus-bus.c ('K') | « ui/gtk2/icon.py ('k') | ui/gtk2/main.py » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b