Notices


Reply
Thread Tools
Posts: 2,102 | Thanked: 1,309 times | Joined on Sep 2006
#21
If there are any GTK+ gurus out there, could you take a look at the dialogs (botton of web.c) and see if you can work out why, after they are dismissed, the UI no longer accepts events. This seems to happen on both the N8x0 and N900.

For the next build I'll just disable the dialogs so that you can open urls and add vcards without it all locking up. Also need to tweak N8x0 url code as it seems to just open an empty browser atm.

In fact I now need to split the code (up till now the same has run on both N8x0 and N900), as there are going to be some significant differences in the camera stuff, the GUI, etc.
 
Posts: 15 | Thanked: 4 times | Joined on Jun 2009
#22
I did the dpkg and it worked. I did the chmod a+x .media/mmc1/mbarcode and it worked


Now what? I can't open mbarcode through the terminal because it says permission denied.
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#23
Originally Posted by lardman View Post
For the next build I'll just disable the dialogs so that you can open urls and add vcards without it all locking up. Also need to tweak N8x0 url code as it seems to just open an empty browser atm.
I still think connecting a "response" handler to the dialog's callback is more preferable to disabling it, while gtk_dialog_run() fails for you.

Last edited by qwerty12; 2009-10-18 at 15:14.
 
Posts: 15 | Thanked: 4 times | Joined on Jun 2009
#24
Easy Guide: (1 way to do it)

Download both files onto a removable memory card

Rename the libdmtx0a_0.7.0-1_armel.deb to lib.deb in File Manager

Open XTerminal

Get Root

type
Code:
dpkg -i /media/mmc1/lib.deb
type
Code:
ls -l /media/mmc1
You should see mbarcode on the list

type
Code:
mv /media/mmc1/mbarcode ~user
type
Code:
chmod ugo+rx ~user/mbarcode
You're done!

To start it whenever you want just type
Code:
~user/mbarcode
(a script should be made to start it)

And that's my beginners guide to installing it.

Last edited by adem3311; 2009-10-18 at 16:49.
 
Posts: 2,102 | Thanked: 1,309 times | Joined on Sep 2006
#25
I still think connecting a "response" handler to the dialog's callback is more preferable to disabling it, while gtk_dialog_run() fails for you.
I'll try it, but can't really see why it should behave differently to the current code.
 
Posts: 30 | Thanked: 3 times | Joined on Apr 2010
#26
Hi all,
I am developing an application and in my application there is one part that I should search the engine based on its bar code. I examined mbarcode application for N900 in repository and would like to embed it to my application.
I have try this code
https://garage.maemo.org/plugins/scm...=maemo-barcode
It works and I got a plugin installed.
However, sorry for my stupidness but still I could not find out a way to use this plugin in my application.
I think it should be something like:
QRreader reader(myMainApplication);
reader.show();

Any help for sample code please.
 
Posts: 2,102 | Thanked: 1,309 times | Joined on Sep 2006
#27
What about going the other way round and making your application a plugin that runs within mbarcode?

Otherwise, to use the mbarcode implementation in your app, you'll need to setup the GStreamer pipeline and handle the events coming from the libzbar gst decoder element.
 
Posts: 30 | Thanked: 3 times | Joined on Apr 2010
#28
My application is quite complicated and mbarcode should be a part of it.
Can you please give me some guidelines how to do it in the second way.
Please help me with this, I have been struggling with it quite a bit but still not much achievement
Can we have codes somewhere?
 
Reply


 
Forum Jump


All times are GMT. The time now is 10:09.