end
end
:hbtnbox layout: END
- $sbtn name: ok stock: OK sig: activate
- $sbtn name: cancel stock: CANCEL sig: activate accel: Escape
- $sbtn name: apply stock: APPLY sig: activate
+ $sbtn name: ok stock: OK sig: clicked
+ $sbtn name: cancel stock: CANCEL sig: clicked accel: Escape
+ $sbtn name: apply stock: APPLY sig: clicked
end
end
end
p2 = *p + strlen(*p);
len = p2 - *p - ((*p2 == '\"')?1:0);
buf = smalloc(len + 1);
- memcpy(buf, *p, len);
+ memcpy(buf, *p + ((delim == '\"')?1:0), len);
buf[len] = 0;
*p = p2 + ((*p2 == '\"')?1:0);
for(p2 = buf; *p2; p2++, len--) {
{
struct cfvar *cv;
+ cfw2conf();
if((cv = cfwvalid()) != NULL) {
msgbox(GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, cv->vld->invmsg, cv->rname);
return(-1);
}
- cfw2conf();
return(writeconfig());
}
}
*/
-void cb_cfw_ok_activate(GtkWidget *widget, gpointer uudata)
+void cb_cfw_ok_clicked(GtkWidget *widget, gpointer uudata)
{
if(saveconfig())
return;
state = -1;
}
-void cb_cfw_cancel_activate(GtkWidget *widget, gpointer uudata)
+void cb_cfw_cancel_clicked(GtkWidget *widget, gpointer uudata)
{
gtk_main_quit();
state = -1;
}
-void cb_cfw_apply_activate(GtkWidget *widget, gpointer uudata)
+void cb_cfw_apply_clicked(GtkWidget *widget, gpointer uudata)
{
if(saveconfig())
return;