<br><br><div class="gmail_quote">On 18 February 2010 05:58, Lai Hoang Nam <span dir="ltr"><<a href="mailto:laihoangnam@gmail.com">laihoangnam@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br><br>I'm
developping a plugin for Geany and the objective is to create a window
to display something (some texts...). However, the difficulty is that I
don't know how to insert a new window into Geany (ex: a text view just
below the Message Window of Geany). I have tried to add something like:<br>
<br>GtkWidget *view;<br>view = gtk_text_view_new();<br>gtk_box_pack_start(GTK_BOX(ui_<div>lookup_widget(geany->main_widgets->window, "vbox1")), view, TRUE, TRUE, 0);<br>gtk_widget_show(view);  <br>
<br>in the function plugin_init but it doesn't work as I expected.<br></div></blockquote><div><br>Assuming that you mean nothing shows, a couple of suggestions:<br><br>1. run Geany with the -v option and see if ui_lookup_widget is giving an error<br>
<br>2. put some text in the text view, maybe vbox gives it zero size if its empty<br><br>Cheers<br>Lex <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><br>I'm very happy if anyone can help me!<br><br>Thank you very much<br></div>
<br>_______________________________________________<br>
Geany-devel mailing list<br>
<a href="mailto:Geany-devel@uvena.de">Geany-devel@uvena.de</a><br>
<a href="http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel" target="_blank">http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel</a><br>
<br></blockquote></div><br>