From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kada Situ Newsgroups: gmane.emacs.help Subject: emacs image question Date: Wed, 9 Dec 2009 18:38:27 -0800 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0016e68786c6ada740047a56b30d X-Trace: ger.gmane.org 1260412749 7391 80.91.229.12 (10 Dec 2009 02:39:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Dec 2009 02:39:09 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 10 03:39:01 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NIYvl-0001oD-Af for geh-help-gnu-emacs@m.gmane.org; Thu, 10 Dec 2009 03:39:01 +0100 Original-Received: from localhost ([127.0.0.1]:54170 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NIYvk-0000GE-Or for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Dec 2009 21:39:00 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NIYvL-0000Fd-9F for help-gnu-emacs@gnu.org; Wed, 09 Dec 2009 21:38:35 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NIYvG-0000Dc-La for help-gnu-emacs@gnu.org; Wed, 09 Dec 2009 21:38:35 -0500 Original-Received: from [199.232.76.173] (port=44628 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NIYvG-0000DQ-EO for help-gnu-emacs@gnu.org; Wed, 09 Dec 2009 21:38:30 -0500 Original-Received: from mail-pz0-f192.google.com ([209.85.222.192]:61580) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NIYvF-0003iM-Li for help-gnu-emacs@gnu.org; Wed, 09 Dec 2009 21:38:30 -0500 Original-Received: by pzk30 with SMTP id 30so5874067pzk.24 for ; Wed, 09 Dec 2009 18:38:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=ULgYMKRHhf9aN4DzBItbEhz+z5/zsdVPY8qp79f6eEo=; b=KWBi+X48Ti5ElqSP2epGQgbJEn7ukzxdYYCCOrpoFtHoKDmmn0gCUg4YCsCfOrXc75 ki4mkG5Pu0MAzjJ5WSiDgcbxZmNNGJlyw2ECSmbl0PTUIimQCkhe+hN2euQQNEydJigM b5UFfaJvu9bwcWneIbFUcNl5GClxBCBnMgFa4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=wlKnG9c4wjTIjXB2YDM/cGcOEvdw+MNQKv31fiu8V7KTULLLAeRQGBD52ZS/DHa3I8 nvqnhQlm+y52pTj0yeZ5Sy6DBBVO41KofTCVpLGmVDr+ZyC7jqt88BAEvr91aZAE7lel nc3xLNMasEr9xqXjsSnDWMtluyJVkzRBDAXbA= Original-Received: by 10.114.252.28 with SMTP id z28mr12085081wah.122.1260412707120; Wed, 09 Dec 2009 18:38:27 -0800 (PST) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:70541 Archived-At: --0016e68786c6ada740047a56b30d Content-Type: text/plain; charset=ISO-8859-1 Hi, I am using tabbar and trying to modify it's look & feel. Here is the code copy&paste straight from tabbar.el (2.0), it's also available here: http://emhacks.cvs.sourceforge.net/*checkout*/emhacks/emhacks/tabbar.el?revision=1.69 (defconst tabbar-home-button-enabled-image '((:type pbm :data "\ P2 13 13 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 0 6 0 255 255 255 255 255 255 255 255 255 255 9 130 9 255 255 255 255 255 255 255 255 255 255 26 130 26 255 255 255 255 255 255 255 0 9 26 41 130 41 26 9 0 255 255 255 255 5 145 140 135 130 125 120 115 5 255 255 255 255 0 9 26 41 130 41 26 9 0 255 255 255 255 255 255 255 26 130 26 255 255 255 255 255 255 255 255 255 255 9 130 9 255 255 255 255 255 255 255 255 255 255 0 6 0 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 ")) "Default image for the enabled home button.") (defconst tabbar-home-button-disabled-image '((:type pbm :data "\ P2 13 13 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 0 0 1 2 3 2 1 0 0 255 255 255 255 0 132 128 123 119 114 110 106 0 255 255 255 255 0 0 1 2 3 2 1 0 0 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 ")) "Default image for the disabled home button.") (defconst tabbar-scroll-left-button-enabled-image '((:type pbm :data "\ P2 13 13 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 128 16 48 255 255 255 255 255 255 255 255 144 28 86 128 0 255 255 255 255 255 255 160 44 92 159 135 113 0 255 255 255 255 160 44 97 165 144 129 120 117 0 255 255 176 44 98 175 174 146 127 126 127 128 0 255 255 0 160 184 156 143 136 134 135 137 138 0 255 255 176 32 67 144 146 144 145 146 148 149 0 255 255 255 255 160 42 75 140 154 158 159 160 0 255 255 255 255 255 255 160 40 74 154 170 171 0 255 255 255 255 255 255 255 255 160 41 82 163 0 255 255 255 255 255 255 255 255 255 255 160 32 48 255 255 255 255 255 255 255 255 255 255 255 255 255 255 ")) "Default image for the enabled scroll left button. A disabled button image will be automatically build from it.") (defconst tabbar-scroll-right-button-enabled-image '((:type pbm :data "\ P2 13 13 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 48 32 160 255 255 255 255 255 255 255 255 255 255 44 161 71 32 160 255 255 255 255 255 255 255 255 36 157 163 145 62 32 160 255 255 255 255 255 255 30 128 133 137 142 124 50 32 160 255 255 255 255 29 120 121 124 126 126 124 105 42 32 176 255 255 31 126 127 128 128 128 128 126 124 89 32 255 255 33 134 135 136 137 137 138 119 49 32 176 255 255 34 143 144 145 146 128 54 32 160 255 255 255 255 36 152 153 134 57 32 160 255 255 255 255 255 255 38 141 60 32 160 255 255 255 255 255 255 255 255 48 32 160 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 ")) "Default image for the enabled scroll right button. A disabled button image will be automatically build from it.") All I want to do is to replace the pbm data with a png image. So, I change them to the following: (setq tabbar-home-button-enabled-image '((:type png :file "home_sm.png"))) (setq tabbar-home-button-disabled-image '((:type png :file "home_sm.png"))) (setq tabbar-scroll-left-button-enabled-image '((:type png :file "back_sm.png"))) (setq tabbar-scroll-right-button-enabled-image '((:type png :file "forward_sm.png"))) I just use the above code from *tabbar*-*init*.el which can be found here: http://old.nabble.com/tabbar-update-p13490462.html The image files are located in my emacs load path, the same as tabbar.el is in. The strange this is this piece of code works under nqmacs, but no longer works after I switch to emacs. The version I am using is 23.1.1. Any helps or advices would be appreciated. Thanks! -- ___ K.S --0016e68786c6ada740047a56b30d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,
I am using tabbar and trying to modify it's look & feel.
= Here is the code copy&paste straight from tabbar.el (2.0), it's als= o available here:
http://emhacks.cvs.sourceforg= e.net/*checkout*/emhacks/emhacks/tabbar.el?revision=3D1.69

(defconst tabbar-home-button-enabled-image
'((:type pbm := data "\
P2 13 13 255 255 255 255 255 255 255 255 255 255 255 255 25= 5 255 255
255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 25= 5 255 0
6 0 255 255 255 255 255 255 255 255 255 255 9 130 9 255 255 255 255
255 = 255 255 255 255 255 26 130 26 255 255 255 255 255 255 255 0 9 26
41 130 = 41 26 9 0 255 255 255 255 5 145 140 135 130 125 120 115 5 255
255 255 25= 5 0 9 26 41 130 41 26 9 0 255 255 255 255 255 255 255 26 130
26 255 255 255 255 255 255 255 255 255 255 9 130 9 255 255 255 255 255
2= 55 255 255 255 255 0 6 0 255 255 255 255 255 255 255 255 255 255 255
255= 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
255 255= 255
"))
"Default image for the enabled home button.")
(defconst tabbar-home-button-disabled-image
'((:type pbm :data &= quot;\
P2 13 13 255 255 255 255 255 255 255 255 255 255 255 255 255 255 = 255
255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
255 = 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
255 255 = 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
255 255 0 0 = 1 2 3 2 1 0 0 255 255 255 255 0 132 128 123 119 114 110
106 0 255 255 255 255 0 0 1 2 3 2 1 0 0 255 255 255 255 255 255 255
255 = 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
255 255 = 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
255 255 255 = 255 255 255 255 255 255 255 255 255 255 255 255 255 255
255 255 255 255 255 255 255 255 255
"))
"Default image fo= r the disabled home button.")

(defconst tabbar-scroll-left-butt= on-enabled-image
'((:type pbm :data "\
P2 13 13 255 255 25= 5 255 255 255 255 255 255 255 255 255 255 255 255
255 255 255 255 255 255 255 255 128 16 48 255 255 255 255 255 255 255
25= 5 144 28 86 128 0 255 255 255 255 255 255 160 44 92 159 135 113 0
255 25= 5 255 255 160 44 97 165 144 129 120 117 0 255 255 176 44 98 175
174 146 = 127 126 127 128 0 255 255 0 160 184 156 143 136 134 135 137
138 0 255 255 176 32 67 144 146 144 145 146 148 149 0 255 255 255 255
16= 0 42 75 140 154 158 159 160 0 255 255 255 255 255 255 160 40 74 154
170 = 171 0 255 255 255 255 255 255 255 255 160 41 82 163 0 255 255 255
255 25= 5 255 255 255 255 255 160 32 48 255 255 255 255 255 255 255 255
255 255 255 255 255 255
"))
"Default image for the enable= d scroll left button.
A disabled button image will be automatically buil= d from it.")

(defconst tabbar-scroll-right-button-enabled-image=
'((:type pbm :data "\
P2 13 13 255 255 255 255 255 255 255 25= 5 255 255 255 255 255 255 255
48 32 160 255 255 255 255 255 255 255 255 = 255 255 44 161 71 32 160 255
255 255 255 255 255 255 255 36 157 163 145 = 62 32 160 255 255 255 255
255 255 30 128 133 137 142 124 50 32 160 255 255 255 255 29 120 121
124 = 126 126 124 105 42 32 176 255 255 31 126 127 128 128 128 128 126
124 89 = 32 255 255 33 134 135 136 137 137 138 119 49 32 176 255 255 34
143 144 1= 45 146 128 54 32 160 255 255 255 255 36 152 153 134 57 32 160
255 255 255 255 255 255 38 141 60 32 160 255 255 255 255 255 255 255
255= 48 32 160 255 255 255 255 255 255 255 255 255 255 255 255 255 255
255 2= 55 255 255 255 255 255 255
"))
"Default image for the ena= bled scroll right button.
A disabled button image will be automatically build from it.")

=

All I want to do is to replace the pbm data with a png image. So,= I change them to the following:

(setq tabbar-home-button-enabled-im= age
=A0 '((:type png :file "home_sm.png")))

(setq tabbar-h= ome-button-disabled-image
=A0 '((:type png :file "home_sm.png&q= uot;)))

(setq tabbar-scroll-left-button-enabled-image
=A0 '((= :type png :file "back_sm.png")))

(setq tabbar-scroll-right-button-enabled-image
=A0 '((:type png = :file "forward_sm.png")))

I just use the above code from <= span>tabbar-init.el w= hich can be found here:
http://old.n= abble.com/tabbar-update-p13490462.html
The image files are lo= cated in my emacs load path, the same as tabbar.el is in.
The strange th= is is this piece of code works under nqmacs, but no longer works after I sw= itch to emacs. The version I am using is 23.1.1.
Any helps or advices would be appreciated.
Thanks!
--
___
K.S<= br> --0016e68786c6ada740047a56b30d--