Hello all
I finished writing some API functions. There are the 8 functions so far:
void beaver_box_message
void beaver_box_error
gint beaver_box_question
gint beaver_menu_add_item
void beaver_menu_remove_item
void beaver_text_insert_string
gchar* beaver_text_selection_get
void beaver_text_selection_set
If you got ideas for functions, let me know i will implement those. we
have to make sure that we use these api functions also in our code
(this will reduce code duplication) and we can change the
implementation later more easier. As you can see, I've added function
for removing and adding menu items, yay ^^
I also had to change 2 lines of code in interface.c (sorry they were
needed). one is to call plugin_init right before entering into main
look (gtk_main). the other change was "moving" the standard.xml file
into a virtual resource dir. this change was necessary so that there's
no error when installing the application (as happened before with the
pixmaps). I would also recommend to put a sample config and wordfile
into this "resource directory" and copy them into the users config dir
if they need them (so far they get generated, and that's using up
space in beavers binary file and thus increasing memory footprint).
To not receive any errors when testing the application configure the
application with /tmp as prefix (eg. run "./configure --prefix=/tmp")
and then a "make install". this will install beaver into the temp
directory, that means that you have to do a "make install" every time
you reboot your computer, but at least you do not change anything on
your current installation.
Next step for me is: Plugin Manager ^^ (no worries, don't have to
change interface.c)
cheers
Tobias
_______________________________________________
Beaver-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/beaver-devel