Umi Uyuraのブログ

プログラミング関連の作業ログ

HomebrewにMeld 3.x系が来ていたのでインストールしてみた

Homebrewのアップデートを確認していたら、なんと homebrew/x11/meld の文字を発見。

公式サイト では、Windows版とLinux版は3.x系になっているのに、MacのHomebrewで提供されているバージョンはずっと1.8.x系と古いままだったのですが、ここにきてようやく最新版(3.12.3)になりました!

さっそく $ brew upgrade meld にてアップグレード!

新しいバージョンでは、GUIツールキットがX11からGTK+になったせいか、起動も早いし、見た目もOS Xネイティブに近づいた感じになっています。

テキストの比較画面。

f:id:umi-uyura:20150620142630p:plain

私がXcodeに同梱されているFileMergeと平行してMeldを使う理由である、フォルダ比較画面。

f:id:umi-uyura:20150620142728p:plain

若干コンパクトになった印象ですが、ツリー構造で比較できるのは、やはり良いですね。

そしてさらに、問題だったドラッグ&ドロップができるようになっています。

f:id:umi-uyura:20150620142811p:plain f:id:umi-uyura:20150620142859p:plain

Gtk-WARNING **: Error loading theme icon 〜 エラーの対処

実は、Meldをアップグレードしただけでは、起動後に以下の様なエラーが出てしまっていました。

1.8系でも出ていたもの (Homebrewで入れたMeldで発生するエラー(未解決)) もあれば、新しいエラーもあります。

$ meld
Couldn't bind the translation domain. Some translations won't work.
'module' object has no attribute 'bindtextdomain'
/usr/local/lib/python2.7/site-packages/meld/meldwindow.py:191: Warning: The property GtkSettings:gtk-menu-images is deprecated and shouldn't be used anymore. It will be removed in a future version.
  self.menubar = self.ui.get_widget('/Menubar')

(meld:37977): Gtk-WARNING **: Error loading theme icon 'document-new' for stock: Icon 'document-new' not present in theme Adwaita

(meld:37977): Gtk-WARNING **: Error loading theme icon 'go-up' for stock: Icon 'go-up' not present in theme Adwaita

(meld:37977): Gtk-WARNING **: Error loading theme icon 'go-down' for stock: Icon 'go-down' not present in theme Adwaita

(meld:37977): Gtk-WARNING **: Error loading theme icon 'process-stop' for stock: Icon 'process-stop' not present in theme Adwaita
/usr/local/lib/python2.7/site-packages/meld/ui/gnomeglade.py:45: Warning: The property GtkAlignment:yalign is deprecated and shouldn't be used anymore. It will be removed in a future version.
  self.builder.add_objects_from_file(filename, objects)
/usr/local/lib/python2.7/site-packages/meld/ui/gnomeglade.py:45: Warning: The property GtkAlignment:xscale is deprecated and shouldn't be used anymore. It will be removed in a future version.
  self.builder.add_objects_from_file(filename, objects)
/usr/local/lib/python2.7/site-packages/meld/ui/gnomeglade.py:45: Warning: The property GtkAlignment:yscale is deprecated and shouldn't be used anymore. It will be removed in a future version.
  self.builder.add_objects_from_file(filename, objects)
/usr/local/lib/python2.7/site-packages/meld/ui/gnomeglade.py:45: Warning: The property GtkAlignment:left-padding is deprecated and shouldn't be used anymore. It will be removed in a future version.
  self.builder.add_objects_from_file(filename, objects)
/usr/local/lib/python2.7/site-packages/meld/ui/gnomeglade.py:45: Warning: The property GtkImage:stock is deprecated and shouldn't be used anymore. It will be removed in a future version.
  self.builder.add_objects_from_file(filename, objects)
/usr/local/lib/python2.7/site-packages/meld/ui/gnomeglade.py:45: Warning: The property GtkButton:use-stock is deprecated and shouldn't be used anymore. It will be removed in a future version.
  self.builder.add_objects_from_file(filename, objects)
/usr/local/lib/python2.7/site-packages/meld/ui/gnomeglade.py:45: Warning: The property GtkSettings:gtk-button-images is deprecated and shouldn't be used anymore. It will be removed in a future version.
  self.builder.add_objects_from_file(filename, objects)

(meld:37977): Gtk-WARNING **: Error loading theme icon 'document-new' for stock: Icon 'document-new' not present in theme Adwaita

(meld:37977): Gtk-WARNING **: Error loading theme icon 'folder' for stock: Icon 'folder' not present in theme Adwaita

さらに、起動後の画面のこのような感じで、上の画面と比較すると、アイコン類が表示されていません。

f:id:umi-uyura:20150620142935p:plain

これらのうち、似たようなものが複数回出現している Gtk-WARNING **: Error loading theme icon 'document-new' for stock: Icon 'document-new' not present in theme Adwaita については、gnome-icon-themeというアイコンリソースを参照しているようなので、これをインストールしてあげれば出なくなります。

$ brew install gnome-icon-theme

先日こんなツールを作ったばかりだったのですが

umi-uyura.hatenablog.com

長らく放置状態だったのに、まさかツール作って1ヶ月もたたないうちに新バージョンが出てくるとは…。

まあ、ReactやNW.js、Material UIなどのお勉強ネタにできたので、良しとします。

とは言え、まだLaunchPad(とかAlfred)から起動できるという点に関しては利用できそうなので、いちおう手元には残してあります。

Mac100% Vol.23 (100%ムックシリーズ)

Mac100% Vol.23 (100%ムックシリーズ)