title: gtk glade need help
body: <p>I am using glade to make an user interface.</p>
  
  <p>i have successfully generated the glade file </p>
  
  <p>Now i have to include this file in my C code.</p>
  
  <p>I am using following code:</p>
  
  <pre><code>#include &lt;stdlib.h&gt;
  #include&lt;gtk/gtk.h&gt;
  int main (int argc, char *argv[])
  {
  GtkWidget *builder,*window,*button;
  gtk_init (&amp;argc, &amp;argv);
  builder=gtk_builder_new();
  gtk_builder_add_from_file(builder,"shiv.glade",NULL);
  window=GTK_WIDGET (gtk_builder_get_object(builder,"window1")) ;
  button=GTK_WIDGET (gtk_builder_get_object(builder,"button1"));
  g_object_unref(G_OBJECT(builder));
  gtk_widget_show(button);
  gtk_widget_show(window);
  gtk_main ();
  return 0;
  }
  </code></pre>
  
  <p>My UI is a simple window having a button without any callback function.</p>
  
  <p>I am getting following errors on execution</p>
  
  <pre><code>GTK-CRITICAL **: IA__gtk_widget_show assertion 'GTK_IS_WIDGET(widget)' failed
  </code></pre>