[NEW] GtkPieChart widget
- From: Marnix Coppens <maco telindus be>
- To: gtk-list redhat com
- Subject: [NEW] GtkPieChart widget
- Date: Tue, 18 Aug 1998 11:19:59 +0200
I've done some work during the weekend on something I needed
for a graphical version of 'df', namely the GtkPieChart
widget. For lack of web space, I've added the source code,
header file and a demo app as a uuencoded tgz file (sorry
if this causes trouble).
In true Gtk tradition, there's no documentation, but the source
is relatively decently documented. It's easy to use really:
1) gtk_pie_chart_new()
2) gtk_pie_chart_add_slice(colour, percentage) -> repeat.
It'd be nice it this were added to the widget tree.
The app I was referring to resembles what you get in Windoze
when you ask 'Properties' on a drive. Still polishing up..
I dont't read this mailing list frequently, so please email me
directly.
Cheers,
Marnix Coppens
------------------------------------------------------------------
begin 755 GtkPieChart.tgz
M'XL("$8[V34""V=T:W!I96-H87)T+G1A<@#M&_UWVD8ROX:_8NN\EPB*,>"O
M7(G]'B'$X4IM/YLTZ?7U](18@6HA$4D8<VW^]YN974FK+VSWZOQRJ'5 VIG9
MV9G9V9G1<!;>7-J\-S/\<._9$UWLH'E\?,R>,;R:F4]YPXX.CX[:^X<'[1;<
MP[?]9^SPV?9ZZNM,T?\TO%G8W,3O#?-OG*/5;!X='97IOWW0AD'4/_S7;K?@
M>ZMY?'C\C&VU\_37"]LUG>6$LQU5^[.=2CSP9FZ$L\;LM%)Y,>&6[7+VT^!<
M_S1X-_H VMMOIAY_Z _./HQ J<U*)5PO. RQ(/279LCTKL^-2]];<#]<,_6F
M4ZD4P53^J*!]G$UN>I[C^?C=\GRNFWC7H;'IQ%N.'4YV!#@F=T-CRCN5KT32
M"&V3W7KVA,':=%B<3JO33<<( MUV[5!3S+^'3UGM!C^JG0WH6416@[&-&!,.
MZ_/6B'0Q_IW#0FL>?6[$ E$X]G\X8GVR)U,.6"OZW(@5 (IN.(YG&F$!;KWR
M'"]XWA4PMN>RFA%_3VA/;3?,T.9W"R\H)8J:ZM^""OH$QFH<;S8R.S=N.-S>
MS8W%XR2Z,("[(I0()^91JG5A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K>.DEO7(WE.N,$@0A2*4 \N-.IPNZ_U-9VT0_U
M$"RUU8FEXOFB'?9UX[92AG)[G$"V'O+_[?R'6&ON?</?_T .<W0<__ZKU=RG
M\[]UL#W_O^GO?Z(#6_S2I^Q70:GJ,*5T^(*0E[\=E!Z.S@!3^OVTXY,_YZ'G
M9O(6+>IH(;\=K(.0S[6"_!+?LR0^,)"-COD^Q[A"\Y ^QX&5:2:DUU91P^(8
M7^3(KL4Z%@[HC83KA4D;(<=.11S%U)0R=TQ,17&83U+]BP"(B2R2H2)]23.C
MG;SX(-+)ZX^8&(!@_5\DP#Z?&[9+[P9P23'0IQDP;\B>3UP5K49RBS67(D;W
MXK(*&[R:T_LB6+QY$[TJD:^4;PUG26^?8OWI-48OWI2"I7@.*@BXMO/B]='Q
MT;&Q4V<OHP)1&HY*WII).64:I.0<IB9C 5F''+A]&/?%9.>^7/H+AS_=U*WR
MJ5\<-?_1W&\^X=S'I7-?^%A%><*IFZ53CPSW">=]72YNJ_FZ>=A\8E5_K52P
MP0:WG8;QHN%C704Q,;R=WO[Z6W'+!+Z?R;\I4]II@ ?ZP<I+01$_;I,VIZ@_
M+DSUQXDW3M1A.;JX'/9_[@^5)2F-;J$=.EP!U^0+HWKJMV@,8X*=% 7JO1.M
M<J(32K2E[3>;=<CHFPHL5F!!*-S7QYX_@0]ZQ45S]B[.1]W!>?\JF;;55AOC
M[*EK.+HLTBJ_9E#8G'"'A_+G0#M*V9X*KH.S\^Y0?__QO$<M@_S.Q@XBM5%,
M-/KD?QHCN5#/N%3N*5\)YA<)5E*V-J5W4!7B#'0!)JC%[^IB"#*F3&-R<UL
EVU[;:WMMK^VUO;;7]MI>VVM[;:_MM;VVUZ.N_P(;^KGS % #*F
end
Marnix Coppens
---
Reality is that which | Artificial Intelligence
when you stop believing | stands no chance against
in it doesn't go away. (Philip K. Dick) | Natural Stupidity.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]