[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openmoko-commitlog
Subject:    commitlog Digest, Vol 914, Issue 1
From:       commitlog-request () lists ! openmoko ! org
Date:       2009-12-17 10:58:48
Message-ID: mailman.0.1261047602.3758.commitlog () lists ! openmoko ! org
[Download RAW message or body]

Send commitlog mailing list submissions to
	commitlog@lists.openmoko.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.openmoko.org/mailman/listinfo/commitlog
or, via email, send a message with subject or body 'help' to
	commitlog-request@lists.openmoko.org

You can reach the person managing the list at
	commitlog-owner@lists.openmoko.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of commitlog digest..."


Today's Topics:

   1. r5758 - in trunk/eda/fped: . icons (werner@docs.openmoko.org)
   2. r5759 - trunk/eda/fped (werner@docs.openmoko.org)
   3. r5760 - trunk/gta02-core/docs (werner@docs.openmoko.org)

[Attachment #4 (multipart/digest)]


Content-Transfer-Encoding: 8bit
From: werner@docs.openmoko.org
Precedence: list
To: commitlog@lists.openmoko.org
Date: Wed, 16 Dec 2009 18:25:14 +0100
Message-ID: <E1NKxcg-0005ll-Gw@docs.openmoko.com>
Content-Type: text/plain; charset=UTF-8
Subject: r5758 - in trunk/eda/fped: . icons
Message: 1

Author: werner
Date: 2009-12-16 18:25:13 +0100 (Wed, 16 Dec 2009)
New Revision: 5758

Modified:
   trunk/eda/fped/Makefile
   trunk/eda/fped/gui_tool.c
   trunk/eda/fped/gui_util.c
   trunk/eda/fped/gui_util.h
   trunk/eda/fped/icons/arc.fig
   trunk/eda/fped/icons/circ.fig
   trunk/eda/fped/icons/line.fig
   trunk/eda/fped/icons/rect.fig
   trunk/eda/fped/icons/vec.fig
Log:
Make the icon for the currently selected instance transparent so that it better
blends in and won't be mistaken for a button.

- Makefile: generate icon XPMs with transparent background
- gui_util.c (make_image): set transparency color to white
- gui_util.c (make_transparent_image): new function to return a transparent
  image created from an XPM
- gui_tool.c (get_icon_by_inst): make the returned image transparent instead of
  opaque
- icons/vec.fig, icons/arc.fig, icons/line.fig, icons/rect.fig, icons/circ.fig:
  darkened to increase contrast on grey background



Modified: trunk/eda/fped/Makefile
===================================================================
--- trunk/eda/fped/Makefile	2009-12-15 21:24:30 UTC (rev 5757)
+++ trunk/eda/fped/Makefile	2009-12-16 17:25:13 UTC (rev 5758)
@@ -80,16 +80,23 @@
 .PHONY:		all dep depend clean install uninstall manual upload-manual
 .PHONY:		update
 
-.SUFFIXES:	.fig .xpm
+.SUFFIXES:	.fig .xpm .ppm
 
 # generate 26x26 pixels icons, then drop the 1-pixel frame
 
-.fig.xpm:
-		$(GEN) fig2dev -L xpm -Z 0.32 -S 4 $< | \
-		  convert -crop 24x24+1+1 - - | \
-		  sed "s/*.*\[]/*xpm_`basename $@ .xpm`[]/" >$@; \
-		  [ "$${PIPESTATUS[*]}" = "0 0 0" ] || { rm -f $@; exit 1; }
+.fig.ppm:
+		$(GEN) fig2dev -L ppm -Z 0.32 -S 4 $< | \
+		  convert -crop 24x24+1+1 - - >$@; \
+		  [ "$${PIPESTATUS[*]}" = "0 0" ] || { rm -f $@; exit 1; }
 
+# ppmtoxpm is very chatty, so we suppress its stderr
+
+.ppm.xpm:
+		$(GEN) ppmcolormask white $< >_tmp && \
+		  ppmtoxpm -name xpm_`basename $@ .xpm` -alphamask _tmp \
+		  $< >$@ 2>/dev/null && rm -f _tmp || \
+		  { rm -f $@ _tmp; exit 1; }
+
 all:		fped
 
 fped:		$(OBJS)
@@ -134,7 +141,7 @@
 # ----- Cleanup ---------------------------------------------------------------
 
 clean:
-		rm -f $(OBJS) $(XPMS:%=icons/%)
+		rm -f $(OBJS) $(XPMS:%=icons/%) $(XPMS:%.xpm=icons/%.ppm)
 		rm -f lex.yy.c y.tab.c y.tab.h y.output .depend
 
 # ----- Install / uninstall ---------------------------------------------------

Modified: trunk/eda/fped/gui_tool.c
===================================================================
--- trunk/eda/fped/gui_tool.c	2009-12-15 21:24:30 UTC (rev 5757)
+++ trunk/eda/fped/gui_tool.c	2009-12-16 17:25:13 UTC (rev 5758)
@@ -1030,7 +1030,7 @@
 	default:
 		abort();
 	}
-	return make_image(DA, image);
+	return make_transparent_image(DA, image);
 }
 
 

Modified: trunk/eda/fped/gui_util.c
===================================================================
--- trunk/eda/fped/gui_util.c	2009-12-15 21:24:30 UTC (rev 5757)
+++ trunk/eda/fped/gui_util.c	2009-12-16 17:25:13 UTC (rev 5758)
@@ -176,14 +176,28 @@
 {
 	GdkPixmap *pixmap;
 	GtkWidget *image;
+	GdkColor white = get_color("white");
 
-	pixmap = gdk_pixmap_create_from_xpm_d(drawable, NULL, NULL, xpm);
+	pixmap = gdk_pixmap_create_from_xpm_d(drawable, NULL, &white, xpm);
 	image = gtk_image_new_from_pixmap(pixmap, NULL);
 	gtk_misc_set_padding(GTK_MISC(image), 1, 1);
 	return image;
 }
 
 
+GtkWidget *make_transparent_image(GdkDrawable *drawable, char **xpm)
+{
+	GdkPixmap *pixmap;
+	GdkBitmap *mask;
+	GtkWidget *image;
+
+	pixmap = gdk_pixmap_create_from_xpm_d(drawable, &mask, NULL, xpm);
+	image = gtk_image_new_from_pixmap(pixmap, mask);
+	gtk_misc_set_padding(GTK_MISC(image), 1, 1);
+	return image;
+}
+
+
 static void remove_child(GtkWidget *widget, gpointer data)
 {
 	gtk_container_remove(GTK_CONTAINER(data), widget);

Modified: trunk/eda/fped/gui_util.h
===================================================================
--- trunk/eda/fped/gui_util.h	2009-12-15 21:24:30 UTC (rev 5757)
+++ trunk/eda/fped/gui_util.h	2009-12-16 17:25:13 UTC (rev 5758)
@@ -60,6 +60,7 @@
 void vacate_widget(GtkWidget *widget);
 
 GtkWidget *make_image(GdkDrawable *drawable, char **xpm);
+GtkWidget *make_transparent_image(GdkDrawable *drawable, char **xpm);
 void set_image(GtkWidget *widget, GtkWidget *image);
 GtkWidget *tool_button(GtkWidget *bar, GdkDrawable *drawable, char **xpm,
     gboolean (*cb)(GtkWidget *widget, GdkEventButton *event, gpointer data),

Modified: trunk/eda/fped/icons/arc.fig
===================================================================
--- trunk/eda/fped/icons/arc.fig	2009-12-15 21:24:30 UTC (rev 5757)
+++ trunk/eda/fped/icons/arc.fig	2009-12-16 17:25:13 UTC (rev 5758)
@@ -7,7 +7,7 @@
 Single
 -2
 1200 2
-5 1 0 10 3 7 50 -1 -1 0.000 0 1 1 0 4005.000 4395.000 5550 4500 5100 3300 3900 2850
+5 1 0 10 16 7 50 -1 -1 0.000 0 1 1 0 4005.000 4395.000 5550 4500 5100 3300 3900 2850
 	0 0 10.00 450.00 600.00
 2 2 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 5
 	 3600 2400 6000 2400 6000 4800 3600 4800 3600 2400

Modified: trunk/eda/fped/icons/circ.fig
===================================================================
--- trunk/eda/fped/icons/circ.fig	2009-12-15 21:24:30 UTC (rev 5757)
+++ trunk/eda/fped/icons/circ.fig	2009-12-16 17:25:13 UTC (rev 5758)
@@ -7,6 +7,6 @@
 Single
 -2
 1200 2
-1 3 0 10 3 7 50 -1 -1 0.000 1 0.0000 4800 3600 900 900 4800 3600 5700 3600
+1 3 0 10 16 7 50 -1 -1 0.000 1 0.0000 4800 3600 900 900 4800 3600 5700 3600
 2 2 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 5
 	 3600 2400 6000 2400 6000 4800 3600 4800 3600 2400

Modified: trunk/eda/fped/icons/line.fig
===================================================================
--- trunk/eda/fped/icons/line.fig	2009-12-15 21:24:30 UTC (rev 5757)
+++ trunk/eda/fped/icons/line.fig	2009-12-16 17:25:13 UTC (rev 5758)
@@ -9,5 +9,5 @@
 1200 2
 2 2 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 5
 	 3600 2400 6000 2400 6000 4800 3600 4800 3600 2400
-2 1 0 10 3 7 50 -1 -1 0.000 0 0 -1 0 0 2
+2 1 0 10 16 7 50 -1 -1 0.000 0 0 -1 0 0 2
 	 3900 4200 5700 3000

Modified: trunk/eda/fped/icons/rect.fig
===================================================================
--- trunk/eda/fped/icons/rect.fig	2009-12-15 21:24:30 UTC (rev 5757)
+++ trunk/eda/fped/icons/rect.fig	2009-12-16 17:25:13 UTC (rev 5758)
@@ -9,5 +9,5 @@
 1200 2
 2 2 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 5
 	 3600 2400 6000 2400 6000 4800 3600 4800 3600 2400
-2 2 0 10 3 7 50 -1 -1 0.000 0 0 -1 0 0 5
+2 2 0 10 16 7 50 -1 -1 0.000 0 0 -1 0 0 5
 	 3900 3000 5700 3000 5700 4200 3900 4200 3900 3000

Modified: trunk/eda/fped/icons/vec.fig
===================================================================
--- trunk/eda/fped/icons/vec.fig	2009-12-15 21:24:30 UTC (rev 5757)
+++ trunk/eda/fped/icons/vec.fig	2009-12-16 17:25:13 UTC (rev 5758)
@@ -7,7 +7,7 @@
 Single
 -2
 1200 2
-0 32 #c0c000
+0 32 #a0a000
 2 2 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 5
 	 3600 2400 6000 2400 6000 4800 3600 4800 3600 2400
 2 1 0 10 32 7 50 -1 -1 0.000 0 0 -1 1 0 2





Content-Transfer-Encoding: 8bit
From: werner@docs.openmoko.org
Precedence: list
To: commitlog@lists.openmoko.org
Date: Wed, 16 Dec 2009 18:26:31 +0100
Message-ID: <E1NKxdv-0005mA-5M@docs.openmoko.com>
Content-Type: text/plain; charset=UTF-8
Subject: r5759 - trunk/eda/fped
Message: 2

Author: werner
Date: 2009-12-16 18:26:31 +0100 (Wed, 16 Dec 2009)
New Revision: 5759

Modified:
   trunk/eda/fped/README
Log:
Added Netpbm to prerequisites.



Modified: trunk/eda/fped/README
===================================================================
--- trunk/eda/fped/README	2009-12-16 17:25:13 UTC (rev 5758)
+++ trunk/eda/fped/README	2009-12-16 17:26:31 UTC (rev 5759)
@@ -20,6 +20,7 @@
 - bison
 - fig2dev
 - ImageMagick
+- Netpbm
 - Gtk+ 2.x development package (libgtk2.0-dev or similar)
 - Liberation Fonts (ttf-liberation or similar)
 





Content-Transfer-Encoding: 8bit
From: werner@docs.openmoko.org
Precedence: list
To: commitlog@lists.openmoko.org
Date: Wed, 16 Dec 2009 18:27:31 +0100
Message-ID: <E1NKxet-0005ma-8E@docs.openmoko.com>
Content-Type: text/plain; charset=UTF-8
Subject: r5760 - trunk/gta02-core/docs
Message: 3

Author: werner
Date: 2009-12-16 18:27:31 +0100 (Wed, 16 Dec 2009)
New Revision: 5760

Modified:
   trunk/gta02-core/docs/GETTING-STARTED
Log:
- docs/GETTING-STARTED: added Netpbm to prerequisites.



Modified: trunk/gta02-core/docs/GETTING-STARTED
===================================================================
--- trunk/gta02-core/docs/GETTING-STARTED	2009-12-16 17:26:31 UTC (rev 5759)
+++ trunk/gta02-core/docs/GETTING-STARTED	2009-12-16 17:27:31 UTC (rev 5760)
@@ -76,6 +76,7 @@
     - bison
     - fig2dev
     - ImageMagick
+    - Netpbm
     - Gtk+ 2.x development package (libgtk2.0-dev or similar)
     - Liberation Fonts (ttf-liberation or similar)
 




--===============1209351246==--

_______________________________________________
commitlog mailing list
commitlog@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/commitlog


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic