I'm trying to track down the cause of a bug in a plugin that I'm writing. I can't use dialog boxes to display details because it interfears with the problem that I'm looking at. I've tried gdb but although compiling it with what I believe are the right flags, when I stop in the routine I'm interested in, it's not able to find any line or variable information. Anyone got any sugestions? Here are the lines that I'm using to compile:<br>
<br>gcc -ggdb -c ConText.c -Wformat=0 -fPIC `pkg-config --cflags geany`<br><br>gcc ConText.o -g ConText.so -shared `pkg-config --libs geany`<br><br><br>Also I am trying to implement integrated plugin help, and plugin configure. Despite defining these, when I go into tools->plugin manager, and highlight my plugin, neither the help nor the configure button become active. Again does anyone have any sugestions? Here's the code for the two routines. Do I need to declare that I am implementing these anywhere?<br>
<br>static void plugin_help() {<br> dialogs_show_msgbox(GTK_MESSAGE_INFO,"TEST!");<br>}<br><br>static GtkWidget *plugin_configure(GtkDialog *dialog)<br>{<br> GtkWidget *vbox;<br> GtkWidget *cb1,*cb2,*cb3,*cb4;<br>
<br> vbox=gtk_vbox_new(FALSE, 6);<br><br> cb1=gtk_check_button_new_with_label("remember fold state");<br> gtk_toggle_button_set_mode(GTK_TOGGLE_BUTTON(cb1),TRUE);<br> gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(cb1),bRememberFolds);<br>
gtk_box_pack_start(GTK_BOX(vbox),cb1,FALSE,FALSE,2);<br><br> cb2=gtk_check_button_new_with_label("Center view when goto bookmark");<br> gtk_toggle_button_set_mode(GTK_TOGGLE_BUTTON(cb2),TRUE);<br> gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(cb2),bCenterWhenGotoBookmark);<br>
gtk_box_pack_start(GTK_BOX(vbox),cb2,FALSE,FALSE,2);<br><br> cb3=gtk_check_button_new_with_label("Save Macros When Close Geany");<br> gtk_toggle_button_set_mode(GTK_TOGGLE_BUTTON(cb3),TRUE);<br> gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(cb3),bSaveMacros);<br>
gtk_box_pack_start(GTK_BOX(vbox),cb3,FALSE,FALSE,2);<br><br> cb4=gtk_check_button_new_with_label("Ask before replaceing existing Macros");<br> gtk_toggle_button_set_mode(GTK_TOGGLE_BUTTON(cb4),TRUE);<br>
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(cb4),bQueryOverwriteMacros);<br> gtk_box_pack_start(GTK_BOX(vbox),cb4,FALSE,FALSE,2);<br><br> gtk_widget_show_all(vbox);<br> <br> return vbox;<br>}<br><br>