Commit 39c11f95 authored by Monty Montgomery's avatar Monty Montgomery

Fix bug in the subpanel delete event handler (delete should be
redirected to hide; I broke it when abstracting out subpanels)


git-svn-id: https://svn.xiph.org/trunk/postfish@5749 0101bb08-14d6-0310-b084-bc0e0c8e3800
parent b4103204
......@@ -33,7 +33,7 @@ static int clippanel_hide(GtkWidget *widget,
gpointer in){
subpanel_generic *p=in;
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(p->subpanel_windowbutton),0);
return FALSE;
return TRUE;
}
static int windowbutton_action(GtkWidget *widget,
gpointer in){
......@@ -157,7 +157,7 @@ subpanel_generic *subpanel_create(postfish_mainpanel *mp,
panel);
/* delete should == hide */
g_signal_connect (G_OBJECT (panel->mainpanel->toplevel), "delete-event",
g_signal_connect (G_OBJECT (panel->subpanel_toplevel), "delete-event",
G_CALLBACK (clippanel_hide),
panel);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment