<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.0.11" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>Antonio Álvarez Feijoo</title>
	<link>http://blogs.igalia.com/aalvarez</link>
	<description>...where the world is called Igalia...</description>
	<pubDate>Wed, 04 Jun 2008 05:16:14 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.11</generator>
	<language>en</language>
			<item>
		<title>Mini How-To: Paint charts in Gtk with libgoffice</title>
		<link>http://blogs.igalia.com/aalvarez/2008/06/02/mini-how-to-paint-charts-in-gtk-with-libgoffice/</link>
		<comments>http://blogs.igalia.com/aalvarez/2008/06/02/mini-how-to-paint-charts-in-gtk-with-libgoffice/#comments</comments>
		<pubDate>Mon, 02 Jun 2008 13:13:36 +0000</pubDate>
		<dc:creator>aalvarez</dc:creator>
		
		<category>Planet Igalia</category>

		<category>Gnome</category>

		<guid isPermaLink="false">http://blogs.igalia.com/aalvarez/2008/06/02/mini-how-to-paint-charts-in-gtk-with-libgoffice/</guid>
		<description><![CDATA[Hello, since some time ago I&#8217;ve been using libgoffice to make charts in Gnome applications, instead of using Cairo directly.
This library was separated from Gnumeric , so you could make the same charts that it paints.
The results are very good, but the unique issue that I had was that there is very little documentation about [...]]]></description>
			<content:encoded><![CDATA[<p>Hello, since some time ago I&#8217;ve been using libgoffice to make charts in Gnome applications, instead of using Cairo directly.<br />
This library was separated from <a href="http://www.gnome.org/projects/gnumeric/">Gnumeric</a> , so you could make the same charts that it paints.<br />
The results are very good, but the unique issue that I had was that there is very little documentation about the topic.</p>
<p>Here are some advices to make a GObject &#8220;painter of charts&#8221;:</p>
<ul>
<li>GObject attributes:</li>
</ul>
<p><code>GtkWidget chartWidget; // Widget that will contain the components<br />
GogPlot *plot;         // Plot<br />
GogLegend *legend;     // Legend<br />
</code></p>
<ul>
<li>Initialize:</li>
</ul>
<p><code>libgoffice_init ();<br />
go_plugins_init (NULL, NULL, NULL, NULL, TRUE, GO_PLUGIN_LOADER_MODULE_TYPE);<br />
self->priv->chartWidget = g_object_ref_sink (go_graph_widget_new (NULL));<br />
</code></p>
<ul>
<li>Paint one chart of example:</li>
</ul>
<p><code>// Get the embedded graph<br />
graph = go_graph_widget_get_graph (GO_GRAPH_WIDGET (self->priv->chartWidget));</code></p>
<p><code>// Get the chart created by the widget initialization<br />
chart = go_graph_widget_get_chart (GO_GRAPH_WIDGET (self->priv->chartWidget));</code></p>
<p><code>// Create plot and add to the chart giving its name [1]<br />
self->priv->plot = (GogPlot *) gog_plot_new_by_name ("GogBarColPlot");<br />
g_object_set (G_OBJECT (self->priv->plot),<br />
"horizontal", FALSE,<br />
"type", "stacked",<br />
"overlap_percentage", 100,<br />
"guru-hints", "backplane",<br />
NULL);<br />
gog_object_add_by_name (GOG_OBJECT (chart), "Plot", GOG_OBJECT (self->priv->plot));</code></p>
<p><code>// Create a series for the plot and populate it with data.<br />
//    gchar **legends -> go_data_vector_str_new<br />
//    gdouble *values -> go_data_vector_val_new<br />
GogSeries *series;<br />
GOData *data;<br />
GError *error;<br />
// New serie. Each serie is a set of values, one for each legend. We need to set its name to see it in the legend.<br />
// Every time that we need a serie, we have to do gog_plot_new_series, but only adding data, not the legends.<br />
series = gog_plot_new_series (self->priv->plot);<br />
gog_object_set_name (GOG_OBJECT (series), "My first serie", NULL);<br />
data = go_data_vector_str_new ((char const * const *) legends, size, g_free);<br />
gog_series_set_dim (series, 0, data, &#038;error);<br />
data = go_data_vector_val_new (values, size, g_free);<br />
gog_series_set_dim (series, 1, data, &#038;error);<br />
// Add another serie of data<br />
series = gog_plot_new_series (self->priv->plot);<br />
gog_object_set_name (GOG_OBJECT (series), "My second serie", NULL);<br />
data = go_data_vector_val_new (values, size, g_free);<br />
gog_series_set_dim (series, 1, data, &#038;error);</code></p>
<p><code>// Add a legend to the chart and get it to be able to clear in the future<br />
gog_object_add_by_name (GOG_OBJECT (chart), "Legend", GOG_OBJECT (self->priv->legend));<br />
self->priv->legend = (GogLegend *) gog_object_get_child_by_name (GOG_OBJECT (chart), "Legend");</code></p>
<ul>
<li>Clean the chart: (i.e. clean components from the widget, to paint another)</li>
</ul>
<p><code>gog_object_clear_parent (GOG_OBJECT (self->priv->plot));<br />
g_object_unref (self->priv->plot);<br />
gog_object_clear_parent (GOG_OBJECT (self->priv->legend));<br />
g_object_unref (self->priv->legend);<br />
</code></p>
<ul>
<li>Dispose:</li>
</ul>
<p><code>libgoffice_shutdown ();<br />
</code></p>
<p>[1]: All the plot names and their properties can be queried at /usr/lib/goffice/<code>version</code>/plugins/plot_<code>type</code>/plot-types.xml<br />
I hope that this help to anybody <img src='http://blogs.igalia.com/aalvarez/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.igalia.com/aalvarez/2008/06/02/mini-how-to-paint-charts-in-gtk-with-libgoffice/feed/</wfw:commentRss>
		</item>
		<item>
		<title>The new &#8220;product&#8221; of Google: Fear!</title>
		<link>http://blogs.igalia.com/aalvarez/2007/12/30/the-new-product-of-google-fear/</link>
		<comments>http://blogs.igalia.com/aalvarez/2007/12/30/the-new-product-of-google-fear/#comments</comments>
		<pubDate>Sun, 30 Dec 2007 15:16:41 +0000</pubDate>
		<dc:creator>aalvarez</dc:creator>
		
		<category>Overall</category>

		<guid isPermaLink="false">http://blogs.igalia.com/aalvarez/2007/12/30/the-new-product-of-google-fear/</guid>
		<description><![CDATA[Some time ago I realized that Google stores our searches if we are logged in with a Google account. The fact of look Gmail and forget to logout (what happed to me&#8230;) causes that Google knows the web pages you visit. But, are there commercial reasons? What makes Google with all this information?
.

If this has [...]]]></description>
			<content:encoded><![CDATA[<p>Some time ago I realized that Google stores our searches if we are logged in with a Google account. The fact of look Gmail and forget to logout (what happed to me&#8230;) causes that Google knows the web pages you visit. But, are there commercial reasons? What makes Google with all this information?</p>
<p>.<br />
<a class="imagelink" title="google_3.png" href="http://blogs.igalia.com/aalvarez/wp-content/uploads/2007/12/google_3.png"><img id="image15" alt="google_3.png" src="http://blogs.igalia.com/aalvarez/wp-content/uploads/2007/12/google_3.thumbnail.png" /></a></p>
<p>If this has scared you, watch what I have discovered. I was looking for how to hack the new type of maps that provides Google (terrain), and then the finder informed me about pages with dangerous content! Will it be true that google can detect, or only is a strategy not to go into pages on which they do not want to the people enter? I don&#8217;t know&#8230;</p>
<p>.</p>
<p><a class="imagelink" title="google_1.png" href="http://blogs.igalia.com/aalvarez/wp-content/uploads/2007/12/google_1.png"><img id="image13" alt="google_1.png" src="http://blogs.igalia.com/aalvarez/wp-content/uploads/2007/12/google_1.thumbnail.png" /></a>  <a class="imagelink" title="google_2.png" href="http://blogs.igalia.com/aalvarez/wp-content/uploads/2007/12/google_2.png"><img id="image14" alt="google_2.png" src="http://blogs.igalia.com/aalvarez/wp-content/uploads/2007/12/google_2.thumbnail.png" /></a>
</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.igalia.com/aalvarez/2007/12/30/the-new-product-of-google-fear/feed/</wfw:commentRss>
		</item>
		<item>
		<title>WindGURU en galego</title>
		<link>http://blogs.igalia.com/aalvarez/2007/12/01/windguru-en-galego/</link>
		<comments>http://blogs.igalia.com/aalvarez/2007/12/01/windguru-en-galego/#comments</comments>
		<pubDate>Sat, 01 Dec 2007 15:49:29 +0000</pubDate>
		<dc:creator>aalvarez</dc:creator>
		
		<category>Planet Igalia</category>

		<category>Translations</category>

		<guid isPermaLink="false">http://blogs.igalia.com/aalvarez/2007/12/01/windguru-en-galego/</guid>
		<description><![CDATA[
Estamos a traballar na traducción ó galego da páxina web WindGURU, nunha nova aportación de Igalia á comunidade.
Nesta páxina poderás consultar previsións meteorolóxicas, estado do vento, cobertura de nubes, períodos das ondas, temperaturas, etc.




                      [...]]]></description>
			<content:encoded><![CDATA[<div align="left">
<div align="left">Estamos a traballar na traducción ó galego da páxina web <a target="_blank" href="http://www.windguru.cz/gl/index.php?switchlang=1">WindGURU</a>, nunha nova aportación de Igalia á comunidade.</div>
<div align="left">Nesta páxina poderás consultar previsións meteorolóxicas, estado do vento, cobertura de nubes, períodos das ondas, temperaturas, etc.</div>
<div align="left">
<div align="left">
<div align="left">
<div align="left">
<div style="text-align: center"><a target="_blank" href="http://www.windguru.cz/gl/index.php?switchlang=1">                                                                                                                      </a><a target="_blank" href="http://www.windguru.cz/gl/index.php?switchlang=1"><img alt="windguru.png" id="image11" src="http://blogs.igalia.com/aalvarez/wp-content/uploads/2007/12/windguru.png" /><br />
</a></div>
</div>
</div>
</div>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blogs.igalia.com/aalvarez/2007/12/01/windguru-en-galego/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Hello world!</title>
		<link>http://blogs.igalia.com/aalvarez/2007/11/13/hello-world/</link>
		<comments>http://blogs.igalia.com/aalvarez/2007/11/13/hello-world/#comments</comments>
		<pubDate>Tue, 13 Nov 2007 16:48:27 +0000</pubDate>
		<dc:creator>aalvarez</dc:creator>
		
		<category>Overall</category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Welcome to my Igalia&#8217;s blog. This is my first post, so i&#8217;ll not write anything interesting, but thanks to Igalia for give me the oportunity to work with him. I hope to return the confidence they put in me.

]]></description>
			<content:encoded><![CDATA[<p>Welcome to my Igalia&#8217;s blog. This is my first post, so i&#8217;ll not write anything interesting, but thanks to Igalia for give me the oportunity to work with him. I hope to return the confidence they put in me.
</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.igalia.com/aalvarez/2007/11/13/hello-world/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
