<?xml version="1.0" encoding="UTF-8"?> <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/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
> <channel><title>素心如何天上月 &#187; gnome</title> <atom:link href="http://yongsun.me/tag/gnome/feed/" rel="self" type="application/rss+xml" /><link>http://yongsun.me</link> <description>Yong Sun&#039;s Blog</description> <lastBuildDate>Sat, 17 Dec 2011 16:17:35 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3</generator> <item><title>Use gnome_url_show to display ghelp of other gnome application</title><link>http://yongsun.me/2006/12/use-gnome_url_show-to-display-ghelp-of-other-gnome-application/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=use-gnome_url_show-to-display-ghelp-of-other-gnome-application</link> <comments>http://yongsun.me/2006/12/use-gnome_url_show-to-display-ghelp-of-other-gnome-application/#comments</comments> <pubDate>Wed, 27 Dec 2006 00:48:50 +0000</pubDate> <dc:creator>yongsun</dc:creator> <category><![CDATA[OSS]]></category> <category><![CDATA[ghelp]]></category> <category><![CDATA[gnome]]></category> <guid
isPermaLink="false">http://yongsun.wordpress.com/2006/12/26/use-gnome_url_show-to-display-ghelp-of-other-gnome-application/</guid> <description><![CDATA[In my small application, I try to show gnome help of other gnome application, and thanks to Juhaz on GimpNet-#gnome irc channel, I learned that how the ghelp URL looks like, gnome_url_show ("ghelp:gedit#gedit-prefs", NULL), /* #gedit-prefs is a section in &#8230; <a
href="http://yongsun.me/2006/12/use-gnome_url_show-to-display-ghelp-of-other-gnome-application/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>In my small application, I try to show gnome help of other gnome application, and thanks to Juhaz on GimpNet-#gnome irc channel, I learned that how the ghelp URL looks like,</p><pre>gnome_url_show ("ghelp:gedit#gedit-prefs", NULL),
/* #gedit-prefs is a section in the doc-book source */</pre><p>or use the gnome-open utility to open it,</p><pre>$ gnome-open ghelp:gedit#gedit-prefs</pre><p>The nice piece is it will choose the proper ghelp file according to the running locale.</p> ]]></content:encoded> <wfw:commentRss>http://yongsun.me/2006/12/use-gnome_url_show-to-display-ghelp-of-other-gnome-application/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>OpenSolaris plus gnu/gnome</title><link>http://yongsun.me/2005/06/opensolaris-plus-gnugnome/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=opensolaris-plus-gnugnome</link> <comments>http://yongsun.me/2005/06/opensolaris-plus-gnugnome/#comments</comments> <pubDate>Thu, 16 Jun 2005 14:24:02 +0000</pubDate> <dc:creator>yongsun</dc:creator> <category><![CDATA[OSS]]></category> <category><![CDATA[gnome]]></category> <category><![CDATA[gnu]]></category> <category><![CDATA[OpenSolaris]]></category> <guid
isPermaLink="false">http://yongsun.wordpress.com/2005/06/16/opensolaris-plus-gnugnome/</guid> <description><![CDATA[OpenSolaris launched in blogs.sun.com. And from OpenSolaris.org, you could see that you will be able build OpenSolaris with gcc tools in future. I am not an OS expert , but personally, I think someone may have interests to build an &#8230; <a
href="http://yongsun.me/2005/06/opensolaris-plus-gnugnome/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p><a
href="www.opensolaris.org">OpenSolaris</a> launched in <a
href="blogs.sun.com">blogs.sun.com</a>. And from OpenSolaris.org, you could see that you will be able build OpenSolaris with <a
href="https://www.opensolaris.org/os/community/tools/gcc/">gcc tools</a> in future.</p><p>I am not an OS expert <img
src='http://yongsun.me/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> , but personally, I think someone may have<br
/> interests to build an OpenSolaris distribution with OpenSolaris kernel<br
/> and admin tools plus <a
href="www.gnu.org">gnu</a> software stack, including <a
href="http://www.gnu.org/software/libc/libc.html">gnu libc</a> (is it<br
/> possible?) ,gnu shell utilities, <a
href="www.xorg.org">Xorg</a> (does not belong to Gnu; Solaris 10 x64 are using xorg),<br
/> <a
href="www.gnome.org">Gnome</a> desktop environment (Solaris 10 already bundled Gnome 2.6).<br
/> Actually, you could download many opensource softwares from<br
/> <a
href="http://www.sunfreeware.com">http://www.sunfreeware.com</a>.</p><p>At last, welcome to <a
href="https://www.opensolaris.org/os/community/int_localization/">Internationalization and Localization</a> community for OpenSolaris!</p><p></p> ]]></content:encoded> <wfw:commentRss>http://yongsun.me/2005/06/opensolaris-plus-gnugnome/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>How to create customized widget in glade project.</title><link>http://yongsun.me/2005/05/how-to-create-customized-widget-in-glade-project/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-create-customized-widget-in-glade-project</link> <comments>http://yongsun.me/2005/05/how-to-create-customized-widget-in-glade-project/#comments</comments> <pubDate>Sun, 08 May 2005 08:00:41 +0000</pubDate> <dc:creator>yongsun</dc:creator> <category><![CDATA[OSS]]></category> <category><![CDATA[glade]]></category> <category><![CDATA[gnome]]></category> <guid
isPermaLink="false">http://yongsun.wordpress.com/2005/05/08/how-to-create-customized-widget-in-glade-project/</guid> <description><![CDATA[1. Create a new glade project, either Gnome or Gtk+. 2. In "Gtk+ Addtional" tab, click the "Custom Widget" button labeled with "C", and add this DUMMY widget into any container of a top-level window. 3. In "Properties" dialog, fill &#8230; <a
href="http://yongsun.me/2005/05/how-to-create-customized-widget-in-glade-project/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>1. Create a new glade project, either Gnome or Gtk+.</p><p>2. In "Gtk+ Addtional" tab, click the "Custom Widget" button labeled with "C", and add this <span
style="font-weight:bold;">DUMMY </span>widget into any container of a top-level window.</p><p>3. In "Properties" dialog, fill the "Name" field, and then fill the "Creation Function" field (e.g., create_gtksrcview), other arguments can be ignored.</p><p>4. Save the glade file, and <span
style="font-weight:bold;">DO NOT</span> compile the glade to C/C++ source code.</p><p>5. Initialize the UI from glade file, and show the main window, as following:</p><div
style="margin-left:40px;"><span
style="background-color:#cccccc;color:#000000;"> ui = glade_xml_new("./sunny.glade", NULL, NULL);</span><br
/> <span
style="background-color:#cccccc;color:#000000;"> main_wnd = glade_xml_get_widget (ui, "main_wnd");</span><br
/> <span
style="background-color:#cccccc;color:#000000;"> gtk_widget_show (main_wnd);</span><br
/> <span
style="background-color:#cccccc;color:#000000;"> glade_xml_signal_autoconnect(ui);</span></div><p>6. Define the customized widget create function in C file, the function name must equal to the one you setup in glade file, and this function will be invoked automaticlly by libglade, and at last, you must <span
style="font-weight:bold;color:#ff0000;">SHOW </span>the widget you created.</p><div
style="margin-left:40px;"><span
style="background-color:#cccccc;"> GtkWidget* </span><br
style="background-color:#cccccc;" /><span
style="background-color:#cccccc;">create_gtksrcview (gchar *widget_name, gchar *string1, gchar *string2,</span><span
style="background-color:#cccccc;"> gint int1, gint int2)</span><br
style="background-color:#cccccc;" /><span
style="background-color:#cccccc;"> {</span><br
style="background-color:#cccccc;" /><span
style="background-color:#cccccc;"> GtkWidget *view;</span><br
style="background-color:#cccccc;" /><span
style="background-color:#cccccc;"> GtkSourceBuffer *buffer;</span><br
style="background-color:#cccccc;" /><span
style="background-color:#cccccc;"> ... ...</span><br
style="background-color:#cccccc;" /><span
style="background-color:#cccccc;"> view = gtk_source_view_new_with_buffer (buffer);</span><br
style="background-color:#cccccc;" /><span
style="background-color:#cccccc;"> ... ...</span><br
style="background-color:#cccccc;" /><span
style="background-color:#ff0000;color:#ffffff;"> gtk_widget_show (view);</span><br
style="background-color:#cccccc;" /><span
style="background-color:#cccccc;"> return view;</span><br
style="background-color:#cccccc;" /><span
style="background-color:#cccccc;"> }</span></div> ]]></content:encoded> <wfw:commentRss>http://yongsun.me/2005/05/how-to-create-customized-widget-in-glade-project/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
