Friday, August 1, 2008

GTK+ vs GLib vs std

Resolved the variable type incompatibility in my stardict enhancement. That is enabling appropriate default dictionaries according to the locale when user firstly start the application.

Comparing to figure out a logic (or pseudo code) of the enhancement, I was struggling in conversion between variable types among GTK+, GLib, and std. There are loads of useful functions available but they have strict input parameter specifications.

For example, gchar* differs from std::string and GString. If you put a std::string as parameter for a function which only takes gchars*, sorry you will get a compilation error. Googled a lot and finally someone in #tossug @ irc.freenode.net provided me a solution:

std::string.c_str().

Anyways, will tidy up codes and gendiff the patch.

=====

Still unfortunate recently.

Broadband internet application was rejected because my younger brother has failed the credit check as applicant. I need to fill in the same form with my info and reapply it again. Wasting time... :(

One of my cat has likely right fore foot disjoint since yesterday morning. Need to take him to vet asap. I worry these kind of problem because delay of treatment might make him disabled permanently.

Also involving in few more issues and it just keep disturbing my life. Anyways, sustain strongly and work it out is all I could do now.

No comments:

Creative Commons License
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 2.5 Australia License.
Copyright © 2008 みかんいろのそら (蜜柑色の空) . Some rights reserved.

Tags