|
View:
New views
8 Messages
—
Rating Filter:
Alert me
|
|
|
Using GDLHello, I post originally on the gtk mailing list, but I think it better here, sorry if I'm wrong I try to create a dockable application with GDL, but it doesn't works. The code for populate the main application window: private void populate_window () First, the items doesn't dock correctly (projects and document on the left and messages on the right). Seconds, when I move an item, the others doesn't respond. Last, the dockbar doesn't show.
The attached file, layout.xml is derived from the ajunta file.
Thank's in advance.
Regards, -- Nicolas Joseph <?xml version="1.0"?> <dock-layout> <layout name="__default__"> <dock name="__dock_1" floating="no" width="-1" height="-1" floatx="0" floaty="0"> <paned orientation="vertical" locked="no" position="326"> <paned orientation="horizontal" locked="no" position="249"> <notebook orientation="vertical" locked="no" page="0"> <item name="projects" orientation="horizontal" locked="no"/> <placeholder name="ph_left" next-placement="center"/> </notebook> <paned orientation="horizontal" locked="no" position="500"> <paned orientation="vertical" locked="no" position="200"> <notebook orientation="vertical" locked="no" page="0"> <placeholder name="ph_top" next-placement="center"/> </notebook> <notebook orientation="vertical" locked="no" page="0"> <item name="documents" orientation="horizontal" locked="no"/> <placeholder name="ph_center" next-placement="center"/> </notebook> </paned> <notebook orientation="vertical" locked="no" page="0"> <placeholder name="ph_right" next-placement="center"/> </notebook> </paned> </paned> <notebook orientation="vertical" locked="no" page="0"> <item name="executables" orientation="horizontal" locked="no"/> <placeholder name="ph_bottom" next-placement="center"/> </notebook> </paned> </dock> </layout> </dock-layout> ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Anjuta-devel mailing list Anjuta-devel@... https://lists.sourceforge.net/lists/listinfo/anjuta-devel |
|
|
Re: Using GDLHi Nicolas!
Well, I am not very familiar with the vala bindings of gdl so I cannot say it this works. Have you tried to port one of the examples in gdl (like gdl/test-dock.c) to vala and see if this works for you. Actually, there hasn't been much development around gdl recently in anjuta because most of the code hasn't been touched for long except for some small enhancements. I you want me to help you I would be better if you send a complete compilable source (can be in vala if you like) so I can test it. BTW, we really want some better vala support in anjuta and I am going to integrate your ctags vala file (that was initially created as Anjuta GSoC Project :) soon. Maybe we could try to create some independent library for code completion where both projects could benefit. Regards, Johannes Am Donnerstag, den 17.09.2009, 14:09 +0200 schrieb Nicolas Joseph: > Hello, > > I post originally on the gtk mailing list, but I think it better here, > sorry if I'm wrong > > I try to create a dockable application with GDL, but it doesn't works. > > The code for populate the main application window: > > private void populate_window () > { > Gdl.Dock dock; > Gtk.HBox hbox; > Gdl.DockItem item; > Gtk.VBox main_box; > Gdl.DockBar dockbar; > Gdl.DockLayout layout; > > main_box = new Gtk.VBox (false, 0); > this.add (main_box); > > main_box.pack_start (this.menu, false, true, 0); > main_box.pack_start (this.toolbar, false, true, 0); > this.fullscreen_toolbar = new FullscreenToolbar (this); > > hbox = new Gtk.HBox (false, 0); > main_box.pack_start (hbox, true, true, 0); > > dockbar = new Gdl.DockBar (); > dockbar.set_style (Gdl.DockBarStyle.TEXT); > hbox.pack_start (dockbar, false, false, 0); > > dock = new Gdl.Dock (); > hbox.pack_start (dock, true, true, 0); > layout = new Gdl.DockLayout (dock); > > item = new Gdl.DockItem ("executables", _("Messages"), > Gdl.DockItemBehavior.NORMAL); > item.add (this.executables); > dock.add_item (item, Gdl.DockPlacement.BOTTOM); > > item = new Gdl.DockItem ("projects", _("Projects"), > Gdl.DockItemBehavior.NORMAL); > item.add (this.projects); > dock.add_item (item, Gdl.DockPlacement.LEFT); > > item = new Gdl.DockItem ("documents", _("Documents"), > Gdl.DockItemBehavior.NORMAL); > item.add (this.documents); > dock.add_item (item, Gdl.DockPlacement.CENTER); > > main_box.pack_start (this.statusbar, false, true, 0); > > if (!layout.load_from_file ("layout.xml")) > { > critical ("error!"); > Gtk.main_quit (); > } > } > > First, the items doesn't dock correctly (projects and document on the > left and messages on the right). > > Seconds, when I move an item, the others doesn't respond. > > Last, the dockbar doesn't show. > > > > The attached file, layout.xml is derived from the ajunta file. > > > > Thank's in advance. > > > > Regards, > > -- > Nicolas Joseph > > http://www.valaide.org > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ Anjuta-devel mailing list Anjuta-devel@... https://lists.sourceforge.net/lists/listinfo/anjuta-devel ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Anjuta-devel mailing list Anjuta-devel@... https://lists.sourceforge.net/lists/listinfo/anjuta-devel |
|
|
Re: Using GDLThank's for your answer! > Well, I am not very familiar with the vala bindings of gdl so I cannot > say it this works. Have you tried to port one of the examples in gdl > (like gdl/test-dock.c) to vala and see if this works for you. I have create the binding, and effectively I have a bug this the GdlDockBar and couldn't reproduce the widgets freezing. > I you want me to help you I would be better if you send a complete > compilable source (can be in vala if you like) so I can test it. Ok, I will write a minimalist source in C for more understing the GDL (probably tomorrow). > BTW, we really want some better vala support in anjuta and I am going to > integrate your ctags vala file (that was initially created as Anjuta > GSoC Project :) soon. Yes, I have added some cosmetics changes but there are still some bugs. > Maybe we could try to create some independent > library for code completion where both projects could benefit. Currently, I use Valencia[1] for completion, it's a plugin for gedit with (most) independant parser. [1] http://trac.yorba.org/wiki/Valencia Regards, -- Nicols Joseph http://www.valaide.org ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Anjuta-devel mailing list Anjuta-devel@... https://lists.sourceforge.net/lists/listinfo/anjuta-devel |
|
|
Re: Using GDLI have wrote a minimalist example.
The layout doesn't works. On Fri, 18 Sep 2009 11:32:39 +0200, Nicolas Joseph <nicolas.joseph@...> wrote: > Thank's for your answer! > >> Well, I am not very familiar with the vala bindings of gdl so I cannot >> say it this works. Have you tried to port one of the examples in gdl >> (like gdl/test-dock.c) to vala and see if this works for you. > > I have create the binding, and effectively I have a bug this the > GdlDockBar and couldn't reproduce the widgets freezing. > >> I you want me to help you I would be better if you send a complete >> compilable source (can be in vala if you like) so I can test it. > > Ok, I will write a minimalist source in C for more understing the GDL > (probably tomorrow). > >> BTW, we really want some better vala support in anjuta and I am going >> integrate your ctags vala file (that was initially created as Anjuta >> GSoC Project :) soon. > > Yes, I have added some cosmetics changes but there are still some bugs. > >> Maybe we could try to create some independent >> library for code completion where both projects could benefit. > > Currently, I use Valencia[1] for completion, it's a plugin for gedit > (most) independant parser. > > [1] http://trac.yorba.org/wiki/Valencia > > Regards, -- Nicolas Joseph http://www.valaide.org <?xml version="1.0"?> <dock-layout> <layout name="__default__"> <dock name="__dock_1" floating="no" width="-1" height="-1" floatx="0" floaty="0"> <paned orientation="vertical" locked="no" position="326"> <paned orientation="horizontal" locked="no" position="249"> <notebook orientation="vertical" locked="no" page="2"> <item name="projects" orientation="vertical" locked="no"/> <placeholder name="ph_left" next-placement="center"/> </notebook> <paned orientation="horizontal" locked="no" position="249"> <paned orientation="vertical" locked="no" position="200"> <notebook orientation="vertical" locked="no" page="0"> <placeholder name="ph_top" next-placement="center"/> </notebook> <notebook orientation="vertical" locked="no" page="2"> <item name="documents" orientation="vertical" locked="no"/> <placeholder name="ph_center" next-placement="center"/> </notebook> </paned> <notebook orientation="vertical" locked="no" page="0"> <placeholder name="ph_right" next-placement="center"/> </notebook> </paned> </paned> <notebook orientation="vertical" locked="no" page="2"> <item name="executables" orientation="vertical" locked="no"/> </notebook> </paned> </dock> </layout> </dock-layout> #include <gdl/gdl.h> #include <gtk/gtk.h> int main (int argc, char **argv) { GtkWidget *dock = NULL; GtkWidget *item = NULL; GtkWidget *window = NULL; GdlDockLayout *layout = NULL; gtk_init (&argc, &argv); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); g_signal_connect (G_OBJECT (window), "destroy", gtk_main_quit, NULL); dock = gdl_dock_new (); gtk_container_add (GTK_CONTAINER (window), dock); item = gdl_dock_item_new ("documents", "Documents", GDL_DOCK_ITEM_BEH_NORMAL); gtk_container_add (GTK_CONTAINER (item), gtk_text_view_new ()); gdl_dock_add_item (GDL_DOCK (dock), GDL_DOCK_ITEM (item), GDL_DOCK_BOTTOM); item = gdl_dock_item_new ("executables", "Messages", GDL_DOCK_ITEM_BEH_NORMAL); gtk_container_add (GTK_CONTAINER (item), gtk_text_view_new ()); gdl_dock_add_item (GDL_DOCK (dock), GDL_DOCK_ITEM (item), GDL_DOCK_BOTTOM); item = gdl_dock_item_new ("projects", "Projects", GDL_DOCK_ITEM_BEH_NORMAL); gtk_container_add (GTK_CONTAINER (item), gtk_text_view_new ()); gdl_dock_add_item (GDL_DOCK (dock), GDL_DOCK_ITEM (item), GDL_DOCK_BOTTOM); layout = gdl_dock_layout_new (GDL_DOCK (dock)); gdl_dock_layout_load_from_file (layout, "layout.xml"); gtk_widget_show_all (window); gtk_main (); return 0; } ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Anjuta-devel mailing list Anjuta-devel@... https://lists.sourceforge.net/lists/listinfo/anjuta-devel |
|
|
Re: Using GDLHi!
You miss the call to gdl_dock_layout_load_layout (layout, "__default__"); after doing load_from_file(). Probably the documentation is incomplete at some point. Regards, Johannes Am Samstag, den 19.09.2009, 23:19 +0200 schrieb Nicolas Joseph: > I have wrote a minimalist example. > > The layout doesn't works. > > On Fri, 18 Sep 2009 11:32:39 +0200, Nicolas Joseph > <nicolas.joseph@...> wrote: > > Thank's for your answer! > > > >> Well, I am not very familiar with the vala bindings of gdl so I cannot > >> say it this works. Have you tried to port one of the examples in gdl > >> (like gdl/test-dock.c) to vala and see if this works for you. > > > > I have create the binding, and effectively I have a bug this the > > GdlDockBar and couldn't reproduce the widgets freezing. > > > >> I you want me to help you I would be better if you send a complete > >> compilable source (can be in vala if you like) so I can test it. > > > > Ok, I will write a minimalist source in C for more understing the GDL > > (probably tomorrow). > > > >> BTW, we really want some better vala support in anjuta and I am going > to > >> integrate your ctags vala file (that was initially created as Anjuta > >> GSoC Project :) soon. > > > > Yes, I have added some cosmetics changes but there are still some bugs. > > > >> Maybe we could try to create some independent > >> library for code completion where both projects could benefit. > > > > Currently, I use Valencia[1] for completion, it's a plugin for gedit > with > > (most) independant parser. > > > > [1] http://trac.yorba.org/wiki/Valencia > > > > Regards, > > -- > Nicolas Joseph > > http://www.valaide.org ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Anjuta-devel mailing list Anjuta-devel@... https://lists.sourceforge.net/lists/listinfo/anjuta-devel |
|
|
Re: Using GDLOn Mon, 21 Sep 2009 11:32:46 +0200, Johannes Schmid <jhs@...> wrote: > Hi! > > You miss the call to > > gdl_dock_layout_load_layout (layout, "__default__"); > > after doing load_from_file(). Probably the documentation is incomplete > at some point. Hi, Thank's it works fine! I still have one problem when I move an item I have the following error: (valide.exe:7920): Gtk-CRITICAL **: gtk_grab_remove: assertion `widget != NULL' failed And the other widgets are frozen. I don't have this error with the demo. Have you an idea? Regards, -- Nicolas Joseph http://www.valaide.org ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Anjuta-devel mailing list Anjuta-devel@... https://lists.sourceforge.net/lists/listinfo/anjuta-devel |
|
|
Re: Using GDLHi!
> I still have one problem when I move an item I have the following error: > > (valide.exe:7920): Gtk-CRITICAL **: gtk_grab_remove: assertion `widget != > NULL' > failed Hmm, I also don't get this with the demo and I didn't see this message ever before. Regarding the .exe suffix - are you using a windows build? Anyway, I could of course be a bug in gdl but without a test-case it is difficult to say. Regards, Johannes ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Anjuta-devel mailing list Anjuta-devel@... https://lists.sourceforge.net/lists/listinfo/anjuta-devel |
|
|
Re: Using GDL> Hmm, I also don't get this with the demo and I didn't see this message > ever before. Regarding the .exe suffix - are you using a windows build? > Anyway, I could of course be a bug in gdl but without a test-case it is > difficult to say. I know, it may be a known bug... I have the problem under Windows and Linux. But under Windows, the gdb backtrace is available. The debuger stop at this line: http://git.gnome.org/cgit/gdl/tree/gdl/gdl-dock-item.c?id=GDL_2_26_2#n1477 In view of the gtk_grab_get_current function code, I can be a problem with my window group. Regards, -- Nicolas Joseph http://www.valaide.org ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Anjuta-devel mailing list Anjuta-devel@... https://lists.sourceforge.net/lists/listinfo/anjuta-devel |
| Free embeddable forum powered by Nabble | Forum Help |