[gnomeweb-wml] libchamplain: simplify the example



commit 71537991db32809a1cd4b40c48d3931c9dd1e4b0
Author: JiÅ?í Techet <techet gmail com>
Date:   Sun May 23 02:56:42 2010 +0200

    libchamplain: simplify the example
    
    Signed-off-by: JiÅ?í Techet <techet gmail com>

 projects.gnome.org/libchamplain/reference.html |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/projects.gnome.org/libchamplain/reference.html b/projects.gnome.org/libchamplain/reference.html
index dfb1a60..30bfaea 100644
--- a/projects.gnome.org/libchamplain/reference.html
+++ b/projects.gnome.org/libchamplain/reference.html
@@ -56,7 +56,7 @@
 <span class="S5">int</span>
 main<span class="S0"> </span><span class="S10">(</span><span class="S5">int</span><span class="S0"> </span>argc<span class="S10">,</span><span class="S0"> </span><span class="S5">char</span><span class="S0"> </span><span class="S10">*</span>argv<span class="S10">[])</span>
 <span class="S10">{</span>
-<span class="S0">  </span>GtkWidget<span class="S0"> </span><span class="S10">*</span>window<span class="S10">,</span><span class="S0"> </span><span class="S10">*</span>widget<span class="S10">,</span><span class="S0"> </span><span class="S10">*</span>vbox<span class="S10">;</span>
+<span class="S0">  </span>GtkWidget<span class="S0"> </span><span class="S10">*</span>window<span class="S10">,</span><span class="S0"> </span><span class="S10">*</span>widget<span class="S10">;</span>
 
 <span class="S0">  </span><span class="S1">/* initialize threads and clutter */</span>
 <span class="S0">  </span>g_thread_init<span class="S0"> </span><span class="S10">(</span>NULL<span class="S10">);</span>
@@ -72,9 +72,7 @@ main<span class="S0"> </span><span class="S10">(</span><span class="S5">int</spa
 <span class="S0">  </span>gtk_widget_set_size_request<span class="S0"> </span><span class="S10">(</span>widget<span class="S10">,</span><span class="S0"> </span><span class="S4">640</span><span class="S10">,</span><span class="S0"> </span><span class="S4">480</span><span class="S10">);</span>
 
 <span class="S0">  </span><span class="S1">/* insert it into the widget you wish */</span>
-<span class="S0">  </span>vbox<span class="S0"> </span><span class="S10">=</span><span class="S0"> </span>gtk_vbox_new<span class="S10">(</span>FALSE<span class="S10">,</span><span class="S0"> </span><span class="S4">0</span><span class="S10">);</span>
-<span class="S0">  </span>gtk_box_pack_start<span class="S0"> </span><span class="S10">(</span>GTK_BOX<span class="S0"> </span><span class="S10">(</span>vbox<span class="S10">),</span><span class="S0"> </span>widget<span class="S10">,</span><span class="S0"> </span>TRUE<span class="S10">,</span><span class="S0"> </span>TRUE<span class="S10">,</span><span class="S0"> </span><span class="S4">0</span><span class="S10">);</span>
-<span class="S0">  </span>gtk_container_add<span class="S0"> </span><span class="S10">(</span>GTK_CONTAINER<span class="S0"> </span><span class="S10">(</span>window<span class="S10">),</span><span class="S0"> </span>vbox<span class="S10">);</span>
+<span class="S0">  </span>gtk_container_add<span class="S0"> </span><span class="S10">(</span>GTK_CONTAINER<span class="S0"> </span><span class="S10">(</span>window<span class="S10">),</span><span class="S0"> </span>widget<span class="S10">);</span>
 
 <span class="S0">  </span><span class="S1">/* show everything */</span>
 <span class="S0">  </span>gtk_widget_show_all<span class="S0"> </span><span class="S10">(</span>window<span class="S10">);</span>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]