#include <midori/midori.h>
-void
-statusbar_features_app_add_browser_cb (MidoriApp* app,
- MidoriBrowser* browser)
+static void
+statusbar_features_deactivate_cb (MidoriExtension* extension,
+ GtkWidget* bbox)
+{
+ gtk_widget_destroy (bbox);
+}
+
+static void
+statusbar_features_app_add_browser_cb (MidoriApp* app,
+ MidoriBrowser* browser,
+ MidoriExtension* extension)
{
GtkWidget* statusbar;
GtkWidget* bbox;
gtk_widget_show (button);
gtk_widget_show (bbox);
gtk_box_pack_start (GTK_BOX (statusbar), bbox, FALSE, FALSE, 3);
+
+ g_signal_connect (extension, "deactivate",
+ G_CALLBACK (statusbar_features_deactivate_cb), bbox);
}
static void
MidoriApp* app)
{
g_signal_connect (app, "add-browser",
- G_CALLBACK (statusbar_features_app_add_browser_cb), NULL);
+ G_CALLBACK (statusbar_features_app_add_browser_cb), extension);
}
MidoriExtension*