Mailinglist Archive: yast-commit (953 mails)

< Previous Next >
[yast-commit] r49591 - in /trunk/gtk: ChangeLog src/Makefile.am src/icons/hr.xpm src/ygtkrichtext.c
  • From: rpmcruz@xxxxxxxxxxxxxxxx
  • Date: Sat, 02 Aug 2008 02:34:17 -0000
  • Message-id: <20080802023417.B155027364@xxxxxxxxxxxxxxxx>
Author: rpmcruz
Date: Sat Aug 2 04:34:17 2008
New Revision: 49591

URL: http://svn.opensuse.org/viewcvs/yast?rev=49591&view=rev
Log:
* src/ygtkrichtext.c: added support for the "hr" tag. Image at src/hr.xpm

Added:
trunk/gtk/src/icons/hr.xpm
Modified:
trunk/gtk/ChangeLog
trunk/gtk/src/Makefile.am
trunk/gtk/src/ygtkrichtext.c

Modified: trunk/gtk/ChangeLog
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/gtk/ChangeLog?rev=49591&r1=49590&r2=49591&view=diff
==============================================================================
--- trunk/gtk/ChangeLog (original)
+++ trunk/gtk/ChangeLog Sat Aug 2 04:34:17 2008
@@ -3,6 +3,8 @@
* src/YGUtils.cc & src/ygtkrichtext.c: fixed some glitches left from
bug 396692, and fixed bug 404817 glitch.

+ * src/ygtkrichtext.c: added support for the "hr" tag. Image at
src/hr.xpm
+
2008-07-31 Ricardo Cruz <rpmcruz@xxxxxxxxxxxxxxxxxxx>

* src/YGPackageSelector.cc: online update was broken.

Modified: trunk/gtk/src/Makefile.am
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/Makefile.am?rev=49591&r1=49590&r2=49591&view=diff
==============================================================================
--- trunk/gtk/src/Makefile.am (original)
+++ trunk/gtk/src/Makefile.am Sat Aug 2 04:34:17 2008
@@ -90,5 +90,6 @@
icons/pkg-locked.xpm \
icons/harddisk.xpm \
icons/harddisk-full.xpm \
+ icons/hr.xpm \
pkg-selector-help.h


Added: trunk/gtk/src/icons/hr.xpm
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/icons/hr.xpm?rev=49591&view=auto
==============================================================================
--- trunk/gtk/src/icons/hr.xpm (added)
+++ trunk/gtk/src/icons/hr.xpm Sat Aug 2 04:34:17 2008
@@ -0,0 +1,173 @@
+/* XPM */
+static const char * hr_xpm[] = {
+"200 1 169 2",
+" c None",
+". c #F0F8F0",
+"+ c #EEF8EF",
+"@ c #EEF7ED",
+"# c #EDF6EC",
+"$ c #EBF6EB",
+"% c #E9F4E9",
+"& c #E9F4E8",
+"* c #E7F3E7",
+"= c #E6F3E6",
+"- c #E4F2E4",
+"; c #E2F1E3",
+"> c #E1F1E1",
+", c #E0F0E0",
+"' c #DFEFDF",
+") c #DDEFDE",
+"! c #DCEEDD",
+"~ c #DBEEDB",
+"{ c #DAEDDA",
+"] c #D8EDD8",
+"^ c #D7ECD7",
+"/ c #D5EBD5",
+"( c #D4EBD4",
+"_ c #D3EAD3",
+": c #D2EAD2",
+"< c #D0E9D0",
+"[ c #CFE8CF",
+"} c #CEE8CE",
+"| c #CCE7CC",
+"1 c #CBE6CB",
+"2 c #CAE5CA",
+"3 c #C9E5C9",
+"4 c #C7E4C7",
+"5 c #C6E4C6",
+"6 c #C4E3C4",
+"7 c #C3E2C3",
+"8 c #C2E2C2",
+"9 c #C1E1C0",
+"0 c #BFE1C0",
+"a c #BEE0BE",
+"b c #BDE0BC",
+"c c #BBDFBB",
+"d c #BADEBA",
+"e c #B8DEB8",
+"f c #B7DDB7",
+"g c #B6DCB6",
+"h c #B5DBB5",
+"i c #B3DBB3",
+"j c #B2DAB2",
+"k c #B1DAB1",
+"l c #AFD9AF",
+"m c #AED8AE",
+"n c #ADD8AD",
+"o c #ABD7AC",
+"p c #AAD6AA",
+"q c #A8D6A9",
+"r c #A7D5A7",
+"s c #A6D5A6",
+"t c #A4D4A4",
+"u c #A3D3A3",
+"v c #A2D3A2",
+"w c #A0D2A0",
+"x c #A0D1A0",
+"y c #9ED19E",
+"z c #9CD19D",
+"A c #9BCF9B",
+"B c #9ACF9A",
+"C c #99CF99",
+"D c #98CE97",
+"E c #96CD97",
+"F c #95CC94",
+"G c #94CC94",
+"H c #92CB92",
+"I c #91CA91",
+"J c #90CA8F",
+"K c #8EC98E",
+"L c #8DC88D",
+"M c #8BC88C",
+"N c #8AC88B",
+"O c #89C689",
+"P c #87C788",
+"Q c #86C586",
+"R c #85C585",
+"S c #84C484",
+"T c #82C483",
+"U c #81C380",
+"V c #7FC37F",
+"W c #7EC27E",
+"X c #7DC17D",
+"Y c #7BC17C",
+"Z c #7ABF7B",
+"` c #79BF79",
+" . c #78BF78",
+".. c #76BE76",
+"+. c #75BE75",
+"@. c #74BD73",
+"#. c #73BC72",
+"$. c #71BB71",
+"%. c #70BA70",
+"&. c #6FBA6E",
+"*. c #6EBA6E",
+"=. c #EFF7EF",
+"-. c #EEF7EE",
+";. c #ECF6EC",
+">. c #EAF5EA",
+",. c #E9F5E9",
+"'. c #E8F4E8",
+"). c #E4F3E4",
+"!. c #E3F1E3",
+"~. c #E2F1E2",
+"{. c #DFF0DF",
+"]. c #DEEFDD",
+"^. c #DCEFDC",
+"/. c #DAEED9",
+"(. c #D8ECD8",
+"_. c #D7ECD6",
+":. c #D6ECD6",
+"<. c #D4EAD4",
+"[. c #D2EAD1",
+"}. c #D1E9D1",
+"|. c #CDE7CD",
+"1. c #CBE7CB",
+"2. c #CAE6CA",
+"3. c #C8E5C9",
+"4. c #C7E5C7",
+"5. c #C6E4C5",
+"6. c #C5E3C4",
+"7. c #C0E1C1",
+"8. c #BFE1BF",
+"9. c #BDE0BE",
+"0. c #BDDFBC",
+"a. c #BCDEBB",
+"b. c #B4DBB5",
+"c. c #B2DAB1",
+"d. c #B0DAB0",
+"e. c #B0D9B0",
+"f. c #AED9AE",
+"g. c #ACD8AC",
+"h. c #ACD8AB",
+"i. c #AAD6A9",
+"j. c #A7D6A8",
+"k. c #A6D4A6",
+"l. c #A5D4A5",
+"m. c #A3D3A4",
+"n. c #A1D2A1",
+"o. c #9FD29F",
+"p. c #9CD09C",
+"q. c #9BD09C",
+"r. c #98CE99",
+"s. c #97CE98",
+"t. c #96CD96",
+"u. c #95CD95",
+"v. c #93CC93",
+"w. c #8FCA8F",
+"x. c #8DC88C",
+"y. c #8CC88B",
+"z. c #8AC78A",
+"A. c #88C687",
+"B. c #86C587",
+"C. c #84C585",
+"D. c #82C382",
+"E. c #80C381",
+"F. c #80C280",
+"G. c #7EC27F",
+"H. c #7CC07B",
+"I. c #7AC07B",
+"J. c #75BD75",
+"K. c #74BD74",
+"L. c #6EBB6E",
+". =.-.;.>.,.'.* = ).!.~., {.].^.~ /.(._.:.<._ [.}.[ |.| 1.2.3.4.5.6.7 8
7.8.9.0.a.d e f g b.i c.d.e.f.g.h.i.q j.k.l.m.v n.o.y p.q.B r.s.t.u.v.H I w.K
x.y.z.O A.B.C.S D.E.F.G.X H.I.` ...J.K.#.$.%.L.*.*.L.%.$.#.K.J... .` I.H.X
G.F.E.D.S C.B.A.O z.y.x.K w.I H v.u.t.s.r.B q.p.y o.n.v m.l.k.j.q
i.h.g.f.e.d.c.i b.g f e d a.0.9.8.7.8 7 6.5.4.3.2.1.| |.[ }.[._ <.:._.(./.~
^.].{., ~.!.).= * '.,.>.;.-.=.. "};

Modified: trunk/gtk/src/ygtkrichtext.c
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/ygtkrichtext.c?rev=49591&r1=49590&r2=49591&view=diff
==============================================================================
--- trunk/gtk/src/ygtkrichtext.c (original)
+++ trunk/gtk/src/ygtkrichtext.c Sat Aug 2 04:34:17 2008
@@ -404,6 +404,8 @@
state->htags = g_list_append (state->htags, tag);
}

+#include "icons/hr.xpm"
+
static void
rt_end_element (GMarkupParseContext *context,
const gchar *element_name,
@@ -445,6 +447,16 @@
else if (!g_ascii_strcasecmp (element_name, "pre"))
state->pre_mode = FALSE;

+ else if (!g_ascii_strcasecmp (element_name, "hr")) {
+ GdkPixbuf *pixbuf = gdk_pixbuf_new_from_xpm_data (hr_xpm);
+ gtk_text_buffer_insert_pixbuf (state->buffer, &end, pixbuf);
+ g_object_unref (pixbuf);
+ gtk_text_buffer_get_iter_at_mark (state->buffer, &start,
tag->mark);
+ gtk_text_buffer_get_end_iter (state->buffer, &end);
+ gtk_text_buffer_apply_tag_by_name (state->buffer, "center",
&start, &end);
+ appendLines = 1;
+ }
+
if (isBlockTag (element_name) || !g_ascii_strcasecmp (element_name,
"br")) {
appendLines = 1;
if (isBlockTag (element_name) && gtk_text_iter_starts_line
(&end))

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages