* add exit app with CTRLKEY+QKEY.
[blender-staging.git] / source / blender / windowmanager / intern / wm_operators.c
index d1fce510433d6c8f5f18d44567b98ed3aae0977d..05d27c1321abe798f5a39c091544125cd38296d1 100644 (file)
@@ -116,6 +116,16 @@ static void WM_OT_window_fullscreen_toggle(wmOperatorType *ot)
     ot->poll= WM_operator_winactive;
 }
 
+static void WM_OT_exit_blender(wmOperatorType *ot)
+{
+       ot->name= "Exit Blender";
+       ot->idname= "WM_OT_exit_blender";
+
+       ot->invoke= NULL; /* do confirm stuff */
+       ot->exec= wm_exit_blender_op;
+       ot->poll= WM_operator_winactive;
+}
+
 
 #define ADD_OPTYPE(opfunc)     ot= MEM_callocN(sizeof(wmOperatorType), "operatortype"); \
                                                        opfunc(ot);  \
@@ -136,6 +146,7 @@ void wm_operatortype_init(void)
        ADD_OPTYPE(WM_OT_window_duplicate);
        ADD_OPTYPE(WM_OT_save_homefile);
     ADD_OPTYPE(WM_OT_window_fullscreen_toggle);
+       ADD_OPTYPE(WM_OT_exit_blender);
 }
 
 /* wrapped to get property from a operator. */