[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gEDA-dev: Preview widget in File-Open (schem)
I looked at your preview widget sourcecode, but haven't managed to make
it compile yet..
I've used:
configure --prefix=/home/pcjc2/geda_bernaud/ --with-libintl-prefix=/usr/
But at the final linking stage, it gives:
"gcc -Wall -g -O2 -o gschem a_pan.o a_zoom.o g_register.o g_hook.o
g_rc.o g_keys.o g_funcs.o globals.o gschem.o i_basic.o i_callbacks.o
i_vars.o o_basic.o o_attrib.o o_move.o o_copy.o o_delete.o o_misc.o
o_slot.o o_grips.o o_arc.o o_box.o o_circle.o o_complex.o o_select.o
o_find.o o_line.o o_net.o o_text.o o_pin.o o_bus.o o_buffer.o o_undo.o
o_picture.o x_basic.o x_dialog.o x_event.o x_grid.o x_log.o x_menus.o
x_script.o x_pagesel.o x_print.o x_window.o x_stroke.o x_image.o
x_color.o x_compselect.o x_fileselect.o x_preview.o x_attribedit.o
x_multiattrib.o parsecmd.o o_cue.o -lstroke -Wl,-rpath,/usr/lib
-L/home/pcjc2/geda_bernaud//lib -lgeda -lguile -lguile-ltdl -lqthreads
-lpthread -lcrypt -lgdgeda -lpng -lz -lgdk-x11-2.0 -lgdk_pixbuf-2.0 -lm
-lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl
-lglib-2.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm
-lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl
-lglib-2.0 -lSM -lICE -lX11 -lm -lpaper
a_zoom.o: In function `a_zoom_box':
../noweb/a_zoom.nw:297: undefined reference to `_'
g_hook.o: In function `g_make_attrib_smob_list':
../noweb/g_hook.nw:103: undefined reference to `_'
g_rc.o: In function `g_rc_gschem_version':
../noweb/g_rc.nw:227: undefined reference to `_'
../noweb/g_rc.nw:230: undefined reference to `_'
g_rc.o: In function `g_rc_color_general':
../noweb/g_rc.nw:298: undefined reference to `_'
g_rc.o:../noweb/g_rc.nw:515: more undefined references to `_' follow
collect2: ld returned 1 exit status
"
Any insight? I realise its i18n related.
> The two dialogs are already separated in my tree. BTW this morning I
> played with your new layout (vertical for a possible sidebar). I have
> adapted it to my own changes and it works pretty well. No commit yet
> though, I will let you know when I do.
Good, thanks... if you look closely, you'll see its not finished yet
though.. IE. v-boxes nested in v-boxes where I changed one from a h-box.
It was a quick re-hash to demonstrate a more vertical layout.
> Well, the GTK file selection dialog requires a GtkWidget for the
> preview. And the preview is using a TOPLEVEL structure. Since TOPLEVEL
> is not a GtkWidget, the TOPLEVEL has to be embedded in a GtkWidget
> extending a GtkDrawingArea.
>
> And it changes the preview into a nice independent/reusable component
> that is easy to add to a dialog.
Indeed. I guess the difference between making it a widget, or
instanciating a GtkDrawingArea is one of properness in the object
oriented sense. (You could probably do the same by using a
GtkDrawingArea and painting inside it, it wouldn't be as clean in its
object usage I guess).
Peter Clifton
_______________________________________________
geda-dev mailing list
geda-dev@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev