Revision: 2079 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=2079&view=re... Author: codebrainz Date: 2011-05-23 10:03:13 +0000 (Mon, 23 May 2011)
Log Message: ----------- Fix bugs
Modified Paths: -------------- trunk/geany-plugins/devhelp/src/devhelpplugin.c trunk/geany-plugins/devhelp/src/plugin.c
Modified: trunk/geany-plugins/devhelp/src/devhelpplugin.c =================================================================== --- trunk/geany-plugins/devhelp/src/devhelpplugin.c 2011-05-23 10:02:44 UTC (rev 2078) +++ trunk/geany-plugins/devhelp/src/devhelpplugin.c 2011-05-23 10:03:13 UTC (rev 2079) @@ -887,7 +887,7 @@ return;
doc = document_get_current(); - if (doc == NULL || doc->file_type == NULL || doc->file_type->name == NULL) + if (doc != NULL && doc->file_type != NULL && doc->file_type->name != NULL) lang = doc->file_type->name;
devhelp_plugin_search_code(self, current_tag, lang);
Modified: trunk/geany-plugins/devhelp/src/plugin.c =================================================================== --- trunk/geany-plugins/devhelp/src/plugin.c 2011-05-23 10:02:44 UTC (rev 2078) +++ trunk/geany-plugins/devhelp/src/plugin.c 2011-05-23 10:03:13 UTC (rev 2079) @@ -291,14 +291,14 @@ gtk_box_pack_start(GTK_BOX(vbox), check_button, FALSE, TRUE, 0); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check_button), devhelp_plugin_get_sidebar_tabs_bottom(plugin.devhelp)); - g_signal_connect(check_button, "toggled", G_CALLBACK(on_move_sidebar_tabs_toggled), NULL); + g_signal_connect(check_button, "toggled", G_CALLBACK(on_move_sidebar_tabs_toggled), &plugin);
check_button = gtk_check_button_new_with_label( _("Show documentation in message window.")); gtk_box_pack_start(GTK_BOX(vbox), check_button, FALSE, TRUE, 0); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check_button), devhelp_plugin_get_is_in_msgwin(plugin.devhelp)); - g_signal_connect(check_button, "toggled", G_CALLBACK(on_show_in_msg_window_toggled), NULL); + g_signal_connect(check_button, "toggled", G_CALLBACK(on_show_in_msg_window_toggled), &plugin);
g_signal_connect(dialog, "response", G_CALLBACK(configure_dialog_response), NULL);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
plugins-commits@lists.geany.org